mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: TonytheMacaroni <tonythemacaroni123@gmail.com>
|
|
Date: Thu, 9 Nov 2023 20:35:35 -0500
|
|
Subject: [PATCH] Add UUID attribute modifier API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/attribute/AttributeInstance.java b/src/main/java/org/bukkit/attribute/AttributeInstance.java
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/org/bukkit/attribute/AttributeInstance.java
|
|
+++ b/src/main/java/org/bukkit/attribute/AttributeInstance.java
|
|
@@ -0,0 +0,0 @@ public interface AttributeInstance {
|
|
@NotNull
|
|
Collection<AttributeModifier> getModifiers();
|
|
|
|
+ // Paper start
|
|
+ /**
|
|
+ * Gets the modifier with the corresponding UUID.
|
|
+ *
|
|
+ * @param uuid the UUID of the modifier
|
|
+ * @return the modifier, if it exists
|
|
+ */
|
|
+ @org.jetbrains.annotations.Nullable AttributeModifier getModifier(@NotNull java.util.UUID uuid);
|
|
+
|
|
+ /**
|
|
+ * Remove a modifier with the corresponding UUID from this instance.
|
|
+ *
|
|
+ * @param uuid the UUID of the modifier
|
|
+ */
|
|
+ void removeModifier(@NotNull java.util.UUID uuid);
|
|
+ // Paper end
|
|
+
|
|
/**
|
|
* Add a modifier to this instance.
|
|
*
|