Examples of onBlockEventReceived()


Examples of net.minecraft.block.Block.onBlockEventReceived()

    int blockId = this.getBlockIdWithoutLoad(blockEvent.getX(), blockEvent.getY(), blockEvent.getZ());

    if (blockId != -1 && blockId == blockEvent.getBlockID()) {
      Block block = Block.blocksList[blockId];
      if (block != null) {
        block.onBlockEventReceived(this, blockEvent.getX(), blockEvent.getY(), blockEvent.getZ(), blockEvent.getEventID(), blockEvent.getEventParameter());
        return true;
      }
    }
    return false;
  }
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.