Class EnchantmentContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.EnchantmentContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IWorldPosCallable
final int[]
final int[]
private final IntReferenceHolder
private final IInventory
final int[]
private final Random
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ConstructorDescriptionEnchantmentContainer
(int p_i50085_1_, PlayerInventory p_i50085_2_) EnchantmentContainer
(int p_i50086_1_, PlayerInventory p_i50086_2_, IWorldPosCallable p_i50086_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) private List<EnchantmentData>
getEnchantmentList
(ItemStack p_178148_1_, int p_178148_2_, int p_178148_3_) int
int
private float
quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) void
removed
(PlayerEntity p_75134_1_) void
slotsChanged
(IInventory p_75130_1_) boolean
stillValid
(PlayerEntity p_75145_1_) Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
Field Details
-
enchantSlots
-
access
-
random
-
enchantmentSeed
-
costs
public final int[] costs -
enchantClue
public final int[] enchantClue -
levelClue
public final int[] levelClue
-
-
Constructor Details
-
EnchantmentContainer
-
EnchantmentContainer
public EnchantmentContainer(int p_i50086_1_, PlayerInventory p_i50086_2_, IWorldPosCallable p_i50086_3_)
-
-
Method Details
-
getPower
-
slotsChanged
- Overrides:
slotsChanged
in classContainer
-
clickMenuButton
- Overrides:
clickMenuButton
in classContainer
-
getEnchantmentList
private List<EnchantmentData> getEnchantmentList(ItemStack p_178148_1_, int p_178148_2_, int p_178148_3_) -
getGoldCount
public int getGoldCount() -
getEnchantmentSeed
public int getEnchantmentSeed() -
removed
-
stillValid
- Specified by:
stillValid
in classContainer
-
quickMoveStack
- Overrides:
quickMoveStack
in classContainer
-