Class AnvilScreenHandler


public class AnvilScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
named net/minecraft/screen/AnvilScreenHandler
intermediary net/minecraft/class_1706
official cpx
  • 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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;w:Lcqn;
  • 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> Lcpx;<init>(ILcmx;)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> Lcpx;<init>(ILcmx;Lcqg;)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 Lcqx;l()Lcqy;
    • 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 Lcqx;a(Ldsd;)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 Lcqx;a(Lcmy;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 Lcqx;a(Lcmy;Lcuq;)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 Lcqx;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 Lcpx;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 Lcpx;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 Lcpx;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 Lcpx;n()I