Package net.minecraft.block.entity
Class EnchantingTableBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnchantingTableBlockEntity
public class EnchantingTableBlockEntity extends BlockEntity implements Nameable, Tickable
-
Field Summary
Fields Modifier and Type Field Description private TextcustomNamefloatfield_11962floatfield_11963floatfield_11964floatfield_11967floatfield_11969floatnextPageAnglefloatnextPageTurningSpeedfloatpageAnglefloatpageTurningSpeedprivate static RandomRANDOMintticks -
Constructor Summary
Constructors Constructor Description EnchantingTableBlockEntity() -
Method Summary
Modifier and Type Method Description voidfromTag(BlockState state, CompoundTag tag)TextgetCustomName()TextgetName()voidsetCustomName(Text value)voidtick()CompoundTagtoTag(CompoundTag tag)Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag, toUpdatePacket
-
Field Details
-
RANDOM
-
ticks
public int ticks -
nextPageAngle
public float nextPageAngle -
pageAngle
public float pageAngle -
field_11969
public float field_11969 -
field_11967
public float field_11967 -
nextPageTurningSpeed
public float nextPageTurningSpeed -
pageTurningSpeed
public float pageTurningSpeed -
field_11964
public float field_11964 -
field_11963
public float field_11963 -
field_11962
public float field_11962 -
customName
-
-
Constructor Details
-
EnchantingTableBlockEntity
public EnchantingTableBlockEntity()
-
-
Method Details
-
toTag
- Overrides:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
tick
public void tick() -
getName
-
setCustomName
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable
-