Class SmithingScreenHandler


public class SmithingScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
official cbw
intermediary net/minecraft/class_4862
named net/minecraft/screen/SmithingScreenHandler
  • Field Details

    • field_41924

      public static final int field_41924
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcbw;k:I
      intermediary field_41924 Lnet/minecraft/class_4862;field_41924:I
      named field_41924 Lnet/minecraft/screen/SmithingScreenHandler;field_41924:I
    • field_41925

      public static final int field_41925
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcbw;l:I
      intermediary field_41925 Lnet/minecraft/class_4862;field_41925:I
      named field_41925 Lnet/minecraft/screen/SmithingScreenHandler;field_41925:I
    • field_41926

      public static final int field_41926
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcbw;m:I
      intermediary field_41926 Lnet/minecraft/class_4862;field_41926:I
      named field_41926 Lnet/minecraft/screen/SmithingScreenHandler;field_41926:I
    • field_41927

      public static final int field_41927
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lcbw;n:I
      intermediary field_41927 Lnet/minecraft/class_4862;field_41927:I
      named field_41927 Lnet/minecraft/screen/SmithingScreenHandler;field_41927:I
    • field_41928

      public static final int field_41928
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official s Lcbw;s:I
      intermediary field_41928 Lnet/minecraft/class_4862;field_41928:I
      named field_41928 Lnet/minecraft/screen/SmithingScreenHandler;field_41928:I
    • field_41929

      public static final int field_41929
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Lcbw;t:I
      intermediary field_41929 Lnet/minecraft/class_4862;field_41929:I
      named field_41929 Lnet/minecraft/screen/SmithingScreenHandler;field_41929:I
    • field_41930

      public static final int field_41930
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u Lcbw;u:I
      intermediary field_41930 Lnet/minecraft/class_4862;field_41930:I
      named field_41930 Lnet/minecraft/screen/SmithingScreenHandler;field_41930:I
    • field_41932

      private static final int field_41932
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official w Lcbw;w:I
      intermediary field_41932 Lnet/minecraft/class_4862;field_41932:I
      named field_41932 Lnet/minecraft/screen/SmithingScreenHandler;field_41932:I
    • field_41931

      public static final int field_41931
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official v Lcbw;v:I
      intermediary field_41931 Lnet/minecraft/class_4862;field_41931:I
      named field_41931 Lnet/minecraft/screen/SmithingScreenHandler;field_41931:I
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official x Lcbw;x:Lcle;
      intermediary field_25385 Lnet/minecraft/class_4862;field_25385:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/screen/SmithingScreenHandler;world:Lnet/minecraft/world/World;
    • currentRecipe

      @Nullable private @Nullable class_8059 currentRecipe
      Mappings:
      Namespace Name Mixin selector
      official y Lcbw;y:Lcih;
      intermediary field_25386 Lnet/minecraft/class_4862;field_25386:Lnet/minecraft/class_8059;
      named currentRecipe Lnet/minecraft/screen/SmithingScreenHandler;currentRecipe:Lnet/minecraft/class_8059;
    • recipes

      private final List<class_8059> recipes
      Mappings:
      Namespace Name Mixin selector
      official z Lcbw;z:Ljava/util/List;
      intermediary field_25668 Lnet/minecraft/class_4862;field_25668:Ljava/util/List;
      named recipes Lnet/minecraft/screen/SmithingScreenHandler;recipes:Ljava/util/List;
  • Constructor Details

    • SmithingScreenHandler

      public SmithingScreenHandler(int syncId, PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbw;<init>(ILbxk;)V
      intermediary <init> Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;)V
      named <init> Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
    • SmithingScreenHandler

      public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbw;<init>(ILbxk;Lcan;)V
      intermediary <init> Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
      named <init> Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
  • Method Details

    • method_48352

      protected class_8047 method_48352()
      Specified by:
      method_48352 in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official l Lcbc;l()Lcbd;
      intermediary method_48352 Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;
      named method_48352 Lnet/minecraft/screen/ForgingScreenHandler;method_48352()Lnet/minecraft/class_8047;
    • canUse

      protected boolean canUse(BlockState state)
      Specified by:
      canUse in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcbc;a(Ldab;)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
    • canTakeOutput

      protected boolean canTakeOutput(PlayerEntity player, boolean present)
      Specified by:
      canTakeOutput in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcbc;a(Lbxl;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

      protected void onTakeOutput(PlayerEntity player, ItemStack stack)
      Specified by:
      onTakeOutput in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcbc;a(Lbxl;Lcer;)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
    • decrementStack

      private void decrementStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official e Lcbw;e(I)V
      intermediary method_29539 Lnet/minecraft/class_4862;method_29539(I)V
      named decrementStack Lnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)V
    • updateResult

      public void updateResult()
      Specified by:
      updateResult in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official m Lcbc;m()V
      intermediary method_24928 Lnet/minecraft/class_4861;method_24928()V
      named updateResult Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
    • method_48357

      public int method_48357(ItemStack itemStack)
      Overrides:
      method_48357 in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official d Lcbc;d(Lcer;)I
      intermediary method_48357 Lnet/minecraft/class_4861;method_48357(Lnet/minecraft/class_1799;)I
      named method_48357 Lnet/minecraft/screen/ForgingScreenHandler;method_48357(Lnet/minecraft/item/ItemStack;)I
    • method_48389

      private static Optional<Integer> method_48389(class_8059 class_8059, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbw;a(Lcih;Lcer;)Ljava/util/Optional;
      intermediary method_48389 Lnet/minecraft/class_4862;method_48389(Lnet/minecraft/class_8059;Lnet/minecraft/class_1799;)Ljava/util/Optional;
      named method_48389 Lnet/minecraft/screen/SmithingScreenHandler;method_48389(Lnet/minecraft/class_8059;Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
    • 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
      official a Lcac;a(Lcer;Lcbv;)Z
      intermediary method_7613 Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
      named canInsertIntoSlot Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
    • method_48356

      public boolean method_48356(ItemStack itemStack)
      Overrides:
      method_48356 in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official c Lcbc;c(Lcer;)Z
      intermediary method_48356 Lnet/minecraft/class_4861;method_48356(Lnet/minecraft/class_1799;)Z
      named method_48356 Lnet/minecraft/screen/ForgingScreenHandler;method_48356(Lnet/minecraft/item/ItemStack;)Z