mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
23 lines
464 B
Java
23 lines
464 B
Java
package noppes.npcs.scripted;
|
|||
|
|
|
||
|
|
import net.minecraft.entity.EntityLiving;
|
||
|
|
import net.minecraft.entity.monster.EntityMob;
|
||
|
|
import noppes.npcs.scripted.constants.EntityType;
|
||
|
|
|
||
|
|
public class ScriptMonster extends ScriptLiving{
|
||
|
|
|
||
|
|
public ScriptMonster(EntityMob entity) {
|
||
|
|
super(entity);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public int getType(){
|
||
|
|
return EntityType.MONSTER;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean typeOf(int type){
|
||
|
|
return type == EntityType.MONSTER?true:super.typeOf(type);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|