Exemple #1
0
  public GroupDataEntity a(GroupDataEntity groupdataentity) {
    groupdataentity = super.a(groupdataentity);
    if (this.world.random.nextInt(7) == 0) {
      for (int i = 0; i < 2; ++i) {
        EntityOcelot entityocelot = new EntityOcelot(this.world);

        entityocelot.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, 0.0F);
        entityocelot.setAge(-24000);
        this.world.addEntity(
            entityocelot,
            org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
                .OCELOT_BABY); // CraftBukkit - add SpawnReason
      }
    }

    return groupdataentity;
  }