Package net.minecraft.network.packet

Examples of net.minecraft.network.packet.Packet53BlockChange


        Chunk chunk = this.chunk;
        if (numberOfTilesToUpdate == 1) {
          int x = chunkLocation.chunkXPos * 16 + (locationOfBlockChange[0] >> 12 & 15);
          int y = locationOfBlockChange[0] & 255;
          int z = chunkLocation.chunkZPos * 16 + (locationOfBlockChange[0] >> 8 & 15);
          sendToAllPlayersWatchingChunk(new Packet53BlockChange(x, y, z, worldServer));

          TileEntity tileEntity = chunk.getChunkBlockTileEntity(locationOfBlockChange[0] >> 12 & 15, locationOfBlockChange[0] & 255, locationOfBlockChange[0] >> 8 & 15);
          if (tileEntity != null) {
            tilesToUpdate.add(tileEntity);
          }
View Full Code Here

TOP

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

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.