Class AbstractRepairContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.AbstractRepairContainer
- Direct Known Subclasses:
RepairContainer
,SmithingTableContainer
-
Field Summary
Modifier and TypeFieldDescriptionprotected final IWorldPosCallable
protected final IInventory
protected final PlayerEntity
protected final CraftResultInventory
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ConstructorDescriptionAbstractRepairContainer
(ContainerType<?> p_i231587_1_, int p_i231587_2_, PlayerInventory p_i231587_3_, IWorldPosCallable p_i231587_4_) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
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_) 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 Details
-
resultSlots
-
inputSlots
-
access
-
player
-
-
Constructor Details
-
AbstractRepairContainer
public AbstractRepairContainer(@Nullable ContainerType<?> p_i231587_1_, int p_i231587_2_, PlayerInventory p_i231587_3_, IWorldPosCallable p_i231587_4_)
-
-
Method Details
-
mayPickup
-
onTake
-
isValidBlock
-
createResult
public abstract void createResult() -
slotsChanged
- Overrides:
slotsChanged
in classContainer
-
removed
-
stillValid
- Specified by:
stillValid
in classContainer
-
shouldQuickMoveToAdditionalSlot
-
quickMoveStack
- Overrides:
quickMoveStack
in classContainer
-