mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
Finish API
This commit is contained in:
25
patches/api/living-entity-allow-attribute-registration.patch
Normal file
25
patches/api/living-entity-allow-attribute-registration.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: ysl3000 <yannicklamprecht@live.de>
|
||||
Date: Sat, 24 Oct 2020 16:37:21 +0200
|
||||
Subject: [PATCH] living entity allow attribute registration
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/attribute/Attributable.java b/src/main/java/org/bukkit/attribute/Attributable.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/attribute/Attributable.java
|
||||
+++ b/src/main/java/org/bukkit/attribute/Attributable.java
|
||||
@@ -0,0 +0,0 @@ public interface Attributable {
|
||||
*/
|
||||
@Nullable
|
||||
AttributeInstance getAttribute(@NotNull Attribute attribute);
|
||||
+
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Registers a generic attribute to that attributable instance.
|
||||
+ * Allows it to add attributes not registered by default to that entity.
|
||||
+ *
|
||||
+ * @param attribute the generic attribute to register
|
||||
+ */
|
||||
+ void registerAttribute(@NotNull Attribute attribute);
|
||||
+ // Paper end
|
||||
}
|
Reference in New Issue
Block a user