Class AnvilScreenHandler


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

    • INPUT_1_ID

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      private final Property levelCost
      Mappings:
      Namespace Name Mixin selector
      official w Lcbh;w:Lcbv;
      intermediary field_7770 Lnet/minecraft/class_1706;field_7770:Lnet/minecraft/class_3915;
      named levelCost Lnet/minecraft/screen/AnvilScreenHandler;levelCost:Lnet/minecraft/screen/Property;
  • Constructor Details

    • AnvilScreenHandler

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

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

    • getForgingSlotsManager

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

      protected boolean canUse(BlockState state)
      Specified by:
      canUse in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lccf;a(Ldcb;)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 Lccf;a(Lbyo;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 Lccf;a(Lbyo;Lcfz;)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
    • updateResult

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

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

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

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

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