Package net.minecraft.world.inventory
Class EnchantmentMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.EnchantmentMenu
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ContainerLevelAccess
final int[]
final int[]
private final DataSlot
private final Container
final int[]
private final RandomSource
Fields 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, slots
-
Constructor Summary
ConstructorDescriptionEnchantmentMenu
(int p_39454_, Inventory p_39455_) EnchantmentMenu
(int p_39457_, Inventory p_39458_, ContainerLevelAccess p_39459_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clickMenuButton
(Player p_39465_, int p_39466_) private List<EnchantmentInstance>
getEnchantmentList
(ItemStack p_39472_, int p_39473_, int p_39474_) int
int
quickMoveStack
(Player p_39490_, int p_39491_) void
void
slotsChanged
(Container p_39461_) boolean
stillValid
(Player p_39463_) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
enchantSlots
-
access
-
random
-
enchantmentSeed
-
costs
public final int[] costs -
enchantClue
public final int[] enchantClue -
levelClue
public final int[] levelClue
-
-
Constructor Details
-
EnchantmentMenu
-
EnchantmentMenu
-
-
Method Details
-
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
clickMenuButton
- Overrides:
clickMenuButton
in classAbstractContainerMenu
-
getEnchantmentList
private List<EnchantmentInstance> getEnchantmentList(ItemStack p_39472_, int p_39473_, int p_39474_) -
getGoldCount
public int getGoldCount() -
getEnchantmentSeed
public int getEnchantmentSeed() -
removed
- Overrides:
removed
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-