Class GrindstoneContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.GrindstoneContainer
-
public class GrindstoneContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
private IInventory
repairSlots
private IInventory
resultSlots
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description GrindstoneContainer(int p_i50080_1_, PlayerInventory p_i50080_2_)
GrindstoneContainer(int p_i50081_1_, PlayerInventory p_i50081_2_, IWorldPosCallable p_i50081_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createResult()
private ItemStack
mergeEnchants(ItemStack p_217011_1_, ItemStack p_217011_2_)
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
removed(PlayerEntity p_75134_1_)
private ItemStack
removeNonCurses(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_)
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, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
-
-
-
Field Detail
-
resultSlots
private final IInventory resultSlots
-
repairSlots
private final IInventory repairSlots
-
access
private final IWorldPosCallable access
-
-
Constructor Detail
-
GrindstoneContainer
public GrindstoneContainer(int p_i50080_1_, PlayerInventory p_i50080_2_)
-
GrindstoneContainer
public GrindstoneContainer(int p_i50081_1_, PlayerInventory p_i50081_2_, IWorldPosCallable p_i50081_3_)
-
-
Method Detail
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
createResult
private void createResult()
-
removeNonCurses
private ItemStack removeNonCurses(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_)
-
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
-
-