Class AbstractRepairContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.AbstractRepairContainer
-
- Direct Known Subclasses:
RepairContainer
,SmithingTableContainer
public abstract class AbstractRepairContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description protected IWorldPosCallable
access
protected IInventory
inputSlots
protected PlayerEntity
player
protected CraftResultInventory
resultSlots
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description AbstractRepairContainer(ContainerType<?> p_i231587_1_, int p_i231587_2_, PlayerInventory p_i231587_3_, IWorldPosCallable p_i231587_4_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
createResult()
protected abstract boolean
isValidBlock(BlockState p_230302_1_)
protected abstract boolean
mayPickup(PlayerEntity p_230303_1_, boolean p_230303_2_)
protected abstract ItemStack
onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
removed(PlayerEntity p_75134_1_)
protected boolean
shouldQuickMoveToAdditionalSlot(ItemStack p_241210_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, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
-
-
-
Field Detail
-
resultSlots
protected final CraftResultInventory resultSlots
-
inputSlots
protected final IInventory inputSlots
-
access
protected final IWorldPosCallable access
-
player
protected final PlayerEntity player
-
-
Constructor Detail
-
AbstractRepairContainer
public AbstractRepairContainer(@Nullable ContainerType<?> p_i231587_1_, int p_i231587_2_, PlayerInventory p_i231587_3_, IWorldPosCallable p_i231587_4_)
-
-
Method Detail
-
mayPickup
protected abstract boolean mayPickup(PlayerEntity p_230303_1_, boolean p_230303_2_)
-
onTake
protected abstract ItemStack onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
-
isValidBlock
protected abstract boolean isValidBlock(BlockState p_230302_1_)
-
createResult
public abstract void createResult()
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
shouldQuickMoveToAdditionalSlot
protected boolean shouldQuickMoveToAdditionalSlot(ItemStack p_241210_1_)
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
-