package noppes.npcs.scripted.entity; import net.minecraft.entity.passive.EntityAnimal; import noppes.npcs.scripted.constants.EntityType; import noppes.npcs.scripted.interfaces.IAnimal; public class ScriptAnimal extends ScriptLiving implements IAnimal { public ScriptAnimal(T entity) { super(entity); } @Override public int getType(){ return EntityType.ANIMAL; } @Override public boolean typeOf(int type){ return type == EntityType.ANIMAL?true:super.typeOf(type); } }