Class EnchantmentContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.EnchantmentContainer
-
public class EnchantmentContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
int[]
costs
int[]
enchantClue
private IntReferenceHolder
enchantmentSeed
private IInventory
enchantSlots
int[]
levelClue
private java.util.Random
random
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description EnchantmentContainer(int p_i50085_1_, PlayerInventory p_i50085_2_)
EnchantmentContainer(int p_i50086_1_, PlayerInventory p_i50086_2_, IWorldPosCallable p_i50086_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
private java.util.List<EnchantmentData>
getEnchantmentList(ItemStack p_178148_1_, int p_178148_2_, int p_178148_3_)
int
getEnchantmentSeed()
int
getGoldCount()
private float
getPower(World world, BlockPos pos)
ItemStack
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 Detail
-
enchantSlots
private final IInventory enchantSlots
-
access
private final IWorldPosCallable access
-
random
private final java.util.Random random
-
enchantmentSeed
private final IntReferenceHolder enchantmentSeed
-
costs
public final int[] costs
-
enchantClue
public final int[] enchantClue
-
levelClue
public final int[] levelClue
-
-
Constructor Detail
-
EnchantmentContainer
public EnchantmentContainer(int p_i50085_1_, PlayerInventory p_i50085_2_)
-
EnchantmentContainer
public EnchantmentContainer(int p_i50086_1_, PlayerInventory p_i50086_2_, IWorldPosCallable p_i50086_3_)
-
-
Method Detail
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
clickMenuButton
public boolean clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
- Overrides:
clickMenuButton
in classContainer
-
getEnchantmentList
private java.util.List<EnchantmentData> getEnchantmentList(ItemStack p_178148_1_, int p_178148_2_, int p_178148_3_)
-
getGoldCount
public int getGoldCount()
-
getEnchantmentSeed
public int getEnchantmentSeed()
-
removed
public void removed(PlayerEntity p_75134_1_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
-