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) voidbooleanstillValid(Player player) Methods 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
- Specified by:
stillValidin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
getInventorySize
public static int getInventorySize(int inventoryColumns)
-