Package net.minecraftforge.items
Class SlotItemHandler
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraftforge.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 TypeMethodDescription@NotNull ItemStack
getItem()
int
int
getMaxStackSize
(@NotNull ItemStack stack) void
initialize
(ItemStack stack) boolean
boolean
void
onQuickCraft
(@NotNull ItemStack oldStackIn, @NotNull ItemStack newStackIn) @NotNull ItemStack
remove
(int amount) void
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
-
Field Details
-
emptyInventory
-
itemHandler
-
index
private final int index
-
-
Constructor Details
-
SlotItemHandler
-
-
Method Details
-
mayPlace
-
getItem
-
set
-
initialize
-
onQuickCraft
public void onQuickCraft(@NotNull @NotNull ItemStack oldStackIn, @NotNull @NotNull ItemStack newStackIn) - Overrides:
onQuickCraft
in classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classSlot
-
getMaxStackSize
- Overrides:
getMaxStackSize
in classSlot
-
mayPickup
-
remove
-
getItemHandler
-