Package net.minecraft.block.entity
Class EnchantingTableBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnchantingTableBlockEntity
- All Implemented Interfaces:
Nameable
- Mappings:
Namespace Name official ctwintermediary net/minecraft/class_2605named net/minecraft/block/entity/EnchantingTableBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatprivate Textfloatfloatfloatfloatfloatfloatfloatprivate static final RandomfloatintFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidreadNbt(NbtCompound nbt) Reads data fromnbt.voidsetCustomName(@Nullable Text customName) static voidtick(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) protected voidwriteNbt(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, writeIdToNbtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.Nameable
getDisplayName, hasCustomName
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector official kLctw;k:Lamn;intermediary field_11968Lnet/minecraft/class_2605;field_11968:Lnet/minecraft/class_5819;named RANDOMLnet/minecraft/block/entity/EnchantingTableBlockEntity;RANDOM:Lnet/minecraft/util/math/random/Random;
-
ticks
public int ticks- Mappings:
Namespace Name Mixin selector official aLctw;a:Iintermediary field_11961Lnet/minecraft/class_2605;field_11961:Inamed ticksLnet/minecraft/block/entity/EnchantingTableBlockEntity;ticks:I
-
nextPageAngle
public float nextPageAngle- Mappings:
Namespace Name Mixin selector official bLctw;b:Fintermediary field_11958Lnet/minecraft/class_2605;field_11958:Fnamed nextPageAngleLnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageAngle:F
-
pageAngle
public float pageAngle- Mappings:
Namespace Name Mixin selector official cLctw;c:Fintermediary field_11960Lnet/minecraft/class_2605;field_11960:Fnamed pageAngleLnet/minecraft/block/entity/EnchantingTableBlockEntity;pageAngle:F
-
flipRandom
public float flipRandom- Mappings:
Namespace Name Mixin selector official dLctw;d:Fintermediary field_11969Lnet/minecraft/class_2605;field_11969:Fnamed flipRandomLnet/minecraft/block/entity/EnchantingTableBlockEntity;flipRandom:F
-
flipTurn
public float flipTurn- Mappings:
Namespace Name Mixin selector official eLctw;e:Fintermediary field_11967Lnet/minecraft/class_2605;field_11967:Fnamed flipTurnLnet/minecraft/block/entity/EnchantingTableBlockEntity;flipTurn:F
-
nextPageTurningSpeed
public float nextPageTurningSpeed- Mappings:
Namespace Name Mixin selector official fLctw;f:Fintermediary field_11966Lnet/minecraft/class_2605;field_11966:Fnamed nextPageTurningSpeedLnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageTurningSpeed:F
-
pageTurningSpeed
public float pageTurningSpeed- Mappings:
Namespace Name Mixin selector official gLctw;g:Fintermediary field_11965Lnet/minecraft/class_2605;field_11965:Fnamed pageTurningSpeedLnet/minecraft/block/entity/EnchantingTableBlockEntity;pageTurningSpeed:F
-
bookRotation
public float bookRotation- Mappings:
Namespace Name Mixin selector official hLctw;h:Fintermediary field_11964Lnet/minecraft/class_2605;field_11964:Fnamed bookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;bookRotation:F
-
lastBookRotation
public float lastBookRotation- Mappings:
Namespace Name Mixin selector official iLctw;i:Fintermediary field_11963Lnet/minecraft/class_2605;field_11963:Fnamed lastBookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;lastBookRotation:F
-
targetBookRotation
public float targetBookRotation- Mappings:
Namespace Name Mixin selector official jLctw;j:Fintermediary field_11962Lnet/minecraft/class_2605;field_11962:Fnamed targetBookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;targetBookRotation:F
-
customName
- Mappings:
Namespace Name Mixin selector official lLctw;l:Lrq;intermediary field_11959Lnet/minecraft/class_2605;field_11959:Lnet/minecraft/class_2561;named customNameLnet/minecraft/block/entity/EnchantingTableBlockEntity;customName:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
EnchantingTableBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lctw;<init>(Lgt;Lcvo;)Vintermediary <init>Lnet/minecraft/class_2605;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLcti;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/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.
nbtmight 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:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLcti;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/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 aLctw;a(Lcgx;Lgt;Lcvo;Lctw;)Vintermediary method_31688Lnet/minecraft/class_2605;method_31688(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2605;)Vnamed tickLnet/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
-
setCustomName
- Mappings:
Namespace Name Mixin selector official aLctw;a(Lrq;)Vintermediary method_11179Lnet/minecraft/class_2605;method_11179(Lnet/minecraft/class_2561;)Vnamed setCustomNameLnet/minecraft/block/entity/EnchantingTableBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable- Mappings:
Namespace Name Mixin selector official ZLban;Z()Lrq;intermediary method_5797Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;named getCustomNameLnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
-