mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
21 lines
424 B
Java
21 lines
424 B
Java
package noppes.npcs.scripted;
|
|||
|
|
|
||
|
|
import net.minecraft.entity.passive.EntityAnimal;
|
||
|
|
import noppes.npcs.scripted.constants.EntityType;
|
||
|
|
|
||
|
|
public class ScriptAnimal extends ScriptLiving{
|
||
|
|
|
||
|
|
public ScriptAnimal(EntityAnimal entity) {
|
||
|
|
super(entity);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public int getType(){
|
||
|
|
return EntityType.ANIMAL;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean typeOf(int type){
|
||
|
|
return type == EntityType.ANIMAL?true:super.typeOf(type);
|
||
|
|
}
|
||
|
|
}
|