net.minecraft.world.inventory

public class EnchantmentMenu

extends AbstractContainerMenu

cty
net.minecraft.world.inventory.EnchantmentMenu
net.minecraft.class_1718
net.minecraft.screen.EnchantmentScreenHandler
net.minecraft.world.inventory.ContainerEnchantTable

Field summary

Modifier and TypeField
static final ResourceLocation
p
EMPTY_SLOT_LAPIS_LAZULI
field_45143
EMPTY_LAPIS_SLOT_TEXTURE
private final Container
q
enchantSlots
field_7809
inventory
private final ContainerLevelAccess
r
access
field_7813
context
private final RandomSource
s
random
field_7811
random
private final DataSlot
t
enchantmentSeed
field_7814
seed
public final int[]
m
costs
field_7808
enchantmentPower
public final int[]
n
enchantClue
field_7812
enchantmentId
public final int[]
o
levelClue
field_7810
enchantmentLevel

Constructor summary

ModifierConstructor
public (int syncId, Inventory playerInventory)
public (int syncId, Inventory playerInventory, ContainerLevelAccess context)

Method summary

Modifier and TypeMethod
public void
a(btc arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
public boolean
a(cpx arg0, int arg1)
clickMenuButton(Player arg0, int arg1)
method_7604(class_1657 arg0, int arg1)
onButtonClick(PlayerEntity arg0, int arg1)
private List<EnchantmentInstance>
a(ke arg0, cxp arg1, int arg2, int arg3)
getEnchantmentList(RegistryAccess arg0, ItemStack arg1, int arg2, int arg3)
method_7637(class_5455 arg0, class_1799 arg1, int arg2, int arg3)
generateEnchantments(DynamicRegistryManager registryManager, ItemStack stack, int slot, int level)
public int
l()
getGoldCount()
method_7638()
getLapisCount()
public int
m()
getEnchantmentSeed()
method_17413()
getSeed()
public void
a(cpx arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)
public boolean
b(cpx arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
public ItemStack
b(cpx arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)