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/SmithingScreenHandlerintermediary net/minecraft/class_4862official dha
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipePropertySetprivate final RecipePropertySetstatic final intstatic final intprivate final Propertystatic final intstatic final intstatic final intprivate static final intstatic final intstatic final intstatic final intprivate final RecipePropertySetprivate final WorldFields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, playerFields 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
ConstructorsModifierConstructorDescriptionSmithingScreenHandler(int syncId, PlayerInventory playerInventory) SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) privateSmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context, World world) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.protected booleancanUse(BlockState state) private static ForgingSlotsManagercreateForgingSlotsManager(RecipeManager recipeManager) private SmithingRecipeInputprivate voiddecrementStack(int slot) booleanbooleanisValidIngredient(ItemStack stack) voidonContentChanged(Inventory inventory) Called when a slot's content has changed.protected voidonTakeOutput(PlayerEntity player, ItemStack stack) voidMethods inherited from class net.minecraft.screen.ForgingScreenHandler
canTakeOutput, canUse, getResultSlotIndex, onClosed, quickMoveMethods 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, setProperty, setReceivedCursorHash, setReceivedHash, setReceivedStack, 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_IDLnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_ID:Iintermediary field_41924Lnet/minecraft/class_4862;field_41924:Iofficial mLdha;m:I
-
EQUIPMENT_ID
public static final int EQUIPMENT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_IDLnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_ID:Iintermediary field_41925Lnet/minecraft/class_4862;field_41925:Iofficial nLdha;n:I
-
MATERIAL_ID
public static final int MATERIAL_ID- See Also:
- Mappings:
Namespace Name Mixin selector named MATERIAL_IDLnet/minecraft/screen/SmithingScreenHandler;MATERIAL_ID:Iintermediary field_41926Lnet/minecraft/class_4862;field_41926:Iofficial oLdha;o:I
-
OUTPUT_ID
public static final int OUTPUT_ID- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_IDLnet/minecraft/screen/SmithingScreenHandler;OUTPUT_ID:Iintermediary field_41927Lnet/minecraft/class_4862;field_41927:Iofficial pLdha;p:I
-
TEMPLATE_X
public static final int TEMPLATE_X- See Also:
- Mappings:
Namespace Name Mixin selector named TEMPLATE_XLnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_X:Iintermediary field_41928Lnet/minecraft/class_4862;field_41928:Iofficial uLdha;u:I
-
EQUIPMENT_X
public static final int EQUIPMENT_X- See Also:
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_XLnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_X:Iintermediary field_41929Lnet/minecraft/class_4862;field_41929:Iofficial vLdha;v:I
-
MATERIAL_X
public static final int MATERIAL_X- See Also:
- Mappings:
Namespace Name Mixin selector named MATERIAL_XLnet/minecraft/screen/SmithingScreenHandler;MATERIAL_X:Iintermediary field_41930Lnet/minecraft/class_4862;field_41930:Iofficial wLdha;w:I
-
OUTPUT_X
private static final int OUTPUT_X- See Also:
- Mappings:
Namespace Name Mixin selector named OUTPUT_XLnet/minecraft/screen/SmithingScreenHandler;OUTPUT_X:Iintermediary field_41932Lnet/minecraft/class_4862;field_41932:Iofficial yLdha;y:I
-
SLOT_Y
public static final int SLOT_Y- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_YLnet/minecraft/screen/SmithingScreenHandler;SLOT_Y:Iintermediary field_41931Lnet/minecraft/class_4862;field_41931:Iofficial xLdha;x:I
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/screen/SmithingScreenHandler;world:Lnet/minecraft/world/World;intermediary field_25385Lnet/minecraft/class_4862;field_25385:Lnet/minecraft/class_1937;official zLdha;z:Ldtq;
-
basePropertySet
- Mappings:
Namespace Name Mixin selector named basePropertySetLnet/minecraft/screen/SmithingScreenHandler;basePropertySet:Lnet/minecraft/recipe/RecipePropertySet;intermediary field_54597Lnet/minecraft/class_4862;field_54597:Lnet/minecraft/class_10290;official ALdha;A:Ldop;
-
templatePropertySet
- Mappings:
Namespace Name Mixin selector named templatePropertySetLnet/minecraft/screen/SmithingScreenHandler;templatePropertySet:Lnet/minecraft/recipe/RecipePropertySet;intermediary field_54598Lnet/minecraft/class_4862;field_54598:Lnet/minecraft/class_10290;official BLdha;B:Ldop;
-
additionPropertySet
- Mappings:
Namespace Name Mixin selector named additionPropertySetLnet/minecraft/screen/SmithingScreenHandler;additionPropertySet:Lnet/minecraft/recipe/RecipePropertySet;intermediary field_54599Lnet/minecraft/class_4862;field_54599:Lnet/minecraft/class_10290;official CLdha;C:Ldop;
-
invalidRecipe
- Mappings:
Namespace Name Mixin selector named invalidRecipeLnet/minecraft/screen/SmithingScreenHandler;invalidRecipe:Lnet/minecraft/screen/Property;intermediary field_54970Lnet/minecraft/class_4862;field_54970:Lnet/minecraft/class_3915;official DLdha;D:Ldft;
-
-
Constructor Details
-
SmithingScreenHandler
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)Vintermediary <init>Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;)Vofficial <init>Ldha;<init>(ILdbd;)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;)Vintermediary <init>Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vofficial <init>Ldha;<init>(ILdbd;Ldfm;)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;)Vintermediary <init>Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;Lnet/minecraft/class_1937;)Vofficial <init>Ldha;<init>(ILdbd;Ldfm;Ldtq;)V
-
-
Method Details
-
createForgingSlotsManager
- Mappings:
Namespace Name Mixin selector named createForgingSlotsManagerLnet/minecraft/screen/SmithingScreenHandler;createForgingSlotsManager(Lnet/minecraft/recipe/RecipeManager;)Lnet/minecraft/screen/slot/ForgingSlotsManager;intermediary method_64652Lnet/minecraft/class_4862;method_64652(Lnet/minecraft/class_10286;)Lnet/minecraft/class_8047;official aLdha;a(Ldoh;)Ldge;
-
canUse
- Specified by:
canUsein classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named canUseLnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Zintermediary method_24925Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Zofficial aLdgd;a(Leln;)Z
-
onTakeOutput
- Specified by:
onTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named onTakeOutputLnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_24923Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLdgd;a(Ldbe;Ldji;)V
-
getInputStacks
- Mappings:
Namespace Name Mixin selector named getInputStacksLnet/minecraft/screen/SmithingScreenHandler;getInputStacks()Ljava/util/List;intermediary method_51307Lnet/minecraft/class_4862;method_51307()Ljava/util/List;official oLdha;o()Ljava/util/List;
-
createRecipeInput
- Mappings:
Namespace Name Mixin selector named createRecipeInputLnet/minecraft/screen/SmithingScreenHandler;createRecipeInput()Lnet/minecraft/recipe/input/SmithingRecipeInput;intermediary method_59965Lnet/minecraft/class_4862;method_59965()Lnet/minecraft/class_9697;official pLdha;p()Ldpc;
-
decrementStack
private void decrementStack(int slot) - Mappings:
Namespace Name Mixin selector named decrementStackLnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)Vintermediary method_29539Lnet/minecraft/class_4862;method_29539(I)Vofficial eLdha;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
InventorywhosemarkDirtymethod 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:
onContentChangedin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vofficial aLdez;a(Lccs;)V
-
updateResult
public void updateResult()- Specified by:
updateResultin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named updateResultLnet/minecraft/screen/ForgingScreenHandler;updateResult()Vintermediary method_24928Lnet/minecraft/class_4861;method_24928()Vofficial lLdgd;l()V
-
canInsertIntoSlot
Returns whetherstackcan be inserted toslot.Subclasses should override this to return
falseif the slot is used for output.- Overrides:
canInsertIntoSlotin classScreenHandler- Returns:
- whether
stackcan be inserted toslot - Mappings:
Namespace Name Mixin selector named canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Zintermediary method_7613Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Zofficial aLdez;a(Ldji;Ldgx;)Z
-
isValidIngredient
- Overrides:
isValidIngredientin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector named isValidIngredientLnet/minecraft/screen/ForgingScreenHandler;isValidIngredient(Lnet/minecraft/item/ItemStack;)Zintermediary method_48356Lnet/minecraft/class_4861;method_48356(Lnet/minecraft/class_1799;)Zofficial bLdgd;b(Ldji;)Z
-
hasInvalidRecipe
public boolean hasInvalidRecipe()- Mappings:
Namespace Name Mixin selector named hasInvalidRecipeLnet/minecraft/screen/SmithingScreenHandler;hasInvalidRecipe()Zintermediary method_65060Lnet/minecraft/class_4862;method_65060()Zofficial mLdha;m()Z
-