Class SmithingTableContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.AbstractRepairContainer
net.minecraft.inventory.container.SmithingTableContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final World
private final List<SmithingRecipe>
private SmithingRecipe
Fields inherited from class net.minecraft.inventory.container.AbstractRepairContainer
access, inputSlots, player, resultSlots
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ConstructorDescriptionSmithingTableContainer
(int p_i231590_1_, PlayerInventory p_i231590_2_) SmithingTableContainer
(int p_i231591_1_, PlayerInventory p_i231591_2_, IWorldPosCallable p_i231591_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) void
protected boolean
isValidBlock
(BlockState p_230302_1_) protected boolean
mayPickup
(PlayerEntity p_230303_1_, boolean p_230303_2_) protected ItemStack
onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) protected boolean
shouldQuickMoveToAdditionalSlot
(ItemStack p_241210_1_) private void
shrinkStackInSlot
(int p_234654_1_) Methods inherited from class net.minecraft.inventory.container.AbstractRepairContainer
quickMoveStack, removed, slotsChanged, stillValid
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 Details
-
level
-
selectedRecipe
-
recipes
-
-
Constructor Details
-
SmithingTableContainer
-
SmithingTableContainer
public SmithingTableContainer(int p_i231591_1_, PlayerInventory p_i231591_2_, IWorldPosCallable p_i231591_3_)
-
-
Method Details
-
isValidBlock
- Specified by:
isValidBlock
in classAbstractRepairContainer
-
mayPickup
- Specified by:
mayPickup
in classAbstractRepairContainer
-
onTake
- Specified by:
onTake
in classAbstractRepairContainer
-
shrinkStackInSlot
private void shrinkStackInSlot(int p_234654_1_) -
createResult
public void createResult()- Specified by:
createResult
in classAbstractRepairContainer
-
shouldQuickMoveToAdditionalSlot
- Overrides:
shouldQuickMoveToAdditionalSlot
in classAbstractRepairContainer
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classContainer
-