Class AnvilScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AnvilScreenHandler

public class AnvilScreenHandler extends ScreenHandler
Mappings:
Namespace Name
official acm
intermediary net/minecraft/class_1421
named net/minecraft/screen/AnvilScreenHandler
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official f Lacm;f:Lorg/apache/logging/log4j/Logger;
      intermediary field_9144 Lnet/minecraft/class_1421;field_9144:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
    • resultInventory

      private final Inventory resultInventory
      Mappings:
      Namespace Name Mixin selector
      official g Lacm;g:Lrc;
      intermediary field_5414 Lnet/minecraft/class_1421;field_5414:Lnet/minecraft/class_849;
      named resultInventory Lnet/minecraft/screen/AnvilScreenHandler;resultInventory:Lnet/minecraft/inventory/Inventory;
    • inventory

      private final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official h Lacm;h:Lrc;
      intermediary field_5415 Lnet/minecraft/class_1421;field_5415:Lnet/minecraft/class_849;
      named inventory Lnet/minecraft/screen/AnvilScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official i Lacm;i:Lajs;
      intermediary field_5416 Lnet/minecraft/class_1421;field_5416:Lnet/minecraft/class_1150;
      named world Lnet/minecraft/screen/AnvilScreenHandler;world:Lnet/minecraft/world/World;
    • blockPos

      private final BlockPos blockPos
      Mappings:
      Namespace Name Mixin selector
      official j Lacm;j:Lco;
      intermediary field_12138 Lnet/minecraft/class_1421;field_12138:Lnet/minecraft/class_2552;
      named blockPos Lnet/minecraft/screen/AnvilScreenHandler;blockPos:Lnet/minecraft/util/math/BlockPos;
    • repairCost

      public int repairCost
      Mappings:
      Namespace Name Mixin selector
      official a Lacm;a:I
      intermediary field_5413 Lnet/minecraft/class_1421;field_5413:I
      named repairCost Lnet/minecraft/screen/AnvilScreenHandler;repairCost:I
    • field_5420

      private int field_5420
      Mappings:
      Namespace Name Mixin selector
      official k Lacm;k:I
      intermediary field_5420 Lnet/minecraft/class_1421;field_5420:I
      named field_5420 Lnet/minecraft/screen/AnvilScreenHandler;field_5420:I
    • field_5421

      private String field_5421
      Mappings:
      Namespace Name Mixin selector
      official l Lacm;l:Ljava/lang/String;
      intermediary field_5421 Lnet/minecraft/class_1421;field_5421:Ljava/lang/String;
      named field_5421 Lnet/minecraft/screen/AnvilScreenHandler;field_5421:Ljava/lang/String;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official m Lacm;m:Laay;
      intermediary field_5422 Lnet/minecraft/class_1421;field_5422:Lnet/minecraft/class_988;
      named player Lnet/minecraft/screen/AnvilScreenHandler;player:Lnet/minecraft/entity/player/PlayerEntity;
  • Constructor Details

    • AnvilScreenHandler

      @Environment(CLIENT) public AnvilScreenHandler(PlayerInventory playerInventory, World world, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacm;<init>(Laax;Lajs;Laay;)V
      intermediary <init> Lnet/minecraft/class_1421;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)V
      named <init> Lnet/minecraft/screen/AnvilScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
    • AnvilScreenHandler

      public AnvilScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacm;<init>(Laax;Lajs;Lco;Laay;)V
      intermediary <init> Lnet/minecraft/class_1421;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)V
      named <init> Lnet/minecraft/screen/AnvilScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
  • Method Details

    • onContentChanged

      public void onContentChanged(Inventory inventory)
      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lrc;)V
      intermediary method_3254 Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)V
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
    • updateResult

      public void updateResult()
      Mappings:
      Namespace Name Mixin selector
      official e Lacm;e()V
      intermediary method_4596 Lnet/minecraft/class_1421;method_4596()V
      named updateResult Lnet/minecraft/screen/AnvilScreenHandler;updateResult()V
    • addListener

      public void addListener(ScreenHandlerListener listener)
      Overrides:
      addListener in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Lacr;)V
      intermediary method_3260 Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)V
      named addListener Lnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
    • setProperty

      @Environment(CLIENT) public void setProperty(int id, int value)
      Overrides:
      setProperty in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(II)V
      intermediary method_3266 Lnet/minecraft/class_1002;method_3266(II)V
      named setProperty Lnet/minecraft/screen/ScreenHandler;setProperty(II)V
    • close

      public void close(PlayerEntity player)
      Overrides:
      close in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Laay;)V
      intermediary method_3257 Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)V
      named close Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
    • canUse

      public boolean canUse(PlayerEntity player)
      Specified by:
      canUse in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lacl;a(Laay;)Z
      intermediary method_3269 Lnet/minecraft/class_1002;method_3269(Lnet/minecraft/class_988;)Z
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • transferSlot

      public ItemStack transferSlot(PlayerEntity player, int invSlot)
      Overrides:
      transferSlot in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lacl;b(Laay;I)Lafj;
      intermediary method_3265 Lnet/minecraft/class_1002;method_3265(Lnet/minecraft/class_988;I)Lnet/minecraft/class_1071;
      named transferSlot Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
    • rename

      public void rename(String customName)
      Mappings:
      Namespace Name Mixin selector
      official a Lacm;a(Ljava/lang/String;)V
      intermediary method_4593 Lnet/minecraft/class_1421;method_4593(Ljava/lang/String;)V
      named rename Lnet/minecraft/screen/AnvilScreenHandler;rename(Ljava/lang/String;)V