Examples of IMultiblockPart


Examples of erogenousbeef.core.multiblock.IMultiblockPart

    TileEntity te = world.getTileEntity(x, y, z);
    if(!(te instanceof IMultiblockPart)) {
      return false;
    }
   
    IMultiblockPart part = (IMultiblockPart)te;
    if(!part.isConnected() || !part.getMultiblockController().isAssembled()) {
      return false;
    }
   
    player.openGui(BRLoader.instance, 0, world, x, y, z);
    return true;
View Full Code Here

Examples of erogenousbeef.core.multiblock.IMultiblockPart

      return false;
    }

    int metadata = world.getBlockMetadata(x, y, z);
    TileEntity te = world.getTileEntity(x, y, z);
    IMultiblockPart part = null;
    MultiblockControllerBase controller = null;

    if(te instanceof IMultiblockPart) {
      part = (IMultiblockPart)te;
      controller = part.getMultiblockController();
    }
   
    if(isCasing(metadata) || isPowerTap(metadata) || isComputerPort(metadata)) {
      // If the player's hands are empty and they rightclick on a multiblock, they get a
      // multiblock-debugging message if the machine is not assembled.
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.