Class InventoryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.minecraft.world.inventory.AbstractCraftingMenu
net.minecraft.world.inventory.InventoryMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class RecipeBookMenu
RecipeBookMenu.PostPlaceAction -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intstatic final Identifierstatic final Identifierstatic final Identifierstatic final Identifierstatic final Identifierstatic final intstatic final intprivate final Playerstatic final intstatic final intprivate static final EquipmentSlot[]private static final Map<EquipmentSlot, Identifier> static final intstatic final intFields inherited from class AbstractCraftingMenu
craftSlots, resultSlots -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack carried, Slot target) static booleanisHotbarSlot(int slot) protected Playerowner()quickMoveStack(Player player, int slotIndex) voidvoidslotsChanged(Container container) booleanstillValid(Player player) Methods inherited from class AbstractCraftingMenu
addCraftingGridSlots, addResultSlot, beginPlacingRecipe, fillCraftSlotsStackedContents, finishPlacingRecipe, getGridHeight, getGridWidth, handlePlacementMethods inherited from class AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
CONTAINER_ID
public static final int CONTAINER_ID- See Also:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
CRAFTING_GRID_WIDTH
private static final int CRAFTING_GRID_WIDTH- See Also:
-
CRAFTING_GRID_HEIGHT
private static final int CRAFTING_GRID_HEIGHT- See Also:
-
CRAFT_SLOT_START
public static final int CRAFT_SLOT_START- See Also:
-
CRAFT_SLOT_COUNT
public static final int CRAFT_SLOT_COUNT- See Also:
-
CRAFT_SLOT_END
public static final int CRAFT_SLOT_END- See Also:
-
ARMOR_SLOT_START
public static final int ARMOR_SLOT_START- See Also:
-
ARMOR_SLOT_COUNT
public static final int ARMOR_SLOT_COUNT- See Also:
-
ARMOR_SLOT_END
public static final int ARMOR_SLOT_END- See Also:
-
INV_SLOT_START
public static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
public static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
public static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
public static final int USE_ROW_SLOT_END- See Also:
-
SHIELD_SLOT
public static final int SHIELD_SLOT- See Also:
-
EMPTY_ARMOR_SLOT_HELMET
-
EMPTY_ARMOR_SLOT_CHESTPLATE
-
EMPTY_ARMOR_SLOT_LEGGINGS
-
EMPTY_ARMOR_SLOT_BOOTS
-
EMPTY_ARMOR_SLOT_SHIELD
-
TEXTURE_EMPTY_SLOTS
-
SLOT_IDS
-
active
public final boolean active -
owner
-
-
Constructor Details
-
InventoryMenu
-
-
Method Details
-
isHotbarSlot
public static boolean isHotbarSlot(int slot) -
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAllin classAbstractContainerMenu
-
getResultSlot
- Specified by:
getResultSlotin classAbstractCraftingMenu
-
getInputGridSlots
- Specified by:
getInputGridSlotsin classAbstractCraftingMenu
-
getCraftSlots
-
getRecipeBookType
- Specified by:
getRecipeBookTypein classRecipeBookMenu
-
owner
- Specified by:
ownerin classAbstractCraftingMenu
-