Пример #1
0
    public RemoveLogAction(IBlockPattern block) {
      this.block = block;

      for (IBlock partial : block.getBlocks()) {
        Block mcBlock = MineTweakerMC.getBlock(partial);
        if (MFRRegistry.getFruitLogBlocks().contains(mcBlock)) {
          if (!removedLogs.contains(mcBlock)) removedLogs.add(mcBlock);
        }
      }
    }
Пример #2
0
    public RemoveFruitAction(IBlockPattern block) {
      this.block = block;

      Map<Block, IFactoryFruit> fruits = MFRRegistry.getFruits();
      removed = new HashMap<Block, IFactoryFruit>();
      for (IBlock partial : block.getBlocks()) {
        Block mcBlock = MineTweakerMC.getBlock(partial);
        if (fruits.containsKey(mcBlock)) {
          removed.put(mcBlock, fruits.get(mcBlock));
        }
      }
    }