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

22 lines
522 B
Java
Raw Normal View History

package noppes.npcs.scripted.entity;
2018-09-13 12:03:28 -04:00
import net.minecraft.entity.passive.EntityAnimal;
import noppes.npcs.scripted.constants.EntityType;
import noppes.npcs.scripted.interfaces.entity.IAnimal;
2018-09-13 12:03:28 -04:00
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);
}
}