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 TypeMethodDescriptiongetItem()
int
int
getMaxStackSize
(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, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setChanged, tryRemove
-
Field Details
-
emptyInventory
-
itemHandler
-
index
private final int index
-
-
Constructor Details
-
SlotItemHandler
-
-
Method Details
-
mayPlace
-
getItem
-
set
-
onQuickCraft
- Overrides:
onQuickCraft
in classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classSlot
-
getMaxStackSize
- Overrides:
getMaxStackSize
in classSlot
-
mayPickup
-
remove
-
getItemHandler
-