Package crazypants.enderio.conduit

Examples of crazypants.enderio.conduit.TileConduitBundle


    if(block == null) {
      return false;
    }
    TileEntity te = world.getTileEntity(x, y, z);
    if(te instanceof TileConduitBundle) {
      TileConduitBundle tcb = (TileConduitBundle) te;
      return tcb.getConduit(IPowerConduit.class) != null || tcb.getConduit(IItemConduit.class) != null;
    }
    if(te instanceof IInternalPowerReceptor) {
      return true;
    }  
    return false;
View Full Code Here


    public Block getBlock(int x, int y, int z) {
      Block res = super.getBlock(x, y, z);
      if(res == EnderIO.blockConduitBundle) {
        TileEntity te = getTileEntity(x, y, z);
        if(te instanceof TileConduitBundle) {
          TileConduitBundle tcb = (TileConduitBundle)te;
          Block fac = tcb.getFacadeId();
          if(fac != null) {           
            res = fac;
          }
        }
      }
View Full Code Here

    public int getBlockMetadata(int x, int y, int z) {
      Block block = super.getBlock(x, y, z);
      if(block == EnderIO.blockConduitBundle) {
        TileEntity te = getTileEntity(x, y, z);
        if(te instanceof TileConduitBundle) {
          TileConduitBundle tcb = (TileConduitBundle)te;
          Block fac = tcb.getFacadeId();
          if(fac != null) {           
            return tcb.getFacadeMetadata();
          }
        }
      }
      return super.getBlockMetadata(x, y, z);
    }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.TileConduitBundle

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.