Class AnvilScreenHandler


public class AnvilScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
named net/minecraft/screen/AnvilScreenHandler
intermediary net/minecraft/class_1706
official cte
  • Field Details

    • INPUT_1_ID

      public static final int INPUT_1_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INPUT_1_ID Lnet/minecraft/screen/AnvilScreenHandler;INPUT_1_ID:I
      intermediary field_41898 Lnet/minecraft/class_1706;field_41898:I
      official m Lcte;m:I
    • INPUT_2_ID

      public static final int INPUT_2_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INPUT_2_ID Lnet/minecraft/screen/AnvilScreenHandler;INPUT_2_ID:I
      intermediary field_41899 Lnet/minecraft/class_1706;field_41899:I
      official n Lcte;n:I
    • OUTPUT_ID

      public static final int OUTPUT_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OUTPUT_ID Lnet/minecraft/screen/AnvilScreenHandler;OUTPUT_ID:I
      intermediary field_41900 Lnet/minecraft/class_1706;field_41900:I
      official o Lcte;o:I
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_7771 Lnet/minecraft/class_1706;field_7771:Lorg/slf4j/Logger;
      official u Lcte;u:Lorg/slf4j/Logger;
    • field_30752

      private static final boolean field_30752
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30752 Lnet/minecraft/screen/AnvilScreenHandler;field_30752:Z
      intermediary field_30752 Lnet/minecraft/class_1706;field_30752:Z
      official v Lcte;v:Z
    • MAX_NAME_LENGTH

      public static final int MAX_NAME_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_NAME_LENGTH Lnet/minecraft/screen/AnvilScreenHandler;MAX_NAME_LENGTH:I
      intermediary field_30751 Lnet/minecraft/class_1706;field_30751:I
      official p Lcte;p:I
    • field_30753

      private static final int field_30753
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30753 Lnet/minecraft/screen/AnvilScreenHandler;field_30753:I
      intermediary field_30753 Lnet/minecraft/class_1706;field_30753:I
      official A Lcte;A:I
    • field_30754

      private static final int field_30754
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30754 Lnet/minecraft/screen/AnvilScreenHandler;field_30754:I
      intermediary field_30754 Lnet/minecraft/class_1706;field_30754:I
      official B Lcte;B:I
    • field_30755

      private static final int field_30755
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30755 Lnet/minecraft/screen/AnvilScreenHandler;field_30755:I
      intermediary field_30755 Lnet/minecraft/class_1706;field_30755:I
      official C Lcte;C:I
    • field_30747

      private static final int field_30747
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30747 Lnet/minecraft/screen/AnvilScreenHandler;field_30747:I
      intermediary field_30747 Lnet/minecraft/class_1706;field_30747:I
      official D Lcte;D:I
    • field_30748

      private static final int field_30748
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30748 Lnet/minecraft/screen/AnvilScreenHandler;field_30748:I
      intermediary field_30748 Lnet/minecraft/class_1706;field_30748:I
      official E Lcte;E:I
    • field_30749

      private static final int field_30749
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30749 Lnet/minecraft/screen/AnvilScreenHandler;field_30749:I
      intermediary field_30749 Lnet/minecraft/class_1706;field_30749:I
      official F Lcte;F:I
    • field_30750

      private static final int field_30750
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30750 Lnet/minecraft/screen/AnvilScreenHandler;field_30750:I
      intermediary field_30750 Lnet/minecraft/class_1706;field_30750:I
      official G Lcte;G:I
    • INPUT_1_X

      private static final int INPUT_1_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INPUT_1_X Lnet/minecraft/screen/AnvilScreenHandler;INPUT_1_X:I
      intermediary field_41894 Lnet/minecraft/class_1706;field_41894:I
      official H Lcte;H:I
    • INPUT_2_X

      private static final int INPUT_2_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INPUT_2_X Lnet/minecraft/screen/AnvilScreenHandler;INPUT_2_X:I
      intermediary field_41895 Lnet/minecraft/class_1706;field_41895:I
      official I Lcte;I:I
    • OUTPUT_X

      private static final int OUTPUT_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OUTPUT_X Lnet/minecraft/screen/AnvilScreenHandler;OUTPUT_X:I
      intermediary field_41896 Lnet/minecraft/class_1706;field_41896:I
      official J Lcte;J:I
    • SLOT_Y

      private static final int SLOT_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SLOT_Y Lnet/minecraft/screen/AnvilScreenHandler;SLOT_Y:I
      intermediary field_41897 Lnet/minecraft/class_1706;field_41897:I
      official K Lcte;K:I
    • repairItemUsage

      private int repairItemUsage
      Mappings:
      Namespace Name Mixin selector
      named repairItemUsage Lnet/minecraft/screen/AnvilScreenHandler;repairItemUsage:I
      intermediary field_7776 Lnet/minecraft/class_1706;field_7776:I
      official w Lcte;w:I
    • newItemName

      @Nullable private @Nullable String newItemName
      Mappings:
      Namespace Name Mixin selector
      named newItemName Lnet/minecraft/screen/AnvilScreenHandler;newItemName:Ljava/lang/String;
      intermediary field_7774 Lnet/minecraft/class_1706;field_7774:Ljava/lang/String;
      official x Lcte;x:Ljava/lang/String;
    • levelCost

      private final Property levelCost
      Mappings:
      Namespace Name Mixin selector
      named levelCost Lnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;
      intermediary field_7770 Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;
      official y Lcte;y:Lctv;
    • keepSecondSlot

      private boolean keepSecondSlot
      Mappings:
      Namespace Name Mixin selector
      named keepSecondSlot Lnet/minecraft/screen/AnvilScreenHandler;keepSecondSlot:Z
      intermediary field_52566 Lnet/minecraft/class_1706;field_52566:Z
      official z Lcte;z:Z
  • Constructor Details

    • AnvilScreenHandler

      public AnvilScreenHandler(int syncId, PlayerInventory inventory)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
      intermediary <init> Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;)V
      official <init> Lcte;<init>(ILcpv;)V
    • AnvilScreenHandler

      public AnvilScreenHandler(int syncId, PlayerInventory inventory, ScreenHandlerContext context)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/screen/AnvilScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
      intermediary <init> Lnet/minecraft/class_1706;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
      official <init> Lcte;<init>(ILcpv;Lcto;)V
  • Method Details

    • getForgingSlotsManager

      private static ForgingSlotsManager getForgingSlotsManager()
      Mappings:
      Namespace Name Mixin selector
      named getForgingSlotsManager Lnet/minecraft/screen/AnvilScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
      intermediary method_48352 Lnet/minecraft/class_1706;method_48352()Lnet/minecraft/class_8047;
      official o Lcte;o()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
    • canTakeOutput

      protected boolean canTakeOutput(PlayerEntity player, boolean present)
      Overrides:
      canTakeOutput in class ForgingScreenHandler
      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 Lcuf;a(Lcpw;Z)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
    • 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
    • getNextCost

      public static int getNextCost(int cost)
      Mappings:
      Namespace Name Mixin selector
      named getNextCost Lnet/minecraft/screen/AnvilScreenHandler;getNextCost(I)I
      intermediary method_20398 Lnet/minecraft/class_1706;method_20398(I)I
      official e Lcte;e(I)I
    • setNewItemName

      public boolean setNewItemName(String newItemName)
      Mappings:
      Namespace Name Mixin selector
      named setNewItemName Lnet/minecraft/screen/AnvilScreenHandler;setNewItemName(Ljava/lang/String;)Z
      intermediary method_7625 Lnet/minecraft/class_1706;method_7625(Ljava/lang/String;)Z
      official a Lcte;a(Ljava/lang/String;)Z
    • sanitize

      @Nullable private static @Nullable String sanitize(String name)
      Mappings:
      Namespace Name Mixin selector
      named sanitize Lnet/minecraft/screen/AnvilScreenHandler;sanitize(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_52176 Lnet/minecraft/class_1706;method_52176(Ljava/lang/String;)Ljava/lang/String;
      official b Lcte;b(Ljava/lang/String;)Ljava/lang/String;
    • getLevelCost

      public int getLevelCost()
      Mappings:
      Namespace Name Mixin selector
      named getLevelCost Lnet/minecraft/screen/AnvilScreenHandler;getLevelCost()I
      intermediary method_17369 Lnet/minecraft/class_1706;method_17369()I
      official m Lcte;m()I