Class SmithingScreenHandler


public class SmithingScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
named net/minecraft/screen/SmithingScreenHandler
intermediary net/minecraft/class_4862
official cvb
  • 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

      private final World 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

      private final RecipePropertySet 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

      private final RecipePropertySet 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

      private final RecipePropertySet 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

      private final Property 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

      public SmithingScreenHandler(int syncId, PlayerInventory playerInventory)
      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

      private static ForgingSlotsManager createForgingSlotsManager(RecipeManager recipeManager)
      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

      protected boolean canUse(BlockState state)
      Specified by:
      canUse in class ForgingScreenHandler
      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

      protected void onTakeOutput(PlayerEntity player, ItemStack stack)
      Specified by:
      onTakeOutput in class ForgingScreenHandler
      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

      private List<ItemStack> 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

      private SmithingRecipeInput 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

      public void onContentChanged(Inventory inventory)
      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 whose markDirty 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 class ForgingScreenHandler
      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 class ForgingScreenHandler
      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

      public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
      Returns whether stack can be inserted to slot.

      Subclasses should override this to return false if the slot is used for output.

      Overrides:
      canInsertIntoSlot in class ScreenHandler
      Returns:
      whether stack can be inserted to slot
      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

      public boolean isValidIngredient(ItemStack stack)
      Overrides:
      isValidIngredient in class ForgingScreenHandler
      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