Class AnvilScreenHandler


public class AnvilScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
named net/minecraft/screen/AnvilScreenHandler
intermediary net/minecraft/class_1706
official cpy
  • 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 k Lcpy;k: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 l Lcpy;l: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 m Lcpy;m: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 s Lcpy;s: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 t Lcpy;t: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 n Lcpy;n: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 x Lcpy;x: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 y Lcpy;y: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 z Lcpy;z: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 A Lcpy;A: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 B Lcpy;B: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 C Lcpy;C: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 D Lcpy;D: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 E Lcpy;E: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 F Lcpy;F: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 G Lcpy;G: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 H Lcpy;H: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 u Lcpy;u: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 v Lcpy;v: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 w Lcpy;w:Lcqo;
  • 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> Lcpy;<init>(ILcmy;)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> Lcpy;<init>(ILcmy;Lcqh;)V
  • Method Details

    • getForgingSlotsManager

      protected ForgingSlotsManager getForgingSlotsManager()
      Specified by:
      getForgingSlotsManager in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named getForgingSlotsManager Lnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
      intermediary method_48352 Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;
      official l Lcqy;l()Lcqz;
    • 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 Lcqy;a(Ldse;)Z
    • canTakeOutput

      protected boolean canTakeOutput(PlayerEntity player, boolean present)
      Specified by:
      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 Lcqy;a(Lcmz;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 Lcqy;a(Lcmz;Lcur;)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 m Lcqy;m()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 Lcpy;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 Lcpy;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 Lcpy;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 n Lcpy;n()I