Package net.minecraft.world.level.block
Class LecternBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.LecternBlock
- All Implemented Interfaces:
FeatureElement
,EntityBlock
,ItemLike
,IForgeBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DirectionProperty
static final BooleanProperty
private static final int
static final BooleanProperty
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHT
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
changePowered
(Level p_54554_, BlockPos p_54555_, BlockState p_54556_, boolean p_54557_) protected void
int
getAnalogOutputSignal
(BlockState p_54520_, Level p_54521_, BlockPos p_54522_) getCollisionShape
(BlockState p_54577_, BlockGetter p_54578_, BlockPos p_54579_, CollisionContext p_54580_) int
getDirectSignal
(BlockState p_54566_, BlockGetter p_54567_, BlockPos p_54568_, Direction p_54569_) getMenuProvider
(BlockState p_54571_, Level p_54572_, BlockPos p_54573_) getOcclusionShape
(BlockState p_54584_, BlockGetter p_54585_, BlockPos p_54586_) getRenderShape
(BlockState p_54559_) getShape
(BlockState p_54561_, BlockGetter p_54562_, BlockPos p_54563_, CollisionContext p_54564_) int
getSignal
(BlockState p_54515_, BlockGetter p_54516_, BlockPos p_54517_, Direction p_54518_) getStateForPlacement
(BlockPlaceContext p_54481_) boolean
hasAnalogOutputSignal
(BlockState p_54503_) boolean
isPathfindable
(BlockState p_54510_, BlockGetter p_54511_, BlockPos p_54512_, PathComputationType p_54513_) boolean
isSignalSource
(BlockState p_54575_) mirror
(BlockState p_54537_, Mirror p_54538_) newBlockEntity
(BlockPos p_153573_, BlockState p_153574_) void
onRemove
(BlockState p_54531_, Level p_54532_, BlockPos p_54533_, BlockState p_54534_, boolean p_54535_) private void
openScreen
(Level p_54485_, BlockPos p_54486_, Player p_54487_) private static void
placeBook
(Player p_153576_, Level p_153577_, BlockPos p_153578_, BlockState p_153579_, ItemStack p_153580_) private void
popBook
(BlockState p_54588_, Level p_54589_, BlockPos p_54590_) static void
resetBookState
(Level p_54498_, BlockPos p_54499_, BlockState p_54500_, boolean p_54501_) rotate
(BlockState p_54540_, Rotation p_54541_) static void
signalPageChange
(Level p_54489_, BlockPos p_54490_, BlockState p_54491_) void
tick
(BlockState p_221388_, ServerLevel p_221389_, BlockPos p_221390_, RandomSource p_221391_) static boolean
tryPlaceBook
(Player p_153567_, Level p_153568_, BlockPos p_153569_, BlockState p_153570_, ItemStack p_153571_) private static void
updateBelow
(Level p_54545_, BlockPos p_54546_, BlockState p_54547_) use
(BlockState p_54524_, Level p_54525_, BlockPos p_54526_, Player p_54527_, InteractionHand p_54528_, BlockHitResult p_54529_) boolean
useShapeForLightOcclusion
(BlockState p_54582_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, triggerEvent
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getBlockSupportShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getPistonPushReaction, getSeed, getShadeBrightness, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, neighborChanged, onPlace, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, updateShape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener, getTicker
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
Field Details
-
FACING
-
POWERED
-
HAS_BOOK
-
SHAPE_BASE
-
SHAPE_POST
-
SHAPE_COMMON
-
SHAPE_TOP_PLATE
-
SHAPE_COLLISION
-
SHAPE_WEST
-
SHAPE_NORTH
-
SHAPE_EAST
-
SHAPE_SOUTH
-
PAGE_CHANGE_IMPULSE_TICKS
private static final int PAGE_CHANGE_IMPULSE_TICKS- See Also:
-
-
Constructor Details
-
LecternBlock
-
-
Method Details
-
getRenderShape
- Overrides:
getRenderShape
in classBaseEntityBlock
-
getOcclusionShape
- Overrides:
getOcclusionShape
in classBlockBehaviour
-
useShapeForLightOcclusion
- Overrides:
useShapeForLightOcclusion
in classBlockBehaviour
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_54577_, BlockGetter p_54578_, BlockPos p_54579_, CollisionContext p_54580_) - Overrides:
getCollisionShape
in classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_54561_, BlockGetter p_54562_, BlockPos p_54563_, CollisionContext p_54564_) - Overrides:
getShape
in classBlockBehaviour
-
rotate
- Overrides:
rotate
in classBlockBehaviour
-
mirror
- Overrides:
mirror
in classBlockBehaviour
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
newBlockEntity
-
tryPlaceBook
public static boolean tryPlaceBook(@Nullable Player p_153567_, Level p_153568_, BlockPos p_153569_, BlockState p_153570_, ItemStack p_153571_) -
placeBook
private static void placeBook(@Nullable Player p_153576_, Level p_153577_, BlockPos p_153578_, BlockState p_153579_, ItemStack p_153580_) -
resetBookState
public static void resetBookState(Level p_54498_, BlockPos p_54499_, BlockState p_54500_, boolean p_54501_) -
signalPageChange
-
changePowered
private static void changePowered(Level p_54554_, BlockPos p_54555_, BlockState p_54556_, boolean p_54557_) -
updateBelow
-
tick
public void tick(BlockState p_221388_, ServerLevel p_221389_, BlockPos p_221390_, RandomSource p_221391_) - Overrides:
tick
in classBlockBehaviour
-
onRemove
public void onRemove(BlockState p_54531_, Level p_54532_, BlockPos p_54533_, BlockState p_54534_, boolean p_54535_) - Overrides:
onRemove
in classBlockBehaviour
-
popBook
-
isSignalSource
- Overrides:
isSignalSource
in classBlockBehaviour
-
getSignal
public int getSignal(BlockState p_54515_, BlockGetter p_54516_, BlockPos p_54517_, Direction p_54518_) - Overrides:
getSignal
in classBlockBehaviour
-
getDirectSignal
public int getDirectSignal(BlockState p_54566_, BlockGetter p_54567_, BlockPos p_54568_, Direction p_54569_) - Overrides:
getDirectSignal
in classBlockBehaviour
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignal
in classBlockBehaviour
-
getAnalogOutputSignal
- Overrides:
getAnalogOutputSignal
in classBlockBehaviour
-
use
public InteractionResult use(BlockState p_54524_, Level p_54525_, BlockPos p_54526_, Player p_54527_, InteractionHand p_54528_, BlockHitResult p_54529_) - Overrides:
use
in classBlockBehaviour
-
getMenuProvider
@Nullable public MenuProvider getMenuProvider(BlockState p_54571_, Level p_54572_, BlockPos p_54573_) - Overrides:
getMenuProvider
in classBaseEntityBlock
-
openScreen
-
isPathfindable
public boolean isPathfindable(BlockState p_54510_, BlockGetter p_54511_, BlockPos p_54512_, PathComputationType p_54513_) - Overrides:
isPathfindable
in classBlockBehaviour
-