Package net.minecraft.world

Examples of net.minecraft.world.ServerBlockEventList


      synchronized (this) {
        blockEventCache = this.blockEventCache[blockEventCacheIndex];
        if (blockEventCache.isEmpty()) {
          return;
        }
        this.blockEventCache[blockEventCacheIndex] = new ServerBlockEventList();
      }

      for (BlockEventData blockEventData : blockEventCache) {
        if (this.onBlockEventReceived(blockEventData)) {
          this.mcServer.getConfigurationManager().sendToAllNear((double) blockEventData.getX(), (double) blockEventData.getY(), (double) blockEventData.getZ(), 64.0D, this.provider.dimensionId, new Packet54PlayNoteBlock(blockEventData.getX(), blockEventData.getY(), blockEventData.getZ(), blockEventData.getBlockID(), blockEventData.getEventID(), blockEventData.getEventParameter()));
View Full Code Here

TOP

Related Classes of net.minecraft.world.ServerBlockEventList

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.