Class SlotItemHandler
java.lang.Object
net.minecraft.world.inventory.Slot
net.neoforged.neoforge.items.SlotItemHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ContainerDeprecated, for removal: This API element is subject to removal in a future version.protected final intDeprecated, for removal: This API element is subject to removal in a future version.private final IItemHandlerDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionSlotItemHandler(IItemHandler itemHandler, int index, int xPosition, int yPosition) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetItem()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intgetMaxStackSize(ItemStack stack) Deprecated, for removal: This API element is subject to removal in a future version.voidinitialize(ItemStack stack) Deprecated, for removal: This API element is subject to removal in a future version.booleanisSameInventory(Slot other) Deprecated, for removal: This API element is subject to removal in a future version.Checks if the other slot is in the same inventory, by comparing the inventory reference.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.voidonQuickCraft(ItemStack oldStackIn, ItemStack newStackIn) Deprecated, for removal: This API element is subject to removal in a future version.remove(int amount) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Slot
allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
EMPTY_INVENTORY
Deprecated, for removal: This API element is subject to removal in a future version. -
itemHandler
Deprecated, for removal: This API element is subject to removal in a future version. -
index
protected final int indexDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
SlotItemHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
mayPlace
-
getItem
-
set
-
initialize
Deprecated, for removal: This API element is subject to removal in a future version. -
onQuickCraft
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
onQuickCraftin classSlot
-
getMaxStackSize
public int getMaxStackSize()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getMaxStackSizein classSlot
-
getMaxStackSize
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getMaxStackSizein classSlot
-
mayPickup
-
remove
-
getItemHandler
Deprecated, for removal: This API element is subject to removal in a future version. -
isSameInventory
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SlotChecks if the other slot is in the same inventory, by comparing the inventory reference.- Overrides:
isSameInventoryin classSlot- Parameters:
other-- Returns:
- true if the other slot is in the same inventory
-
ResourceHandlerSlotinstead.