Class CartographyContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.CartographyContainer
-
public class CartographyContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
IInventory
container
private long
lastSoundTime
private CraftResultInventory
resultContainer
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description CartographyContainer(int p_i50093_1_, PlayerInventory p_i50093_2_)
CartographyContainer(int p_i50094_1_, PlayerInventory p_i50094_2_, IWorldPosCallable p_i50094_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
removed(PlayerEntity p_75134_1_)
private void
setupResultSlot(ItemStack p_216993_1_, ItemStack p_216993_2_, ItemStack p_216993_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, 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
-
access
private final IWorldPosCallable access
-
lastSoundTime
private long lastSoundTime
-
container
public final IInventory container
-
resultContainer
private final CraftResultInventory resultContainer
-
-
Constructor Detail
-
CartographyContainer
public CartographyContainer(int p_i50093_1_, PlayerInventory p_i50093_2_)
-
CartographyContainer
public CartographyContainer(int p_i50094_1_, PlayerInventory p_i50094_2_, IWorldPosCallable p_i50094_3_)
-
-
Method Detail
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
setupResultSlot
private void setupResultSlot(ItemStack p_216993_1_, ItemStack p_216993_2_, ItemStack p_216993_3_)
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
- Overrides:
canTakeItemForPickAll
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
-