summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-01 19:28:12 +1000
committermd_5 <git@md-5.net>2018-09-01 19:28:12 +1000
commit60d7982024be4ae59e34d8a186be70fc350f52ae (patch)
tree4dc78183759409e02f431287bb3a1cb1e15e04d9 /src
parentdc69d2b3db466073cff0243bb8c342715dc88e2e (diff)
downloadcraftbukkit-60d7982024be4ae59e34d8a186be70fc350f52ae.tar
craftbukkit-60d7982024be4ae59e34d8a186be70fc350f52ae.tar.gz
craftbukkit-60d7982024be4ae59e34d8a186be70fc350f52ae.tar.lz
craftbukkit-60d7982024be4ae59e34d8a186be70fc350f52ae.tar.xz
craftbukkit-60d7982024be4ae59e34d8a186be70fc350f52ae.zip
SPIGOT-4338: breedCause API
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java
index 4b9b0783..f671ad12 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java
@@ -1,5 +1,6 @@
package org.bukkit.craftbukkit.entity;
+import java.util.UUID;
import net.minecraft.server.EntityAnimal;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Animals;
@@ -19,4 +20,14 @@ public class CraftAnimals extends CraftAgeable implements Animals {
public String toString() {
return "CraftAnimals";
}
+
+ @Override
+ public UUID getBreedCause() {
+ return getHandle().bD;
+ }
+
+ @Override
+ public void setBreedCause(UUID uuid) {
+ getHandle().bD = uuid;
+ }
}