Exemplo 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);
    }
  }
Exemplo 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);
    }
  }
Exemplo 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);
    }
  }
Exemplo n.º 4
0
 @Override
 public void rotateLeft(BptSlotInfo slot, IBptContext context) {
   slot.meta = ForgeDirection.values()[slot.meta].getRotation(ForgeDirection.DOWN).ordinal();
 }