Package buildcraft.transport

Examples of buildcraft.transport.Gate


    @Override
    public void onDetachedPipe(IPipeTile pipe, ForgeDirection direction) {
      TileGenericPipe pipeReal = (TileGenericPipe) pipe;
      if (!pipeReal.getWorld().isRemote) {
        Gate gate = pipeReal.pipe.gates[direction.ordinal()];
        if (gate != null) {
          gate.resetGate();
          pipeReal.pipe.gates[direction.ordinal()] = null;
        }
        pipeReal.scheduleRenderUpdate();
      }
    }
View Full Code Here


   */
  private GateFactory() {
  }

  public static Gate makeGate(Pipe<?> pipe, GateMaterial material, GateLogic logic, ForgeDirection direction) {
    return new Gate(pipe, material, logic, direction);
  }
View Full Code Here

  public static Gate makeGate(Pipe<?> pipe, ItemStack stack, ForgeDirection direction) {
    if (stack == null || stack.stackSize <= 0 || !(stack.getItem() instanceof ItemGate)) {
      return null;
    }

    Gate gate = makeGate(pipe, ItemGate.getMaterial(stack), ItemGate.getLogic(stack), direction);

    for (IGateExpansion expansion : ItemGate.getInstalledExpansions(stack)) {
      gate.addGateExpansion(expansion);
    }

    return gate;
  }
View Full Code Here

    }
    if (nbt.hasKey("direction")) {
      direction = ForgeDirection.getOrientation(nbt.getInteger("direction"));
    }

    Gate gate = makeGate(pipe, material, logic, direction);
    gate.readFromNBT(nbt);

    // Legacy support
    if (nbt.hasKey("Pulser")) {
      NBTTagCompound pulsarTag = nbt.getCompoundTag("Pulser");
      GateExpansionController pulsarCon = GateExpansionPulsar.INSTANCE.makeController(pipe.container);
View Full Code Here

TOP

Related Classes of buildcraft.transport.Gate

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.