org.bukkit.craftbukkit.entity.CraftPig Maven / Gradle / Ivy
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityPig;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
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().hasSaddle();
}
public void setSaddle(boolean saddled) {
getHandle().setSaddle(saddled);
}
public EntityPig getHandle() {
return (EntityPig) entity;
}
@Override
public String toString() {
return "CraftPig";
}
public EntityType getType() {
return EntityType.PIG;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy