Package net.minecraft.world.chunk

Examples of net.minecraft.world.chunk.Chunk.removeEntity()


                worldOld.playerEntities.remove(player);
                worldOld.updateAllPlayersSleepingFlag();
                if (player.addedToChunk && worldOld.getChunkProvider().chunkExists(player.chunkCoordX, player.chunkCoordZ))
                {
                    Chunk chunkOld = worldOld.getChunkFromChunkCoords(player.chunkCoordX, player.chunkCoordZ);
                    chunkOld.removeEntity(player);
                    chunkOld.isModified = true;
                }
                worldOld.loadedEntityList.remove(player);
                worldOld.onEntityRemoved(player);
View Full Code Here


      int z = entity.chunkCoordZ;

      if (entity.addedToChunk) {
        Chunk chunk = chunkProviderServer.getChunkIfExists(x, z);
        if (chunk != null) {
          chunk.removeEntity(entity);
        }
      }

      world.onEntityRemoved(entity);
View Full Code Here

                Chunk chunk = entity.chunk;
                if (chunk == null) {
                  chunkProvider.getChunkIfExists(entityX, entityZ);
                }
                if (chunk != null) {
                  chunk.removeEntity(entity);
                }
              }
            }

            entitiesIterator.remove();
View Full Code Here

  @Override
  public void updateEntityWithOptionalForce(Entity entity, boolean notForced) {
    Chunk chunk = entity.chunk;
    if (notForced && chunk != null) {
      if (chunk.partiallyUnloaded) {
        chunk.removeEntity(entity);
        entity.addedToChunk = false;
        return;
      } else if (chunk.queuedUnload) {
        return;
      }
View Full Code Here

        var13 = entity.chunkCoordZ;

        if (entity.addedToChunk) {
          Chunk chunk = getChunkIfExists(var3, var13);
          if (chunk != null) {
            chunk.removeEntity(entity);
          }
        }

        onEntityRemoved(entity);
      }
View Full Code Here

          var13 = weatherEffect.chunkCoordZ;

          if (weatherEffect.addedToChunk) {
            Chunk chunk = getChunkIfExists(var3, var13);
            if (chunk != null) {
              chunk.removeEntity(weatherEffect);
            }
          }

          loadedEntityList.remove(var1--);
          onEntityRemoved(weatherEffect);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.