/** * Initializes an entities type on construction to specify what group this * entity is in for activation ranges. * * @param entity * @return group id */ public static byte initializeEntityActivationType(Entity entity) { if ( entity instanceof EntityMonster || entity instanceof EntitySlime ) { return 1; // Monster } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbient ) { return 2; // Animal } else { return 3; // Misc } }
public CraftSlime(CraftServer server, EntitySlime entity) { super(server, entity); }
@Override public EntitySlime getHandle() { return (EntitySlime) entity; }