Class EnchantingScreenHandler

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

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

    • inventory

      public Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lyr;a:Lpn;
      intermediary field_4112 Lnet/minecraft/class_1013;field_4112:Lnet/minecraft/class_849;
      named inventory Lnet/minecraft/screen/EnchantingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
    • world

      private World world
      Mappings:
      Namespace Name Mixin selector
      official h Lyr;h:Lafm;
      intermediary field_4115 Lnet/minecraft/class_1013;field_4115:Lnet/minecraft/class_1150;
      named world Lnet/minecraft/screen/EnchantingScreenHandler;world:Lnet/minecraft/world/World;
    • field_4116

      private int field_4116
      Mappings:
      Namespace Name Mixin selector
      official i Lyr;i:I
      intermediary field_4116 Lnet/minecraft/class_1013;field_4116:I
      named field_4116 Lnet/minecraft/screen/EnchantingScreenHandler;field_4116:I
    • field_4117

      private int field_4117
      Mappings:
      Namespace Name Mixin selector
      official j Lyr;j:I
      intermediary field_4117 Lnet/minecraft/class_1013;field_4117:I
      named field_4117 Lnet/minecraft/screen/EnchantingScreenHandler;field_4117:I
    • field_4118

      private int field_4118
      Mappings:
      Namespace Name Mixin selector
      official k Lyr;k:I
      intermediary field_4118 Lnet/minecraft/class_1013;field_4118:I
      named field_4118 Lnet/minecraft/screen/EnchantingScreenHandler;field_4118:I
    • random

      private Random random
      Mappings:
      Namespace Name Mixin selector
      official l Lyr;l:Ljava/util/Random;
      intermediary field_4119 Lnet/minecraft/class_1013;field_4119:Ljava/util/Random;
      named random Lnet/minecraft/screen/EnchantingScreenHandler;random:Ljava/util/Random;
    • field_4113

      public long field_4113
      Mappings:
      Namespace Name Mixin selector
      official f Lyr;f:J
      intermediary field_4113 Lnet/minecraft/class_1013;field_4113:J
      named field_4113 Lnet/minecraft/screen/EnchantingScreenHandler;field_4113:J
    • enchantmentId

      public int[] enchantmentId
      Mappings:
      Namespace Name Mixin selector
      official g Lyr;g:[I
      intermediary field_4114 Lnet/minecraft/class_1013;field_4114:[I
      named enchantmentId Lnet/minecraft/screen/EnchantingScreenHandler;enchantmentId:[I
  • Constructor Details

    • EnchantingScreenHandler

      public EnchantingScreenHandler(PlayerInventory playerInventory, World world, int int2, int int3, int int4)
  • Method Details

    • addListener

      public void addListener(ScreenHandlerListener listener)
      Overrides:
      addListener in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lyd;a(Lyn;)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
    • 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 Lyd;b()V
      intermediary method_3264 Lnet/minecraft/class_1002;method_3264()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 Lyd;b(II)V
      intermediary method_3266 Lnet/minecraft/class_1002;method_3266(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 Lyd;a(Lpn;)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
    • onButtonClick

      public boolean onButtonClick(PlayerEntity player, int id)
      Overrides:
      onButtonClick in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lyd;a(Lxk;I)Z
      intermediary method_3258 Lnet/minecraft/class_1002;method_3258(Lnet/minecraft/class_988;I)Z
      named onButtonClick Lnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
    • close

      public void close(PlayerEntity player)
      Overrides:
      close in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lyd;b(Lxk;)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 Lyd;a(Lxk;)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 Lyd;b(Lxk;I)Labo;
      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;