Package buildcraft.transport.ItemFacade

Examples of buildcraft.transport.ItemFacade.FacadeState


      }
    }

    if (wire != null) {
      FacadeState[] states = ItemFacade.getFacadeStates(inputA);
      FacadeState additionalState;

      if (inputB.getItem() == BuildCraftTransport.plugItem) {
        additionalState = FacadeState.createTransparent(wire);
      } else {
        additionalState = ItemFacade.getFacadeStates(inputB)[0];
View Full Code Here


      if (states == null) {
        renderState.facadeMatrix.setFacade(direction, null, 0, true);
        continue;
      }
      // Iterate over all states and activate first proper
      FacadeState defaultState = null, activeState = null;
      for (FacadeState state : states) {
        if (state.wire == null) {
          defaultState = state;
          continue;
        }
View Full Code Here

              int metadata = nbt.getInteger("facadeMeta[" + i + "]");
              pluggable = new ItemFacade.FacadePluggable(new FacadeState[]{FacadeState.create(block, metadata)});
            }
          } else if (nbt.hasKey("facadeBlocksStr[" + i + "][0]")) {
            // 6.0.x
            FacadeState mainState = FacadeState.create(
                (Block) Block.blockRegistry.getObject(nbt.getString("facadeBlocksStr[" + i + "][0]")),
                nbt.getInteger("facadeMeta[" + i + "][0]")
            );
            if (nbt.hasKey("facadeBlocksStr[" + i + "][1]")) {
              FacadeState phasedState = FacadeState.create(
                  (Block) Block.blockRegistry.getObject(nbt.getString("facadeBlocksStr[" + i + "][1]")),
                  nbt.getInteger("facadeMeta[" + i + "][1]"),
                  PipeWire.fromOrdinal(nbt.getInteger("facadeWires[" + i + "]"))
              );
              pluggable = new ItemFacade.FacadePluggable(new FacadeState[]{mainState, phasedState});
View Full Code Here

      lastTime = System.currentTimeMillis() + 1000L;
    }

    FacadeType type = ((IFacadeItem) item.getItem()).getFacadeType(item);
    FacadeState[] states = ItemFacade.getFacadeStates(item);
    FacadeState activeState = null;
       
        if (states.length > 0) {
            // TODO: Figure out why NEI causes states[] to be of length 0
            if (type == FacadeType.Basic) {
                activeState = states[0];
View Full Code Here

TOP

Related Classes of buildcraft.transport.ItemFacade.FacadeState

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.