net.minecraft.block

public class LecternBlock

extends BlockWithEntity

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.LecternBlock
net.minecraft.world.level.block.LecternBlock
net.minecraft.class_3715
net.minecraft.block.LecternBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LecternBlock>
CODEC
CODEC
field_46386
CODEC
public static final EnumProperty<Direction>
FACING
FACING
field_16404
FACING
public static final BooleanProperty
POWERED
POWERED
field_17365
POWERED
public static final BooleanProperty
HAS_BOOK
HAS_BOOK
field_17366
HAS_BOOK
private static final VoxelShape
SHAPE_COLLISION
SHAPE_COLLISION
field_55774
BASE_SHAPE
private static final Map<Direction, VoxelShape>
SHAPES
SHAPES
field_55775
OUTLINE_SHAPES_BY_DIRECTION
private static final int
PAGE_CHANGE_IMPULSE_TICKS
PAGE_CHANGE_IMPULSE_TICKS
field_31113
SCHEDULED_TICK_DELAY

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<LecternBlock>
codec()
codec()
method_53969()
getCodec()
protected VoxelShape
getOcclusionShape(BlockState state)
getOcclusionShape(BlockState state)
method_9571(class_2680 arg0)
getCullingShape(BlockState arg0)
protected boolean
useShapeForLightOcclusion(BlockState state)
useShapeForLightOcclusion(BlockState state)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected BlockState
rotate(BlockState state, Rotation rotation)
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
mirror(BlockState state, Mirror mirror)
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public static boolean
tryPlaceBook(LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack item)
tryPlaceBook(LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack item)
method_17472(class_1309 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, class_1799 arg4)
putBookIfAbsent(LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack)
private static void
placeBook(LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack book)
placeBook(LivingEntity sourceEntity, Level level, BlockPos pos, BlockState state, ItemStack book)
method_17475(class_1309 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, class_1799 arg4)
putBook(LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack)
public static void
resetBookState(Entity sourceEntity, Level level, BlockPos pos, BlockState state, boolean hasBook)
resetBookState(Entity sourceEntity, Level level, BlockPos pos, BlockState state, boolean hasBook)
method_17473(class_1297 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
setHasBook(Entity user, World world, BlockPos pos, BlockState state, boolean hasBook)
public static void
signalPageChange(Level level, BlockPos pos, BlockState state)
signalPageChange(Level level, BlockPos pos, BlockState state)
method_17471(class_1937 arg0, class_2338 arg1, class_2680 arg2)
setPowered(World world, BlockPos pos, BlockState state)
private static void
changePowered(Level level, BlockPos pos, BlockState state, boolean isPowered)
changePowered(Level level, BlockPos pos, BlockState state, boolean isPowered)
method_17476(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
setPowered(World world, BlockPos pos, BlockState state, boolean powered)
private static void
updateBelow(Level level, BlockPos pos, BlockState state)
updateBelow(Level level, BlockPos pos, BlockState state)
method_17474(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updateNeighborAlways(World world, BlockPos pos, BlockState state)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected boolean
isSignalSource(BlockState state)
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected int
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected boolean
hasAnalogOutputSignal(BlockState state)
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
protected ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected NamedScreenHandlerFactory
getMenuProvider(BlockState state, Level level, BlockPos pos)
getMenuProvider(BlockState state, Level level, BlockPos pos)
method_17454(class_2680 arg0, class_1937 arg1, class_2338 arg2)
createScreenHandlerFactory(BlockState arg0, World arg1, BlockPos arg2)
private void
openScreen(Level level, BlockPos pos, Player player)
openScreen(Level level, BlockPos pos, Player player)
method_17470(class_1937 arg0, class_2338 arg1, class_1657 arg2)
openScreen(World world, BlockPos pos, PlayerEntity player)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)