Citizens2/src/main/java/net/citizensnpcs/npc/entity/CitizensSilverfishNPC.java

43 lines
1.2 KiB
Java
Raw Normal View History

2012-02-03 10:20:48 +01:00
package net.citizensnpcs.npc.entity;
import net.citizensnpcs.api.npc.NPC;
2012-02-04 09:13:20 +01:00
import net.citizensnpcs.npc.CitizensMobNPC;
2012-02-03 10:20:48 +01:00
import net.citizensnpcs.npc.CitizensNPCManager;
import net.citizensnpcs.npc.ai.NPCHandle;
import net.minecraft.server.EntitySilverfish;
2012-03-02 10:59:02 +01:00
import net.minecraft.server.PathfinderGoalSelector;
import net.minecraft.server.World;
2012-02-03 10:20:48 +01:00
import org.bukkit.entity.Silverfish;
public class CitizensSilverfishNPC extends CitizensMobNPC {
2012-02-03 10:20:48 +01:00
public CitizensSilverfishNPC(CitizensNPCManager manager, int id, String name) {
super(manager, id, name, EntitySilverfishNPC.class);
}
@Override
public Silverfish getBukkitEntity() {
return (Silverfish) getHandle().getBukkitEntity();
}
public static class EntitySilverfishNPC extends EntitySilverfish implements NPCHandle {
private final NPC npc;
@Override
public NPC getNPC() {
return this.npc;
}
public EntitySilverfishNPC(World world, NPC npc) {
super(world);
this.npc = npc;
2012-03-02 10:59:02 +01:00
goalSelector = new PathfinderGoalSelector();
targetSelector = new PathfinderGoalSelector();
}
@Override
2012-03-01 16:12:47 +01:00
public void d_() {
}
}
2012-02-03 10:20:48 +01:00
}