/** * 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 CraftAmbient(CraftServer server, EntityAmbient entity) { super(server, entity); }
@Override public EntityAmbient getHandle() { return (EntityAmbient) entity; }