mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 08:02:20 +00:00
24 lines
553 B
Java
24 lines
553 B
Java
package noppes.npcs.scripted.entity;
|
|
|
|
import net.minecraft.entity.monster.EntityMob;
|
|
import noppes.npcs.api.entity.IMonster;
|
|
import noppes.npcs.scripted.constants.EntityType;
|
|
|
|
public class ScriptMonster<T extends EntityMob> extends ScriptLiving<T> implements IMonster {
|
|
|
|
public ScriptMonster(T entity) {
|
|
super(entity);
|
|
}
|
|
|
|
@Override
|
|
public int getType() {
|
|
return EntityType.MONSTER;
|
|
}
|
|
|
|
@Override
|
|
public boolean typeOf(int type) {
|
|
return type == EntityType.MONSTER ? true : super.typeOf(type);
|
|
}
|
|
|
|
}
|