Package net.minecraft.network.packet

Examples of net.minecraft.network.packet.Packet51MapChunk


  }

  @Override
  public void removePlayer(EntityPlayerMP entityPlayerMP) {
    if (this.playersInChunk.remove(entityPlayerMP)) {
      Packet51MapChunk packet51MapChunk = new Packet51MapChunk();
      packet51MapChunk.includeInitialize = true;
      packet51MapChunk.xCh = chunkLocation.chunkXPos;
      packet51MapChunk.zCh = chunkLocation.chunkZPos;
      packet51MapChunk.yChMax = 0;
      packet51MapChunk.yChMin = 0;
      packet51MapChunk.setData(unloadSequence);
      entityPlayerMP.playerNetServerHandler.sendPacketToPlayer(packet51MapChunk);
      Collection<ChunkCoordIntPair> loadedChunks = entityPlayerMP.loadedChunks;
      synchronized (loadedChunks) {
        loadedChunks.remove(chunkLocation);
      }
View Full Code Here


  }

  @Override
  @Declare
  public void forceUpdate() {
    this.sendToAllPlayersWatchingChunk(new Packet51MapChunk(thePlayerManager.getWorldServer().getChunkFromChunkCoords(this.chunkLocation.chunkXPos, this.chunkLocation.chunkZPos), true, Integer.MAX_VALUE));
  }
View Full Code Here

          if (tileEntity != null) {
            tilesToUpdate.add(tileEntity);
          }
        } else {
          if (numberOfTilesToUpdate >= ForgeDummyContainer.clumpingThreshold) {
            sendToAllPlayersWatchingChunk(new Packet51MapChunk(chunk, false, flagsYAreasToUpdate));
          } else {
            sendToAllPlayersWatchingChunk(new Packet52MultiBlockChange(chunkLocation.chunkXPos, chunkLocation.chunkZPos, locationOfBlockChange, numberOfTilesToUpdate, worldServer));
          }

          for (int i = 0; i < numberOfTilesToUpdate; ++i) {
View Full Code Here

TOP

Related Classes of net.minecraft.network.packet.Packet51MapChunk

Copyright © 2018 www.massapicom. 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.