Example #1
0
 public override void updateEntityWithOptionalForce(Entity entity, bool flag)
 {
     if (!field_6160_D.spawnPeacefulMobs && ((entity is EntityAnimals) || (entity is EntityWaterMob)))
     {
         entity.setEntityDead();
     }
     if (entity.riddenByEntity == null || !(entity.riddenByEntity is EntityPlayer))
     {
         base.updateEntityWithOptionalForce(entity, flag);
     }
 }
Example #2
0
 public virtual void func_22085_d(Entity entity)
 {
     if (entity.riddenByEntity != null)
     {
         entity.riddenByEntity.mountEntity(null);
     }
     if (entity.ridingEntity != null)
     {
         entity.mountEntity(null);
     }
     entity.setEntityDead();
     if (entity is EntityPlayer)
     {
         playerEntities.remove(entity);
         updateAllPlayersSleepingFlag();
     }
 }
Example #3
0
 public virtual void func_22073_e(Entity entity)
 {
     entity.setEntityDead();
     if (entity is EntityPlayer)
     {
         playerEntities.remove(entity);
         updateAllPlayersSleepingFlag();
     }
     int i = entity.chunkCoordX;
     int j = entity.chunkCoordZ;
     if (entity.addedToChunk && chunkExists(i, j))
     {
         getChunkFromChunkCoords(i, j).removeEntity(entity);
     }
     loadedEntityList.remove(entity);
     releaseEntitySkin(entity);
 }