Search in sources :

Example 1 with FuzzySlotAccess

use of network.rs485.logisticspipes.inventory.FuzzySlotAccess in project LogisticsPipes by RS485.

the class LogisticsCraftingTable method importFuzzyFlags.

@Override
public void importFuzzyFlags(TileEntity tile, SlotAccess slotAccess, BitSetProperty fuzzyFlags) {
    if (!(tile instanceof LogisticsCraftingTableTileEntity)) {
        return;
    }
    LogisticsCraftingTableTileEntity bench = (LogisticsCraftingTableTileEntity) tile;
    if (!bench.isFuzzy()) {
        return;
    }
    fuzzyFlags.replaceWith(bench.fuzzyFlags);
    new FuzzySlotAccess(slotAccess, fuzzyFlags).compactFirst(9);
}
Also used : FuzzySlotAccess(network.rs485.logisticspipes.inventory.FuzzySlotAccess) LogisticsCraftingTableTileEntity(logisticspipes.blocks.crafting.LogisticsCraftingTableTileEntity)

Aggregations

LogisticsCraftingTableTileEntity (logisticspipes.blocks.crafting.LogisticsCraftingTableTileEntity)1 FuzzySlotAccess (network.rs485.logisticspipes.inventory.FuzzySlotAccess)1