Package net.minecraft.block.entity
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
-
Field Summary
Fields Modifier and Type Field Description private TextcustomNamefloatfield_11962floatfield_11963floatfield_11964floatfield_11967floatfield_11969floatnextPageAnglefloatnextPageTurningSpeedfloatpageAnglefloatpageTurningSpeedprivate static RandomRANDOMintticksFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description EnchantingTableBlockEntity(BlockPos blockPos, BlockState blockState) -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag)TextgetCustomName()TextgetName()voidsetCustomName(Text value)static voidtick(World world, BlockPos blockPos, BlockState blockState, EnchantingTableBlockEntity enchantingTableBlockEntity)CompoundTagtoTag(CompoundTag tag)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toUpdatePacketMethods 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
-
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
-
-
Method Details
-
toTag
- Overrides:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
tick
public static void tick(World world, BlockPos blockPos, BlockState blockState, EnchantingTableBlockEntity enchantingTableBlockEntity) -
getName
-
setCustomName
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable
-