Package net.minecraft.world

Examples of net.minecraft.world.WorldServer.notifyBlocksOfNeighborChange()


    WorldServer worldServer = ((WorldServer) worldObj);
    if (worldServer == null) {
      return;
    }
    Block blockType = getBlockType();
    worldServer.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType == null ? worldServer.getBlockId(xCoord, yCoord, zCoord) : blockType.blockID);
    PlayerInstance p = worldServer.getPlayerManager().getOrCreateChunkWatcher(xCoord >> 4, zCoord >> 4, false);
    if (p != null) {
      p.updateTile(this);
    }
  }
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.