Package net.minecraft.screen
Class SmithingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.SmithingScreenHandler
- Mappings:
Namespace Name named net/minecraft/screen/SmithingScreenHandler
intermediary net/minecraft/class_4862
official crr
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable RecipeEntry
<SmithingRecipe> static final int
static final int
static final int
static final int
static final int
private static final int
private final List
<RecipeEntry<SmithingRecipe>> static final int
static final int
static final int
private final World
Fields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, player
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
ConstructorDescriptionSmithingScreenHandler
(int syncId, PlayerInventory playerInventory) SmithingScreenHandler
(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canInsertIntoSlot
(ItemStack stack, Slot slot) Returns whetherstack
can be inserted toslot
.protected boolean
canTakeOutput
(PlayerEntity player, boolean present) protected boolean
canUse
(BlockState state) private SmithingRecipeInput
private void
decrementStack
(int slot) protected ForgingSlotsManager
private OptionalInt
getQuickMoveSlot
(ItemStack stack) private static OptionalInt
getQuickMoveSlot
(SmithingRecipe recipe, ItemStack stack) int
getSlotFor
(ItemStack stack) boolean
isValidIngredient
(ItemStack stack) protected void
onTakeOutput
(PlayerEntity player, ItemStack stack) void
Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canUse, getResultSlotIndex, onClosed, onContentChanged, quickMove
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
TEMPLATE_ID
public static final int TEMPLATE_ID- See Also:
- Mappings:
Namespace Name Mixin selector named TEMPLATE_ID
Lnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_ID:I
intermediary field_41924
Lnet/minecraft/class_4862;field_41924:I
official k
Lcrr;k:I
-
EQUIPMENT_ID
public static final int EQUIPMENT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_ID
Lnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_ID:I
intermediary field_41925
Lnet/minecraft/class_4862;field_41925:I
official l
Lcrr;l:I
-
MATERIAL_ID
public static final int MATERIAL_ID- See Also:
- Mappings:
Namespace Name Mixin selector named MATERIAL_ID
Lnet/minecraft/screen/SmithingScreenHandler;MATERIAL_ID:I
intermediary field_41926
Lnet/minecraft/class_4862;field_41926:I
official m
Lcrr;m:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_ID
Lnet/minecraft/screen/SmithingScreenHandler;OUTPUT_ID:I
intermediary field_41927
Lnet/minecraft/class_4862;field_41927:I
official n
Lcrr;n:I
-
TEMPLATE_X
public static final int TEMPLATE_X- See Also:
- Mappings:
Namespace Name Mixin selector named TEMPLATE_X
Lnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_X:I
intermediary field_41928
Lnet/minecraft/class_4862;field_41928:I
official s
Lcrr;s:I
-
EQUIPMENT_X
public static final int EQUIPMENT_X- See Also:
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_X
Lnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_X:I
intermediary field_41929
Lnet/minecraft/class_4862;field_41929:I
official t
Lcrr;t:I
-
MATERIAL_X
public static final int MATERIAL_X- See Also:
- Mappings:
Namespace Name Mixin selector named MATERIAL_X
Lnet/minecraft/screen/SmithingScreenHandler;MATERIAL_X:I
intermediary field_41930
Lnet/minecraft/class_4862;field_41930:I
official u
Lcrr;u:I
-
OUTPUT_X
private static final int OUTPUT_X- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_X
Lnet/minecraft/screen/SmithingScreenHandler;OUTPUT_X:I
intermediary field_41932
Lnet/minecraft/class_4862;field_41932:I
official w
Lcrr;w:I
-
SLOT_Y
public static final int SLOT_Y- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_Y
Lnet/minecraft/screen/SmithingScreenHandler;SLOT_Y:I
intermediary field_41931
Lnet/minecraft/class_4862;field_41931:I
official v
Lcrr;v:I
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/screen/SmithingScreenHandler;world:Lnet/minecraft/world/World;
intermediary field_25385
Lnet/minecraft/class_4862;field_25385:Lnet/minecraft/class_1937;
official x
Lcrr;x:Ldcu;
-
currentRecipe
- Mappings:
Namespace Name Mixin selector named currentRecipe
Lnet/minecraft/screen/SmithingScreenHandler;currentRecipe:Lnet/minecraft/recipe/RecipeEntry;
intermediary field_25386
Lnet/minecraft/class_4862;field_25386:Lnet/minecraft/class_8786;
official y
Lcrr;y:Lcyz;
-
recipes
- Mappings:
Namespace Name Mixin selector named recipes
Lnet/minecraft/screen/SmithingScreenHandler;recipes:Ljava/util/List;
intermediary field_25668
Lnet/minecraft/class_4862;field_25668:Ljava/util/List;
official z
Lcrr;z:Ljava/util/List;
-
-
Constructor Details
-
SmithingScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
intermediary <init>
Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;)V
official <init>
Lcrr;<init>(ILcmu;)V
-
SmithingScreenHandler
public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
intermediary <init>
Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
official <init>
Lcrr;<init>(ILcmu;Lcqe;)V
-
-
Method Details
-
getForgingSlotsManager
- Specified by:
getForgingSlotsManager
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named getForgingSlotsManager
Lnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
intermediary method_48352
Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;
official l
Lcqv;l()Lcqw;
-
canUse
- Specified by:
canUse
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named canUse
Lnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
intermediary method_24925
Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Z
official a
Lcqv;a(Ldta;)Z
-
canTakeOutput
- Specified by:
canTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named canTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
intermediary method_24927
Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Z
official a
Lcqv;a(Lcmv;Z)Z
-
onTakeOutput
- Specified by:
onTakeOutput
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named onTakeOutput
Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_24923
Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
official a
Lcqv;a(Lcmv;Lcuo;)V
-
getInputStacks
- Mappings:
Namespace Name Mixin selector named getInputStacks
Lnet/minecraft/screen/SmithingScreenHandler;getInputStacks()Ljava/util/List;
intermediary method_51307
Lnet/minecraft/class_4862;method_51307()Ljava/util/List;
official n
Lcrr;n()Ljava/util/List;
-
createRecipeInput
- Mappings:
Namespace Name Mixin selector named createRecipeInput
Lnet/minecraft/screen/SmithingScreenHandler;createRecipeInput()Lnet/minecraft/recipe/input/SmithingRecipeInput;
intermediary method_59965
Lnet/minecraft/class_4862;method_59965()Lnet/minecraft/class_9697;
official p
Lcrr;p()Lczq;
-
decrementStack
private void decrementStack(int slot) - Mappings:
Namespace Name Mixin selector named decrementStack
Lnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)V
intermediary method_29539
Lnet/minecraft/class_4862;method_29539(I)V
official e
Lcrr;e(I)V
-
updateResult
public void updateResult()- Specified by:
updateResult
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named updateResult
Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
intermediary method_24928
Lnet/minecraft/class_4861;method_24928()V
official m
Lcqv;m()V
-
getSlotFor
- Overrides:
getSlotFor
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named getSlotFor
Lnet/minecraft/screen/ForgingScreenHandler;getSlotFor(Lnet/minecraft/item/ItemStack;)I
intermediary method_48357
Lnet/minecraft/class_4861;method_48357(Lnet/minecraft/class_1799;)I
official d
Lcqv;d(Lcuo;)I
-
getQuickMoveSlot
- Mappings:
Namespace Name Mixin selector named getQuickMoveSlot
Lnet/minecraft/screen/SmithingScreenHandler;getQuickMoveSlot(Lnet/minecraft/recipe/SmithingRecipe;Lnet/minecraft/item/ItemStack;)Ljava/util/OptionalInt;
intermediary method_48389
Lnet/minecraft/class_4862;method_48389(Lnet/minecraft/class_8059;Lnet/minecraft/class_1799;)Ljava/util/OptionalInt;
official a
Lcrr;a(Lczp;Lcuo;)Ljava/util/OptionalInt;
-
canInsertIntoSlot
Returns whetherstack
can be inserted toslot
.Subclasses should override this to return
false
if the slot is used for output.- Overrides:
canInsertIntoSlot
in classScreenHandler
- Returns:
- whether
stack
can be inserted toslot
- Mappings:
Namespace Name Mixin selector named canInsertIntoSlot
Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
intermediary method_7613
Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
official a
Lcps;a(Lcuo;Lcro;)Z
-
isValidIngredient
- Overrides:
isValidIngredient
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named isValidIngredient
Lnet/minecraft/screen/ForgingScreenHandler;isValidIngredient(Lnet/minecraft/item/ItemStack;)Z
intermediary method_48356
Lnet/minecraft/class_4861;method_48356(Lnet/minecraft/class_1799;)Z
official c
Lcqv;c(Lcuo;)Z
-
getQuickMoveSlot
- Mappings:
Namespace Name Mixin selector named getQuickMoveSlot
Lnet/minecraft/screen/SmithingScreenHandler;getQuickMoveSlot(Lnet/minecraft/item/ItemStack;)Ljava/util/OptionalInt;
intermediary method_52563
Lnet/minecraft/class_4862;method_52563(Lnet/minecraft/class_1799;)Ljava/util/OptionalInt;
official e
Lcrr;e(Lcuo;)Ljava/util/OptionalInt;
-