Expose server build information (#10729)
* Expose server build information * squash patches * final tweaks --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: masmc05 <masmc05@gmail.com>
This commit is contained in:
parent
3fc93581bb
commit
f17519338b
1360 changed files with 1817 additions and 1446 deletions
34
patches/api/0434-Add-UUID-attribute-modifier-API.patch
Normal file
34
patches/api/0434-Add-UUID-attribute-modifier-API.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
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 5513174ea545bb5b4fdc028cbaa4c1bb763e2c6d..3cffffe8106387847b10ac39f96687bb075ef686 100644
|
||||
--- a/src/main/java/org/bukkit/attribute/AttributeInstance.java
|
||||
+++ b/src/main/java/org/bukkit/attribute/AttributeInstance.java
|
||||
@@ -39,6 +39,23 @@ 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.
|
||||
*
|
Loading…
Add table
Add a link
Reference in a new issue