mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
23 lines
522 B
Java
23 lines
522 B
Java
package noppes.npcs.scripted.entity;
|
|
|
|
import net.minecraft.entity.passive.EntityAnimal;
|
|
import noppes.npcs.scripted.constants.EntityType;
|
|
import noppes.npcs.scripted.interfaces.entity.IAnimal;
|
|
|
|
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);
|
|
}
|
|
}
|