Class SmithingTableContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.AbstractRepairContainer
-
- net.minecraft.inventory.container.SmithingTableContainer
-
public class SmithingTableContainer extends AbstractRepairContainer
-
-
Field Summary
Fields Modifier and Type Field Description private World
level
private java.util.List<SmithingRecipe>
recipes
private SmithingRecipe
selectedRecipe
-
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
Constructors Constructor Description SmithingTableContainer(int p_i231590_1_, PlayerInventory p_i231590_2_)
SmithingTableContainer(int p_i231591_1_, PlayerInventory p_i231591_2_, IWorldPosCallable p_i231591_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
void
createResult()
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 Detail
-
level
private final World level
-
selectedRecipe
@Nullable private SmithingRecipe selectedRecipe
-
recipes
private final java.util.List<SmithingRecipe> recipes
-
-
Constructor Detail
-
SmithingTableContainer
public SmithingTableContainer(int p_i231590_1_, PlayerInventory p_i231590_2_)
-
SmithingTableContainer
public SmithingTableContainer(int p_i231591_1_, PlayerInventory p_i231591_2_, IWorldPosCallable p_i231591_3_)
-
-
Method Detail
-
isValidBlock
protected boolean isValidBlock(BlockState p_230302_1_)
- Specified by:
isValidBlock
in classAbstractRepairContainer
-
mayPickup
protected boolean mayPickup(PlayerEntity p_230303_1_, boolean p_230303_2_)
- Specified by:
mayPickup
in classAbstractRepairContainer
-
onTake
protected ItemStack onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
- Specified by:
onTake
in classAbstractRepairContainer
-
shrinkStackInSlot
private void shrinkStackInSlot(int p_234654_1_)
-
createResult
public void createResult()
- Specified by:
createResult
in classAbstractRepairContainer
-
shouldQuickMoveToAdditionalSlot
protected boolean shouldQuickMoveToAdditionalSlot(ItemStack p_241210_1_)
- Overrides:
shouldQuickMoveToAdditionalSlot
in classAbstractRepairContainer
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
- Overrides:
canTakeItemForPickAll
in classContainer
-
-