Files
CustomNPC-Plus/src/main/java/noppes/npcs/scripted/ScriptAnimal.java
T

22 lines
460 B
Java

package noppes.npcs.scripted;
import net.minecraft.entity.passive.EntityAnimal;
import noppes.npcs.scripted.constants.EntityType;
public class ScriptAnimal<T extends EntityAnimal> extends ScriptLiving<T> 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);
}
}