Class EnchantingTableBlockEntity
- All Implemented Interfaces:
Nameable,DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/EnchantingTableBlockEntityintermediary net/minecraft/class_2605official ehe
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatprivate static final Textfloatfloatfloatfloatfloatfloatfloatprivate static final RandomfloatintFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponents(ComponentMap.Builder builder) Returns the custom name of this object, ornullif there is none.getName()Returns the name of this object.protected voidreadComponents(ComponentsAccess components) protected voidReads data fromnbt.voidvoidsetCustomName(@Nullable Text customName) static voidtick(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) protected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, registerTracking, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeIdMethods 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, getStringifiedName, hasCustomName
-
Field Details
-
CONTAINER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector named CONTAINER_NAME_TEXTLnet/minecraft/block/entity/EnchantingTableBlockEntity;CONTAINER_NAME_TEXT:Lnet/minecraft/text/Text;intermediary field_63043Lnet/minecraft/class_2605;field_63043:Lnet/minecraft/class_2561;official kLehe;k:Lxx;
-
RANDOM
- Mappings:
Namespace Name Mixin selector named RANDOMLnet/minecraft/block/entity/EnchantingTableBlockEntity;RANDOM:Lnet/minecraft/util/math/random/Random;intermediary field_11968Lnet/minecraft/class_2605;field_11968:Lnet/minecraft/class_5819;official lLehe;l:Lbfq;
-
ticks
public int ticks- Mappings:
Namespace Name Mixin selector named ticksLnet/minecraft/block/entity/EnchantingTableBlockEntity;ticks:Iintermediary field_11961Lnet/minecraft/class_2605;field_11961:Iofficial aLehe;a:I
-
nextPageAngle
public float nextPageAngle- Mappings:
Namespace Name Mixin selector named nextPageAngleLnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageAngle:Fintermediary field_11958Lnet/minecraft/class_2605;field_11958:Fofficial bLehe;b:F
-
pageAngle
public float pageAngle- Mappings:
Namespace Name Mixin selector named pageAngleLnet/minecraft/block/entity/EnchantingTableBlockEntity;pageAngle:Fintermediary field_11960Lnet/minecraft/class_2605;field_11960:Fofficial cLehe;c:F
-
flipRandom
public float flipRandom- Mappings:
Namespace Name Mixin selector named flipRandomLnet/minecraft/block/entity/EnchantingTableBlockEntity;flipRandom:Fintermediary field_11969Lnet/minecraft/class_2605;field_11969:Fofficial dLehe;d:F
-
flipTurn
public float flipTurn- Mappings:
Namespace Name Mixin selector named flipTurnLnet/minecraft/block/entity/EnchantingTableBlockEntity;flipTurn:Fintermediary field_11967Lnet/minecraft/class_2605;field_11967:Fofficial eLehe;e:F
-
nextPageTurningSpeed
public float nextPageTurningSpeed- Mappings:
Namespace Name Mixin selector named nextPageTurningSpeedLnet/minecraft/block/entity/EnchantingTableBlockEntity;nextPageTurningSpeed:Fintermediary field_11966Lnet/minecraft/class_2605;field_11966:Fofficial fLehe;f:F
-
pageTurningSpeed
public float pageTurningSpeed- Mappings:
Namespace Name Mixin selector named pageTurningSpeedLnet/minecraft/block/entity/EnchantingTableBlockEntity;pageTurningSpeed:Fintermediary field_11965Lnet/minecraft/class_2605;field_11965:Fofficial gLehe;g:F
-
bookRotation
public float bookRotation- Mappings:
Namespace Name Mixin selector named bookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;bookRotation:Fintermediary field_11964Lnet/minecraft/class_2605;field_11964:Fofficial hLehe;h:F
-
lastBookRotation
public float lastBookRotation- Mappings:
Namespace Name Mixin selector named lastBookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;lastBookRotation:Fintermediary field_11963Lnet/minecraft/class_2605;field_11963:Fofficial iLehe;i:F
-
targetBookRotation
public float targetBookRotation- Mappings:
Namespace Name Mixin selector named targetBookRotationLnet/minecraft/block/entity/EnchantingTableBlockEntity;targetBookRotation:Fintermediary field_11962Lnet/minecraft/class_2605;field_11962:Fofficial jLehe;j:F
-
customName
- Mappings:
Namespace Name Mixin selector named customNameLnet/minecraft/block/entity/EnchantingTableBlockEntity;customName:Lnet/minecraft/text/Text;intermediary field_11959Lnet/minecraft/class_2605;field_11959:Lnet/minecraft/class_2561;official mLehe;m:Lxx;
-
-
Constructor Details
-
EnchantingTableBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/EnchantingTableBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2605;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lehe;<init>(Lja;Lejm;)V
-
-
Method Details
-
writeData
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:
writeDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLegg;a(Lfir;)V
-
readData
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:
readDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLegg;a(Lfip;)V
-
tick
public static void tick(World world, BlockPos pos, BlockState state, EnchantingTableBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/block/entity/EnchantingTableBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/EnchantingTableBlockEntity;)Vintermediary method_31688Lnet/minecraft/class_2605;method_31688(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2605;)Vofficial aLehe;a(Ldrq;Lja;Lejm;Lehe;)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:
getNamein interfaceNameable- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;intermediary method_5477Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;official aoLcbu;ao()Lxx;
-
setCustomName
- Mappings:
Namespace Name Mixin selector named setCustomNameLnet/minecraft/block/entity/EnchantingTableBlockEntity;setCustomName(Lnet/minecraft/text/Text;)Vintermediary method_11179Lnet/minecraft/class_2605;method_11179(Lnet/minecraft/class_2561;)Vofficial aLehe;a(Lxx;)V
-
getCustomName
Returns the custom name of this object, ornullif there is none.- Specified by:
getCustomNamein interfaceNameable- Returns:
- the custom name of this object, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getCustomNameLnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;intermediary method_5797Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;official arLcbu;ar()Lxx;
-
readComponents
- Overrides:
readComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named readComponentsLnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57568Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_9473;)Vofficial aLegg;a(Lkk;)V
-
addComponents
- Overrides:
addComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named addComponentsLnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)Vintermediary method_57567Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)Vofficial aLegg;a(Lkm$a;)V
-
removeFromCopiedStackData
- Overrides:
removeFromCopiedStackDatain classBlockEntity- Mappings:
Namespace Name Mixin selector named removeFromCopiedStackDataLnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackData(Lnet/minecraft/storage/WriteView;)Vintermediary method_57569Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_11372;)Vofficial bLegg;b(Lfir;)V
-