Package net.minecraft.screen
Class ForgingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
- Direct Known Subclasses:
AnvilScreenHandler,SmithingScreenHandler
public abstract class ForgingScreenHandler extends ScreenHandler
-
Field Summary
Fields Modifier and Type Field Description protected ScreenHandlerContextcontextprotected Inventoryinputprotected CraftingResultInventoryoutputprotected PlayerEntityplayerFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description ForgingScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and Type Method Description protected abstract booleancanTakeOutput(PlayerEntity player, boolean present)protected abstract booleancanUse(BlockState state)booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)protected booleanmethod_30025(ItemStack itemStack)voidonContentChanged(Inventory inventory)protected abstract ItemStackonTakeOutput(PlayerEntity player, ItemStack stack)ItemStacktransferSlot(PlayerEntity player, int index)abstract voidupdateResult()Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, 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
-
output
-
input
-
context
-
player
-
-
Constructor Details
-
ForgingScreenHandler
public ForgingScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
-
Method Details
-
canTakeOutput
-
onTakeOutput
-
canUse
-
updateResult
public abstract void updateResult() -
onContentChanged
- Overrides:
onContentChangedin classScreenHandler
-
close
- Overrides:
closein classScreenHandler
-
canUse
- Specified by:
canUsein classScreenHandler
-
method_30025
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-