diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java index a73d51f9c5..9cddf15607 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java @@ -5,14 +5,24 @@ import org.bukkit.craftbukkit.CraftServer; import org.bukkit.entity.Pig; public class CraftPig extends CraftAnimals implements Pig { - public CraftPig(CraftServer server, EntityPig entity) { super(server, entity); } + public boolean hasSaddle() { + return getHandle().x(); + } + + public void setSaddle(boolean flag) { + getHandle().a(flag); + } + + public EntityPig getHandle() { + return (EntityPig) super.getHandle(); + } + @Override public String toString() { return "CraftPig"; } - }