Class EnchantingTableBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnchantingTableBlockEntity
All Implemented Interfaces:
Nameable

public class EnchantingTableBlockEntity extends BlockEntity implements Nameable
Mappings:
Namespace Name
named net/minecraft/block/entity/EnchantingTableBlockEntity
intermediary net/minecraft/class_2605
official duw
  • Field Details Link icon

    • RANDOM Link icon

      private static final Random RANDOM
      Mappings:
      Namespace Name Mixin selector
      named RANDOM Lnet/minecraft/block/entity/EnchantingTableBlockEntity;RANDOM:Lnet/minecraft/util/math/random/Random;
      intermediary field_11968 Lnet/minecraft/class_2605;field_11968:Lnet/minecraft/class_5819;
      official k Lduw;k:Lazh;
    • ticks Link icon

      public int ticks
      Mappings:
      Namespace Name Mixin selector
      named ticks Lnet/minecraft/block/entity/EnchantingTableBlockEntity;ticks:I
      intermediary field_11961 Lnet/minecraft/class_2605;field_11961:I
      official a Lduw;a:I
    • nextPageAngle Link icon

      public float nextPageAngle
      Mappings:
      Namespace Name Mixin selector
      named nextPageAngle Lnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageAngle:F
      intermediary field_11958 Lnet/minecraft/class_2605;field_11958:F
      official b Lduw;b:F
    • pageAngle Link icon

      public float pageAngle
      Mappings:
      Namespace Name Mixin selector
      named pageAngle Lnet/minecraft/block/entity/EnchantingTableBlockEntity;pageAngle:F
      intermediary field_11960 Lnet/minecraft/class_2605;field_11960:F
      official c Lduw;c:F
    • flipRandom Link icon

      public float flipRandom
      Mappings:
      Namespace Name Mixin selector
      named flipRandom Lnet/minecraft/block/entity/EnchantingTableBlockEntity;flipRandom:F
      intermediary field_11969 Lnet/minecraft/class_2605;field_11969:F
      official d Lduw;d:F
    • flipTurn Link icon

      public float flipTurn
      Mappings:
      Namespace Name Mixin selector
      named flipTurn Lnet/minecraft/block/entity/EnchantingTableBlockEntity;flipTurn:F
      intermediary field_11967 Lnet/minecraft/class_2605;field_11967:F
      official e Lduw;e:F
    • nextPageTurningSpeed Link icon

      public float nextPageTurningSpeed
      Mappings:
      Namespace Name Mixin selector
      named nextPageTurningSpeed Lnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageTurningSpeed:F
      intermediary field_11966 Lnet/minecraft/class_2605;field_11966:F
      official f Lduw;f:F
    • pageTurningSpeed Link icon

      public float pageTurningSpeed
      Mappings:
      Namespace Name Mixin selector
      named pageTurningSpeed Lnet/minecraft/block/entity/EnchantingTableBlockEntity;pageTurningSpeed:F
      intermediary field_11965 Lnet/minecraft/class_2605;field_11965:F
      official g Lduw;g:F
    • bookRotation Link icon

      public float bookRotation
      Mappings:
      Namespace Name Mixin selector
      named bookRotation Lnet/minecraft/block/entity/EnchantingTableBlockEntity;bookRotation:F
      intermediary field_11964 Lnet/minecraft/class_2605;field_11964:F
      official h Lduw;h:F
    • lastBookRotation Link icon

      public float lastBookRotation
      Mappings:
      Namespace Name Mixin selector
      named lastBookRotation Lnet/minecraft/block/entity/EnchantingTableBlockEntity;lastBookRotation:F
      intermediary field_11963 Lnet/minecraft/class_2605;field_11963:F
      official i Lduw;i:F
    • targetBookRotation Link icon

      public float targetBookRotation
      Mappings:
      Namespace Name Mixin selector
      named targetBookRotation Lnet/minecraft/block/entity/EnchantingTableBlockEntity;targetBookRotation:F
      intermediary field_11962 Lnet/minecraft/class_2605;field_11962:F
      official j Lduw;j:F
    • customName Link icon

      @Nullable private @Nullable Text customName
      Mappings:
      Namespace Name Mixin selector
      named customName Lnet/minecraft/block/entity/EnchantingTableBlockEntity;customName:Lnet/minecraft/text/Text;
      intermediary field_11959 Lnet/minecraft/class_2605;field_11959:Lnet/minecraft/class_2561;
      official l Lduw;l:Lwp;
  • Constructor Details Link icon

    • EnchantingTableBlockEntity Link icon

      public EnchantingTableBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/EnchantingTableBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_2605;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Lduw;<init>(Lji;Ldwy;)V
  • Method Details Link icon

    • writeNbt Link icon

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Writes data to nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      Overrides:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Ldua;b(Ltq;Ljt$a;)V
    • readNbt Link icon

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Reads data from nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Ldua;a(Ltq;Ljt$a;)V
    • tick Link icon

      public static void tick(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/block/entity/EnchantingTableBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EnchantingTableBlockEntity;)V
      intermediary method_31688 Lnet/minecraft/class_2605;method_31688(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2605;)V
      official a Lduw;a(Ldgj;Lji;Ldwy;Lduw;)V
    • getName Link icon

      public Text getName()
      Returns the name of this object.

      This should return the custom name if it exists, otherwise the default name. This should not have styling applied.

      Specified by:
      getName in interface Nameable
      Returns:
      the name of this object
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
      intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
      official al Lbso;al()Lwp;
    • setCustomName Link icon

      public void setCustomName(@Nullable @Nullable Text customName)
      Mappings:
      Namespace Name Mixin selector
      named setCustomName Lnet/minecraft/block/entity/EnchantingTableBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
      intermediary method_11179 Lnet/minecraft/class_2605;method_11179(Lnet/minecraft/class_2561;)V
      official a Lduw;a(Lwp;)V
    • getCustomName Link icon

      @Nullable public @Nullable Text getCustomName()
      Returns the custom name of this object, or null if there is none.
      Specified by:
      getCustomName in interface Nameable
      Returns:
      the custom name of this object, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getCustomName Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
      intermediary method_5797 Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
      official an Lbso;an()Lwp;
    • readComponents Link icon

      protected void readComponents(BlockEntity.ComponentsAccess components)
      Overrides:
      readComponents in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      named readComponents Lnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/block/entity/BlockEntity$ComponentsAccess;)V
      intermediary method_57568 Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_2586$class_9473;)V
      official a Ldua;a(Ldua$b;)V
    • addComponents Link icon

      protected void addComponents(ComponentMap.Builder builder)
      Overrides:
      addComponents in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      named addComponents Lnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)V
      intermediary method_57567 Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)V
      official a Ldua;a(Lkr$a;)V
    • removeFromCopiedStackNbt Link icon

      public void removeFromCopiedStackNbt(NbtCompound nbt)
      Overrides:
      removeFromCopiedStackNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      named removeFromCopiedStackNbt Lnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_57569 Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_2487;)V
      official a Ldua;a(Ltq;)V