Package net.minecraft.screen
Class ForgingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
- Direct Known Subclasses:
AnvilScreenHandler
,SmithingScreenHandler
- Mappings:
Namespace Name official bnj
intermediary net/minecraft/class_4861
named net/minecraft/screen/ForgingScreenHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected ScreenHandlerContext
private static int
private static int
static int
protected Inventory
protected CraftingResultInventory
static int
protected PlayerEntity
private static int
private static int
static int
Fields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
-
Constructor Summary
ConstructorDescriptionForgingScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
canTakeOutput(PlayerEntity player, boolean present)
protected abstract boolean
canUse(BlockState state)
boolean
canUse(PlayerEntity player)
void
close(PlayerEntity playerEntity)
protected boolean
method_30025(ItemStack itemStack)
void
onContentChanged(Inventory inventory)
protected abstract void
onTakeOutput(PlayerEntity player, ItemStack stack)
transferSlot(PlayerEntity player, int index)
abstract void
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getSlot, getStacks, getType, insertItem, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler
-
Field Details
-
FIRST_INPUT_SLOT_INDEX
public static final int FIRST_INPUT_SLOT_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official l
Lbnj;l:I
intermediary field_30814
Lnet/minecraft/class_4861;field_30814:I
named FIRST_INPUT_SLOT_INDEX
Lnet/minecraft/screen/ForgingScreenHandler;FIRST_INPUT_SLOT_INDEX:I
-
SECOND_INPUT_SLOT_INDEX
public static final int SECOND_INPUT_SLOT_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official m
Lbnj;m:I
intermediary field_30815
Lnet/minecraft/class_4861;field_30815:I
named SECOND_INPUT_SLOT_INDEX
Lnet/minecraft/screen/ForgingScreenHandler;SECOND_INPUT_SLOT_INDEX:I
-
OUTPUT_SLOT_INDEX
public static final int OUTPUT_SLOT_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official n
Lbnj;n:I
intermediary field_30816
Lnet/minecraft/class_4861;field_30816:I
named OUTPUT_SLOT_INDEX
Lnet/minecraft/screen/ForgingScreenHandler;OUTPUT_SLOT_INDEX:I
-
PLAYER_INVENTORY_START_INDEX
private static final int PLAYER_INVENTORY_START_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official k
Lbnj;k:I
intermediary field_30813
Lnet/minecraft/class_4861;field_30813:I
named PLAYER_INVENTORY_START_INDEX
Lnet/minecraft/screen/ForgingScreenHandler;PLAYER_INVENTORY_START_INDEX:I
-
field_30817
private static final int field_30817- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official s
Lbnj;s:I
intermediary field_30817
Lnet/minecraft/class_4861;field_30817:I
named field_30817
Lnet/minecraft/screen/ForgingScreenHandler;field_30817:I
-
field_30818
private static final int field_30818- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official t
Lbnj;t:I
intermediary field_30818
Lnet/minecraft/class_4861;field_30818:I
named field_30818
Lnet/minecraft/screen/ForgingScreenHandler;field_30818:I
-
PLAYER_INVENTORY_END_INDEX
private static final int PLAYER_INVENTORY_END_INDEX- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official u
Lbnj;u:I
intermediary field_30819
Lnet/minecraft/class_4861;field_30819:I
named PLAYER_INVENTORY_END_INDEX
Lnet/minecraft/screen/ForgingScreenHandler;PLAYER_INVENTORY_END_INDEX:I
-
output
- Mappings:
Namespace Name Mixin selector official o
Lbnj;o:Lbnv;
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 p
Lbnj;p:Lart;
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 q
Lbnj;q:Lbmu;
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 r
Lbnj;r:Lbkd;
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 @Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)- Mappings:
Namespace Name Mixin selector official <init>
Lbnj;<init>(Lbnn;ILbkc;Lbmu;)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 a
Lbnj;a(Lbkd;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
Lbnj;a(Lbkd;Lbqp;)V
intermediary method_24923
Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
named onTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
canUse
- Mappings:
Namespace Name Mixin selector official a
Lbnj;a(Lcks;)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 i
Lbnj;i()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
Lbmj;a(Lart;)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
Lbmj;b(Lbkd;)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
Lbmj;a(Lbkd;)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 c
Lbnj;c(Lbqp;)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
Lbmj;b(Lbkd;I)Lbqp;
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;
-