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 cvb
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipePropertySet
private final RecipePropertySet
static final int
static final int
private final Property
static final int
static final int
static final int
private static final int
static final int
static final int
static final int
private final RecipePropertySet
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, field_52557, field_52558, slots, syncId
-
Constructor Summary
ModifierConstructorDescriptionSmithingScreenHandler
(int syncId, PlayerInventory playerInventory) SmithingScreenHandler
(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) private
SmithingScreenHandler
(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context, World world) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canInsertIntoSlot
(ItemStack stack, Slot slot) Returns whetherstack
can be inserted toslot
.protected boolean
canUse
(BlockState state) private static ForgingSlotsManager
createForgingSlotsManager
(RecipeManager recipeManager) private SmithingRecipeInput
private void
decrementStack
(int slot) boolean
boolean
isValidIngredient
(ItemStack stack) void
onContentChanged
(Inventory inventory) Called when a slot's content has changed.protected void
onTakeOutput
(PlayerEntity player, ItemStack stack) void
Methods inherited from class net.minecraft.screen.ForgingScreenHandler
canTakeOutput, canUse, getResultSlotIndex, onClosed, quickMove
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addPlayerHotbarSlots, addPlayerInventorySlots, addPlayerSlots, 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, selectBundleStack, 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 m
Lcvb;m: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 n
Lcvb;n: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 o
Lcvb;o: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 p
Lcvb;p: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 u
Lcvb;u: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 v
Lcvb;v: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 w
Lcvb;w: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 y
Lcvb;y: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 x
Lcvb;x: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 z
Lcvb;z:Ldhh;
-
basePropertySet
- Mappings:
Namespace Name Mixin selector named basePropertySet
Lnet/minecraft/screen/SmithingScreenHandler;basePropertySet:Lnet/minecraft/recipe/RecipePropertySet;
intermediary field_54597
Lnet/minecraft/class_4862;field_54597:Lnet/minecraft/class_10290;
official A
Lcvb;A:Ldcm;
-
templatePropertySet
- Mappings:
Namespace Name Mixin selector named templatePropertySet
Lnet/minecraft/screen/SmithingScreenHandler;templatePropertySet:Lnet/minecraft/recipe/RecipePropertySet;
intermediary field_54598
Lnet/minecraft/class_4862;field_54598:Lnet/minecraft/class_10290;
official B
Lcvb;B:Ldcm;
-
additionPropertySet
- Mappings:
Namespace Name Mixin selector named additionPropertySet
Lnet/minecraft/screen/SmithingScreenHandler;additionPropertySet:Lnet/minecraft/recipe/RecipePropertySet;
intermediary field_54599
Lnet/minecraft/class_4862;field_54599:Lnet/minecraft/class_10290;
official C
Lcvb;C:Ldcm;
-
invalidRecipe
- Mappings:
Namespace Name Mixin selector named invalidRecipe
Lnet/minecraft/screen/SmithingScreenHandler;invalidRecipe:Lnet/minecraft/screen/Property;
intermediary field_54970
Lnet/minecraft/class_4862;field_54970:Lnet/minecraft/class_3915;
official D
Lcvb;D:Lctv;
-
-
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>
Lcvb;<init>(ILcpv;)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>
Lcvb;<init>(ILcpv;Lcto;)V
-
SmithingScreenHandler
private SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context, World world) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;Lnet/minecraft/class_1937;)V
official <init>
Lcvb;<init>(ILcpv;Lcto;Ldhh;)V
-
-
Method Details
-
createForgingSlotsManager
- Mappings:
Namespace Name Mixin selector named createForgingSlotsManager
Lnet/minecraft/screen/SmithingScreenHandler;createForgingSlotsManager(Lnet/minecraft/recipe/RecipeManager;)Lnet/minecraft/screen/slot/ForgingSlotsManager;
intermediary method_64652
Lnet/minecraft/class_4862;method_64652(Lnet/minecraft/class_10286;)Lnet/minecraft/class_8047;
official a
Lcvb;a(Ldce;)Lcug;
-
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
Lcuf;a(Ldxu;)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
Lcuf;a(Lcpw;Lcxo;)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 o
Lcvb;o()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
Lcvb;p()Ldcz;
-
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
Lcvb;e(I)V
-
onContentChanged
Called when a slot's content has changed.This is not called by default; subclasses that override this method should also use a custom
Inventory
whosemarkDirty
method is overridden to call this method as a backing inventory of the slot.This can be used to update the output slot when input changes.
- Overrides:
onContentChanged
in classForgingScreenHandler
- Mappings:
Namespace Name Mixin selector named onContentChanged
Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
intermediary method_7609
Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
official a
Lctb;a(Lbtb;)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 l
Lcuf;l()V
-
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
Lctb;a(Lcxo;Lcuy;)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
Lcuf;c(Lcxo;)Z
-
hasInvalidRecipe
public boolean hasInvalidRecipe()- Mappings:
Namespace Name Mixin selector named hasInvalidRecipe
Lnet/minecraft/screen/SmithingScreenHandler;hasInvalidRecipe()Z
intermediary method_65060
Lnet/minecraft/class_4862;method_65060()Z
official m
Lcvb;m()Z
-