Package net.minecraft.world.inventory
Class AbstractMountInventoryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.AbstractMountInventoryMenu
- Direct Known Subclasses:
HorseInventoryMenu,NautilusInventoryMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final LivingEntityprotected final Containerprotected final intprotected final intprotected final intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMountInventoryMenu(int pContainerId, Inventory pPlayerInventory, Container pMountContainer, LivingEntity pMount) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetInventorySize(int pRows) protected abstract booleanhasInventoryChanged(Container pInventory) quickMoveStack(Player p_470679_, int p_470684_) Handle when the stack in slotindexis shift-clicked.voidCalled when the container is closed.booleanstillValid(Player p_470629_) Determines whether supplied player can use this containerMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, 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, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
mountContainer
-
mount
-
SLOT_SADDLE
protected final int SLOT_SADDLE- See Also:
-
SLOT_BODY_ARMOR
protected final int SLOT_BODY_ARMOR- See Also:
-
SLOT_INVENTORY_START
protected final int SLOT_INVENTORY_START- See Also:
-
INVENTORY_ROWS
protected static final int INVENTORY_ROWS- See Also:
-
-
Constructor Details
-
AbstractMountInventoryMenu
protected AbstractMountInventoryMenu(int pContainerId, Inventory pPlayerInventory, Container pMountContainer, LivingEntity pMount)
-
-
Method Details
-
hasInventoryChanged
-
stillValid
Description copied from class:AbstractContainerMenuDetermines whether supplied player can use this container- Specified by:
stillValidin classAbstractContainerMenu
-
removed
Description copied from class:AbstractContainerMenuCalled when the container is closed.- Overrides:
removedin classAbstractContainerMenu
-
quickMoveStack
Description copied from class:AbstractContainerMenuHandle when the stack in slotindexis shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStackin classAbstractContainerMenu
-
getInventorySize
public static int getInventorySize(int pRows)
-