2018-09-13 12:03:28 -04:00
|
|
|
package noppes.npcs.scripted;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.entity.EntityLiving;
|
|
|
|
|
import net.minecraft.entity.monster.EntityMob;
|
|
|
|
|
import noppes.npcs.scripted.constants.EntityType;
|
|
|
|
|
|
2021-10-12 02:57:32 -05:00
|
|
|
public class ScriptMonster<T extends EntityMob> extends ScriptLiving<T> implements IMonster {
|
2018-09-13 12:03:28 -04:00
|
|
|
|
2021-10-12 02:57:32 -05:00
|
|
|
public ScriptMonster(T entity) {
|
2018-09-13 12:03:28 -04:00
|
|
|
super(entity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int getType(){
|
|
|
|
|
return EntityType.MONSTER;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean typeOf(int type){
|
|
|
|
|
return type == EntityType.MONSTER?true:super.typeOf(type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|