Ejemplo n.º 1
0
  @Override
  public boolean isValid(BptSlotInfo slot, IBptContext context) {
    BptSlotInfo newSlot = slot.clone();
    slot.blockId = delegateTo;

    if (BlueprintManager.blockBptProps[delegateTo] != null) {
      return BlueprintManager.blockBptProps[delegateTo].isValid(newSlot, context);
    } else {
      return super.isValid(newSlot, context);
    }
  }
Ejemplo n.º 2
0
  @Override
  public void rotateLeft(BptSlotInfo slot, IBptContext context) {
    BptSlotInfo newSlot = slot.clone();
    slot.blockId = delegateTo;

    if (BlueprintManager.blockBptProps[delegateTo] != null) {
      BlueprintManager.blockBptProps[delegateTo].rotateLeft(newSlot, context);
    } else {
      super.rotateLeft(newSlot, context);
    }
  }
Ejemplo n.º 3
0
  @Override
  public void addRequirements(
      BptSlotInfo slot, IBptContext context, LinkedList<ItemStack> requirements) {
    BptSlotInfo newSlot = slot.clone();
    slot.blockId = delegateTo;

    if (BlueprintManager.blockBptProps[delegateTo] != null) {
      BlueprintManager.blockBptProps[delegateTo].addRequirements(newSlot, context, requirements);
    } else {
      super.addRequirements(newSlot, context, requirements);
    }
  }