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 int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMountInventoryMenu(int containerId, Inventory playerInventory, Container mountInventory, LivingEntity mount) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetInventorySize(int inventoryColumns) protected abstract booleanhasInventoryChanged(Container container) quickMoveStack(Player player, int slotIndex) Handle when the stack in slotindexis shift-clicked.voidCalled when the container is closed.booleanstillValid(Player player) Determines whether supplied player can use this containerMethods inherited from class 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 containerId, Inventory playerInventory, Container mountInventory, LivingEntity mount)
-
-
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 inventoryColumns)
-