From 60d7982024be4ae59e34d8a186be70fc350f52ae Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 1 Sep 2018 19:28:12 +1000 Subject: SPIGOT-4338: breedCause API --- src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main/java/org') 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; + } } -- cgit v1.2.3