Package net.neoforged.neoforge.items
Class SlotItemHandler
java.lang.Object
net.minecraft.world.inventory.Slot
net.neoforged.neoforge.items.SlotItemHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Container
private final int
private final IItemHandler
-
Constructor Summary
ConstructorDescriptionSlotItemHandler
(IItemHandler itemHandler, int index, int xPosition, int yPosition) -
Method Summary
Modifier and TypeMethodDescriptiongetItem()
int
int
getMaxStackSize
(ItemStack stack) void
initialize
(ItemStack stack) boolean
boolean
void
onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) remove
(int amount) void
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
emptyInventory
-
itemHandler
-
index
private final int index
-
-
Constructor Details
-
SlotItemHandler
-
-
Method Details
-
mayPlace
-
getItem
-
set
-
initialize
-
onQuickCraft
- Overrides:
onQuickCraft
in classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classSlot
-
getMaxStackSize
- Overrides:
getMaxStackSize
in classSlot
-
mayPickup
-
remove
-
getItemHandler
-