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 Worldfield_25385private SmithingRecipefield_25386private List<SmithingRecipe>field_25668Fields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, playerFields 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 booleancanInsertIntoSlot(ItemStack stack, Slot slot)protected booleancanTakeOutput(PlayerEntity player, boolean present)protected booleancanUse(BlockState state)private voidmethod_29539(int int2)protected booleanmethod_30025(ItemStack itemStack)protected ItemStackonTakeOutput(PlayerEntity player, ItemStack stack)voidupdateResult()Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, close, onContentChanged, transferSlotMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, 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:
canUsein classForgingScreenHandler
-
canTakeOutput
- Specified by:
canTakeOutputin classForgingScreenHandler
-
onTakeOutput
- Specified by:
onTakeOutputin classForgingScreenHandler
-
method_29539
private void method_29539(int int2) -
updateResult
public void updateResult()- Specified by:
updateResultin classForgingScreenHandler
-
method_30025
- Overrides:
method_30025in classForgingScreenHandler
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler
-