Class EnchantingTableBlockEntity
- All Implemented Interfaces:
Nameable
- Mappings:
Namespace Name official czv
intermediary net/minecraft/class_2605
named net/minecraft/block/entity/EnchantingTableBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionfloat
private Text
float
float
float
float
float
float
float
private static final Random
float
int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the custom name of this object, ornull
if there is none.getName()
Returns the name of this object.void
readNbt
(NbtCompound nbt) Reads data fromnbt
.void
setCustomName
(@Nullable Text customName) static void
tick
(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.Nameable
getDisplayName, hasCustomName
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector official k
Lczv;k:Lapo;
intermediary field_11968
Lnet/minecraft/class_2605;field_11968:Lnet/minecraft/class_5819;
named RANDOM
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;RANDOM:Lnet/minecraft/util/math/random/Random;
-
ticks
public int ticks- Mappings:
Namespace Name Mixin selector official a
Lczv;a:I
intermediary field_11961
Lnet/minecraft/class_2605;field_11961:I
named ticks
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;ticks:I
-
nextPageAngle
public float nextPageAngle- Mappings:
Namespace Name Mixin selector official b
Lczv;b:F
intermediary field_11958
Lnet/minecraft/class_2605;field_11958:F
named nextPageAngle
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageAngle:F
-
pageAngle
public float pageAngle- Mappings:
Namespace Name Mixin selector official c
Lczv;c:F
intermediary field_11960
Lnet/minecraft/class_2605;field_11960:F
named pageAngle
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;pageAngle:F
-
flipRandom
public float flipRandom- Mappings:
Namespace Name Mixin selector official d
Lczv;d:F
intermediary field_11969
Lnet/minecraft/class_2605;field_11969:F
named flipRandom
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;flipRandom:F
-
flipTurn
public float flipTurn- Mappings:
Namespace Name Mixin selector official e
Lczv;e:F
intermediary field_11967
Lnet/minecraft/class_2605;field_11967:F
named flipTurn
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;flipTurn:F
-
nextPageTurningSpeed
public float nextPageTurningSpeed- Mappings:
Namespace Name Mixin selector official f
Lczv;f:F
intermediary field_11966
Lnet/minecraft/class_2605;field_11966:F
named nextPageTurningSpeed
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageTurningSpeed:F
-
pageTurningSpeed
public float pageTurningSpeed- Mappings:
Namespace Name Mixin selector official g
Lczv;g:F
intermediary field_11965
Lnet/minecraft/class_2605;field_11965:F
named pageTurningSpeed
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;pageTurningSpeed:F
-
bookRotation
public float bookRotation- Mappings:
Namespace Name Mixin selector official h
Lczv;h:F
intermediary field_11964
Lnet/minecraft/class_2605;field_11964:F
named bookRotation
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;bookRotation:F
-
lastBookRotation
public float lastBookRotation- Mappings:
Namespace Name Mixin selector official i
Lczv;i:F
intermediary field_11963
Lnet/minecraft/class_2605;field_11963:F
named lastBookRotation
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;lastBookRotation:F
-
targetBookRotation
public float targetBookRotation- Mappings:
Namespace Name Mixin selector official j
Lczv;j:F
intermediary field_11962
Lnet/minecraft/class_2605;field_11962:F
named targetBookRotation
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;targetBookRotation:F
-
customName
- Mappings:
Namespace Name Mixin selector official l
Lczv;l:Ltj;
intermediary field_11959
Lnet/minecraft/class_2605;field_11959:Lnet/minecraft/class_2561;
named customName
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;customName:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
EnchantingTableBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lczv;<init>(Lgt;Ldbq;)V
intermediary <init>
Lnet/minecraft/class_2605;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
writeNbt
Writes data tonbt
. 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 classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcze;b(Lre;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readNbt
Reads data fromnbt
. 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 classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcze;a(Lre;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
tick
public static void tick(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official a
Lczv;a(Lcmi;Lgt;Ldbq;Lczv;)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
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
-
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 interfaceNameable
- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector official Z
Lbec;Z()Ltj;
intermediary method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
-
setCustomName
- Mappings:
Namespace Name Mixin selector official a
Lczv;a(Ltj;)V
intermediary method_11179
Lnet/minecraft/class_2605;method_11179(Lnet/minecraft/class_2561;)V
named setCustomName
Lnet/minecraft/block/entity/EnchantingTableBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
-
getCustomName
Returns the custom name of this object, ornull
if there is none.- Specified by:
getCustomName
in interfaceNameable
- Returns:
- the custom name of this object, or
null
if there is none - Mappings:
Namespace Name Mixin selector official ab
Lbec;ab()Ltj;
intermediary method_5797
Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
named getCustomName
Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
-