add summoner api to copper golem

This commit is contained in:
granny
2025-09-29 23:16:20 -07:00
parent 2c1d236c2e
commit 8befb59096
5 changed files with 106 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
--- a/src/main/java/org/bukkit/entity/CopperGolem.java
+++ b/src/main/java/org/bukkit/entity/CopperGolem.java
@@ -3,4 +_,19 @@
import io.papermc.paper.entity.Shearable;
public interface CopperGolem extends Golem, Shearable {
+ // Purpur start
+ /**
+ * Get the player that summoned this iron golem
+ *
+ * @return UUID of summoner
+ */
+ @org.jetbrains.annotations.Nullable java.util.UUID getSummoner();
+
+ /**
+ * Set the player that summoned this iron golem
+ *
+ * @param summoner UUID of summoner
+ */
+ void setSummoner(@org.jetbrains.annotations.Nullable java.util.UUID summoner);
+ // Purpur end
}