Class SlotDummy
java.lang.Object
net.minecraft.world.inventory.Slot
codechicken.lib.inventory.container.SlotHandleClicks
codechicken.lib.inventory.container.SlotDummy
-
Field Summary
FieldsFields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmayPickup(net.minecraft.world.entity.player.Player playerIn) voidset(net.minecraft.world.item.ItemStack stack) voidslotClick(ContainerExtended container, net.minecraft.world.entity.player.Player player, int button, net.minecraft.world.inventory.ClickType clickType) voidslotClick(net.minecraft.world.item.ItemStack held, int button, boolean shift) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
stackLimit
public final int stackLimit
-
-
Constructor Details
-
SlotDummy
public SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y) -
SlotDummy
public SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y, int limit)
-
-
Method Details
-
slotClick
public void slotClick(ContainerExtended container, net.minecraft.world.entity.player.Player player, int button, net.minecraft.world.inventory.ClickType clickType) - Specified by:
slotClickin classSlotHandleClicks
-
slotClick
public void slotClick(net.minecraft.world.item.ItemStack held, int button, boolean shift) -
set
public void set(net.minecraft.world.item.ItemStack stack) - Overrides:
setin classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(net.minecraft.world.entity.player.Player playerIn) - Overrides:
mayPickupin classnet.minecraft.world.inventory.Slot
-