Package net.minecraft.screen
Class SmithingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.SmithingScreenHandler
public class SmithingScreenHandler extends ForgingScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private World
field_25385
private SmithingRecipe
field_25386
private List<SmithingRecipe>
field_25668
Fields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, player
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Constructor Description SmithingScreenHandler(int syncId, PlayerInventory playerInventory)
SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
Method Summary
Modifier and Type Method Description boolean
canInsertIntoSlot(ItemStack stack, Slot slot)
protected boolean
canTakeOutput(PlayerEntity player, boolean present)
protected boolean
canUse(BlockState state)
private void
method_29539(int int2)
protected boolean
method_30025(ItemStack itemStack)
protected ItemStack
onTakeOutput(PlayerEntity player, ItemStack stack)
void
updateResult()
Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, close, onContentChanged, transferSlot
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
field_25385
-
field_25386
-
field_25668
-
-
Constructor Details
-
SmithingScreenHandler
-
SmithingScreenHandler
public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
-
Method Details
-
canUse
- Specified by:
canUse
in classForgingScreenHandler
-
canTakeOutput
- Specified by:
canTakeOutput
in classForgingScreenHandler
-
onTakeOutput
- Specified by:
onTakeOutput
in classForgingScreenHandler
-
method_29539
private void method_29539(int int2) -
updateResult
public void updateResult()- Specified by:
updateResult
in classForgingScreenHandler
-
method_30025
- Overrides:
method_30025
in classForgingScreenHandler
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlot
in classScreenHandler
-