add IItemValidator to SlotFiltered

This commit is contained in:
Raoul Van den Berge
2016-02-03 23:25:50 +01:00
parent b0a141bd09
commit 483280c7a1
6 changed files with 39 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import storagecraft.StorageCraftItems;
import storagecraft.block.EnumGridType;
import storagecraft.container.slot.BasicItemValidator;
import storagecraft.container.slot.SlotDisabled;
import storagecraft.container.slot.SlotFiltered;
import storagecraft.container.slot.SlotGridCraftingResult;
@@ -64,7 +65,7 @@ public class ContainerGrid extends ContainerBase
addSlotToContainer(new SlotDisabled(grid.getPatternCraftingResultInventory(), 0, 133 + 4, 120 + 4));
addSlotToContainer(new SlotFiltered(grid.getPatternInventory(), 0, 137, 98, StorageCraftItems.PATTERN));
addSlotToContainer(new SlotFiltered(grid.getPatternInventory(), 0, 137, 98, new BasicItemValidator(StorageCraftItems.PATTERN)));
addSlotToContainer(new SlotOutput(grid.getPatternInventory(), 1, 137, 150));
}
}