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

21 lines
460 B
Java
Raw Normal View History

2018-09-13 12:03:28 -04:00
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 {
2018-09-13 12:03:28 -04:00
public ScriptAnimal(T entity) {
2018-09-13 12:03:28 -04:00
super(entity);
}
@Override
public int getType(){
return EntityType.ANIMAL;
}
@Override
public boolean typeOf(int type){
return type == EntityType.ANIMAL?true:super.typeOf(type);
}
}