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
- Mappings:
Namespace Name official bkq
intermediary net/minecraft/class_4861
named net/minecraft/screen/ForgingScreenHandler
-
Field Summary
Fields Modifier and Type Field Description protected ScreenHandlerContext
context
protected Inventory
input
protected CraftingResultInventory
output
protected PlayerEntity
player
Fields 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 boolean
canTakeOutput(PlayerEntity player, boolean present)
protected abstract boolean
canUse(BlockState state)
boolean
canUse(PlayerEntity player)
void
close(PlayerEntity player)
protected boolean
method_30025(ItemStack itemStack)
void
onContentChanged(Inventory inventory)
protected abstract ItemStack
onTakeOutput(PlayerEntity player, ItemStack stack)
ItemStack
transferSlot(PlayerEntity player, int index)
abstract void
updateResult()
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
- Mappings:
Namespace Name Mixin selector official c
Lbkq;c:Lblc;
intermediary field_22479
Lnet/minecraft/class_4861;field_22479:Lnet/minecraft/class_1731;
named output
Lnet/minecraft/screen/ForgingScreenHandler;output:Lnet/minecraft/inventory/CraftingResultInventory;
-
input
- Mappings:
Namespace Name Mixin selector official d
Lbkq;d:Lapj;
intermediary field_22480
Lnet/minecraft/class_4861;field_22480:Lnet/minecraft/class_1263;
named input
Lnet/minecraft/screen/ForgingScreenHandler;input:Lnet/minecraft/inventory/Inventory;
-
context
- Mappings:
Namespace Name Mixin selector official e
Lbkq;e:Lbkc;
intermediary field_22481
Lnet/minecraft/class_4861;field_22481:Lnet/minecraft/class_3914;
named context
Lnet/minecraft/screen/ForgingScreenHandler;context:Lnet/minecraft/screen/ScreenHandlerContext;
-
player
- Mappings:
Namespace Name Mixin selector official f
Lbkq;f:Lbhl;
intermediary field_22482
Lnet/minecraft/class_4861;field_22482:Lnet/minecraft/class_1657;
named player
Lnet/minecraft/screen/ForgingScreenHandler;player:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
ForgingScreenHandler
public ForgingScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)- Mappings:
Namespace Name Mixin selector official <init>
Lbkq;<init>(Lbku;ILbhk;Lbkc;)V
intermediary <init>
Lnet/minecraft/class_4861;<init>(Lnet/minecraft/class_3917;ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
named <init>
Lnet/minecraft/screen/ForgingScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
canTakeOutput
- Mappings:
Namespace Name Mixin selector official b
Lbkq;b(Lbhl;Z)Z
intermediary method_24927
Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Z
named canTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
-
onTakeOutput
- Mappings:
Namespace Name Mixin selector official a
Lbkq;a(Lbhl;Lbnv;)Lbnv;
intermediary method_24923
Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named onTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
canUse
- Mappings:
Namespace Name Mixin selector official a
Lbkq;a(Lcht;)Z
intermediary method_24925
Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Z
named canUse
Lnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
-
updateResult
public abstract void updateResult()- Mappings:
Namespace Name Mixin selector official e
Lbkq;e()V
intermediary method_24928
Lnet/minecraft/class_4861;method_24928()V
named updateResult
Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
-
onContentChanged
- Overrides:
onContentChanged
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lapj;)V
intermediary method_7609
Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
named onContentChanged
Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
close
- Overrides:
close
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbjr;b(Lbhl;)V
intermediary method_7595
Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)V
named close
Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
canUse
- Specified by:
canUse
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbjr;a(Lbhl;)Z
intermediary method_7597
Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
named canUse
Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_30025
- Mappings:
Namespace Name Mixin selector official a
Lbkq;a(Lbnv;)Z
intermediary method_30025
Lnet/minecraft/class_4861;method_30025(Lnet/minecraft/class_1799;)Z
named method_30025
Lnet/minecraft/screen/ForgingScreenHandler;method_30025(Lnet/minecraft/item/ItemStack;)Z
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbjr;b(Lbhl;I)Lbnv;
intermediary method_7601
Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
named transferSlot
Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-