Package net.minecraft.world.inventory
Class BeaconMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.BeaconMenu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContainerLevelAccessprivate final Containerprivate final ContainerDataprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final BeaconMenu.PaymentSlotprivate static final intprivate static final intprivate static 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
ConstructorsConstructorDescriptionBeaconMenu(int pContainerId, Container pContainer) BeaconMenu(int pContainerId, Container pContainer, ContainerData pBeaconData, ContainerLevelAccess pAccess) -
Method Summary
Modifier and TypeMethodDescriptiondecodeEffect(int pEffectId) static intencodeEffect(Holder<MobEffect> pEffect) intbooleanquickMoveStack(Player pPlayer, int pIndex) Handle when the stack in slotindexis shift-clicked.voidCalled when the container is closed.voidsetData(int pId, int pData) booleanstillValid(Player pPlayer) Determines whether supplied player can use this containervoidupdateEffects(Optional<Holder<MobEffect>> pPrimaryEffect, Optional<Holder<MobEffect>> pSecondaryEffect) Methods 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, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
PAYMENT_SLOT
private static final int PAYMENT_SLOT- See Also:
-
SLOT_COUNT
private static final int SLOT_COUNT- See Also:
-
DATA_COUNT
private static final int DATA_COUNT- See Also:
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
-
NO_EFFECT
private static final int NO_EFFECT- See Also:
-
beacon
-
paymentSlot
-
access
-
beaconData
-
-
Constructor Details
-
BeaconMenu
-
BeaconMenu
public BeaconMenu(int pContainerId, Container pContainer, ContainerData pBeaconData, ContainerLevelAccess pAccess)
-
-
Method Details
-
removed
Called when the container is closed.- Overrides:
removedin classAbstractContainerMenu
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValidin classAbstractContainerMenu
-
setData
public void setData(int pId, int pData) - Overrides:
setDatain classAbstractContainerMenu
-
quickMoveStack
Handle 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
-
getLevels
public int getLevels() -
encodeEffect
-
decodeEffect
-
getPrimaryEffect
-
getSecondaryEffect
-
updateEffects
-
hasPayment
public boolean hasPayment()
-