Package crazypants.enderio.conduit

Examples of crazypants.enderio.conduit.IConduit


      NBTTagList conduitTags = (NBTTagList) nbtRoot.getTag("conduits");

      if(conduitTags != null) {
        for (int i = 0; i < conduitTags.tagCount(); i++) {
          NBTTagCompound conduitTag = conduitTags.getCompoundTagAt(i);
          IConduit conduit = ConduitUtil.readConduitFromNBT(conduitTag, nbtVersion);
          if(conduit != null && conduit instanceof IPowerConduit) {
            currenttip.add(String.format("%s%s%s / %s%s%s RF", EnumChatFormatting.WHITE, fmt.format(((IPowerConduit) conduit).getEnergyStored()), EnumChatFormatting.RESET,
                EnumChatFormatting.WHITE, fmt.format(((IConduitBundle) te).getMaxEnergyStored()), EnumChatFormatting.RESET));
          }
        }
View Full Code Here


  }

  @Override
  public IMessage onMessage(PacketConnectionMode message, MessageContext ctx) {
    IConduit conduit = message.getTileCasted(ctx);
    if(conduit == null) {
      return null;
    }
    if(conduit instanceof IInsulatedRedstoneConduit) {
      ((IInsulatedRedstoneConduit)conduit).forceConnectionMode(message.dir, message.mode);
    } else {
      conduit.setConnectionMode(message.dir, message.mode);
    }
    message.getWorld(ctx).markBlockForUpdate(message.x, message.y, message.z);
    return null;
  }
View Full Code Here

    // Internal conectors between conduits
    List<CollidableComponent> connectors = bundle.getConnectors();
    for (CollidableComponent component : connectors) {
      if(component.conduitType != null) {
        IConduit conduit = bundle.getConduit(component.conduitType);
        if(conduit != null) {
          if(ConduitUtil.renderConduit(player, component.conduitType)) {
            tessellator.setBrightness((int) (brightness));
            CubeRenderer.render(component.bound, conduit.getTextureForState(component), true);
          } else {
            wireBounds.add(component.bound);
          }
        }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.IConduit

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.