Class EnchantingScreenHandler

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

public class EnchantingScreenHandler
extends ScreenHandler
Mappings:
Namespace Name
official xs
intermediary net/minecraft/class_1996
named net/minecraft/screen/EnchantingScreenHandler
  • Field Details

    • inventory

      public Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lxs;a:Log;
      intermediary field_8479 Lnet/minecraft/class_1996;field_8479:Lnet/minecraft/class_1718;
      named inventory Lnet/minecraft/screen/EnchantingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
    • world

      private World world
      Mappings:
      Namespace Name Mixin selector
      official i Lxs;i:Ladm;
      intermediary field_8483 Lnet/minecraft/class_1996;field_8483:Lnet/minecraft/class_99;
      named world Lnet/minecraft/screen/EnchantingScreenHandler;world:Lnet/minecraft/world/World;
    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official j Lxs;j:Lcj;
      intermediary field_8484 Lnet/minecraft/class_1996;field_8484:Lnet/minecraft/class_1372;
      named pos Lnet/minecraft/screen/EnchantingScreenHandler;pos:Lnet/minecraft/util/math/BlockPos;
    • random

      private Random random
      Mappings:
      Namespace Name Mixin selector
      official k Lxs;k:Ljava/util/Random;
      intermediary field_8485 Lnet/minecraft/class_1996;field_8485:Ljava/util/Random;
      named random Lnet/minecraft/screen/EnchantingScreenHandler;random:Ljava/util/Random;
    • enchantmentPower

      public int enchantmentPower
      Mappings:
      Namespace Name Mixin selector
      official f Lxs;f:I
      intermediary field_8480 Lnet/minecraft/class_1996;field_8480:I
      named enchantmentPower Lnet/minecraft/screen/EnchantingScreenHandler;enchantmentPower:I
    • enchantmentId

      public int[] enchantmentId
      Mappings:
      Namespace Name Mixin selector
      official g Lxs;g:[I
      intermediary field_8481 Lnet/minecraft/class_1996;field_8481:[I
      named enchantmentId Lnet/minecraft/screen/EnchantingScreenHandler;enchantmentId:[I
    • enchantmentLevel

      public int[] enchantmentLevel
      Mappings:
      Namespace Name Mixin selector
      official h Lxs;h:[I
      intermediary field_8482 Lnet/minecraft/class_1996;field_8482:[I
      named enchantmentLevel Lnet/minecraft/screen/EnchantingScreenHandler;enchantmentLevel:[I
  • Constructor Details

    • EnchantingScreenHandler

      @Environment(CLIENT) public EnchantingScreenHandler​(PlayerInventory playerInventory, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxs;<init>(Lwm;Ladm;)V
      intermediary <init> Lnet/minecraft/class_1996;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_99;)V
      named <init> Lnet/minecraft/screen/EnchantingScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;)V
    • EnchantingScreenHandler

      public EnchantingScreenHandler​(PlayerInventory playerInventory, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxs;<init>(Lwm;Ladm;Lcj;)V
      intermediary <init> Lnet/minecraft/class_1996;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named <init> Lnet/minecraft/screen/EnchantingScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • addListener

      public void addListener​(ScreenHandlerListener listener)
      Overrides:
      addListener in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Lxn;)V
      intermediary method_8107 Lnet/minecraft/class_1983;method_8107(Lnet/minecraft/class_1991;)V
      named addListener Lnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
    • sendContentUpdates

      public void sendContentUpdates()
      Sends updates to listeners if any properties or slot stacks have changed.
      Overrides:
      sendContentUpdates in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b()V
      intermediary method_8113 Lnet/minecraft/class_1983;method_8113()V
      named sendContentUpdates Lnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
    • setProperty

      @Environment(CLIENT) public void setProperty​(int id, int value)
      Overrides:
      setProperty in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b(II)V
      intermediary method_8115 Lnet/minecraft/class_1983;method_8115(II)V
      named setProperty Lnet/minecraft/screen/ScreenHandler;setProperty(II)V
    • onContentChanged

      public void onContentChanged​(Inventory inventory)
      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Log;)V
      intermediary method_8101 Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)V
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
    • onButtonClick

      public boolean onButtonClick​(PlayerEntity player, int id)
      Overrides:
      onButtonClick in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Lwn;I)Z
      intermediary method_8105 Lnet/minecraft/class_1983;method_8105(Lnet/minecraft/class_1963;I)Z
      named onButtonClick Lnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
    • getRandomEnchantments

      private List<EnchantmentInfoEntry> getRandomEnchantments​(ItemStack stack, int modifier, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lxs;a(Lzx;II)Ljava/util/List;
      intermediary method_8139 Lnet/minecraft/class_1996;method_8139(Lnet/minecraft/class_2056;II)Ljava/util/List;
      named getRandomEnchantments Lnet/minecraft/screen/EnchantingScreenHandler;getRandomEnchantments(Lnet/minecraft/item/ItemStack;II)Ljava/util/List;
    • getLapisCount

      @Environment(CLIENT) public int getLapisCount()
      Mappings:
      Namespace Name Mixin selector
      official e Lxs;e()I
      intermediary method_8140 Lnet/minecraft/class_1996;method_8140()I
      named getLapisCount Lnet/minecraft/screen/EnchantingScreenHandler;getLapisCount()I
    • close

      public void close​(PlayerEntity player)
      Overrides:
      close in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b(Lwn;)V
      intermediary method_8117 Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)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 Lxi;a(Lwn;)Z
      intermediary method_8104 Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)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 Lxi;b(Lwn;I)Lzx;
      intermediary method_8118 Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;
      named transferSlot Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;