Package org.moddingx.libx.menu.slot
Class BaseSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraftforge.items.SlotItemHandler
org.moddingx.libx.menu.slot.BaseSlot
public class BaseSlot
extends net.minecraftforge.items.SlotItemHandler
A slot that is meant to be used together with
BaseItemStackHandler
. The slot
will use the unrestricted item handler as inventory, but it will use the base inventory
for mayPlace(ItemStack)
to allow validators to run.-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, x, y
-
Constructor Summary
ConstructorDescriptionBaseSlot
(net.minecraftforge.items.IItemHandler inventory, net.minecraftforge.items.IItemHandler unrestricted, int index, int x, int y) Creates a new BaseSlot with the given base and unrestricted inventory.BaseSlot
(BaseItemStackHandler inventory, int index, int x, int y) Creates a new BaseSlot with the givenBaseItemStackHandler
-
Method Summary
Methods inherited from class net.minecraftforge.items.SlotItemHandler
getItem, getItemHandler, getMaxStackSize, getMaxStackSize, initialize, mayPickup, onQuickCraft, remove, set
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
BaseSlot
Creates a new BaseSlot with the givenBaseItemStackHandler
-
BaseSlot
public BaseSlot(net.minecraftforge.items.IItemHandler inventory, net.minecraftforge.items.IItemHandler unrestricted, int index, int x, int y) Creates a new BaseSlot with the given base and unrestricted inventory.
-
-
Method Details
-
mayPlace
- Overrides:
mayPlace
in classnet.minecraftforge.items.SlotItemHandler
-