Package net.minecraftforge.items
Class SlotItemHandler
java.lang.Object
net.minecraft.inventory.container.Slot
net.minecraftforge.items.SlotItemHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate static IInventory
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
mayPickup
(PlayerEntity playerIn) boolean
void
onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) remove
(int amount) void
Methods inherited from class net.minecraft.inventory.container.Slot
checkTakeAchievements, getNoItemIcon, getSlotIndex, hasItem, isActive, isSameInventory, onQuickCraft, onSwapCraft, onTake, setBackground, setChanged
-
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
-