Package net.minecraft.block
Class LecternBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.ContainerBlock
net.minecraft.block.LecternBlock
- All Implemented Interfaces:
ITileEntityProvider
,IItemProvider
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DirectionProperty
static final BooleanProperty
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.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Fields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
changePowered
(World p_220149_0_, BlockPos p_220149_1_, BlockState p_220149_2_, boolean p_220149_3_) protected void
createBlockStateDefinition
(StateContainer.Builder<Block, BlockState> p_206840_1_) int
getAnalogOutputSignal
(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_) getCollisionShape
(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) int
getDirectSignal
(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) getMenuProvider
(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_) getOcclusionShape
(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_) getRenderShape
(BlockState p_149645_1_) getShape
(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) int
getSignal
(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) getStateForPlacement
(BlockItemUseContext p_196258_1_) boolean
hasAnalogOutputSignal
(BlockState p_149740_1_) boolean
isPathfindable
(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) boolean
isSignalSource
(BlockState p_149744_1_) mirror
(BlockState p_185471_1_, Mirror p_185471_2_) newBlockEntity
(IBlockReader p_196283_1_) void
onRemove
(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) private void
openScreen
(World p_220152_1_, BlockPos p_220152_2_, PlayerEntity p_220152_3_) private static void
placeBook
(World p_220148_0_, BlockPos p_220148_1_, BlockState p_220148_2_, ItemStack p_220148_3_) private void
popBook
(BlockState p_220150_1_, World p_220150_2_, BlockPos p_220150_3_) static void
resetBookState
(World p_220155_0_, BlockPos p_220155_1_, BlockState p_220155_2_, boolean p_220155_3_) rotate
(BlockState p_185499_1_, Rotation p_185499_2_) static void
signalPageChange
(World p_220154_0_, BlockPos p_220154_1_, BlockState p_220154_2_) void
tick
(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) static boolean
tryPlaceBook
(World p_220151_0_, BlockPos p_220151_1_, BlockState p_220151_2_, ItemStack p_220151_3_) private static void
updateBelow
(World p_220153_0_, BlockPos p_220153_1_, BlockState p_220153_2_) use
(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) boolean
useShapeForLightOcclusion
(BlockState p_220074_1_) Methods inherited from class net.minecraft.block.ContainerBlock
triggerEvent
Methods inherited from class net.minecraft.block.Block
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
Methods inherited from class net.minecraft.block.AbstractBlock
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getVisualShape, isAir, isEntityBlock, neighborChanged, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, updateShape
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
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
-
-
Constructor Details
-
LecternBlock
-
-
Method Details
-
getRenderShape
- Overrides:
getRenderShape
in classContainerBlock
-
getOcclusionShape
public VoxelShape getOcclusionShape(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_) - Overrides:
getOcclusionShape
in classAbstractBlock
-
useShapeForLightOcclusion
- Overrides:
useShapeForLightOcclusion
in classAbstractBlock
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) - Overrides:
getCollisionShape
in classAbstractBlock
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) - Overrides:
getShape
in classAbstractBlock
-
rotate
- Overrides:
rotate
in classAbstractBlock
-
mirror
- Overrides:
mirror
in classAbstractBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
newBlockEntity
-
tryPlaceBook
public static boolean tryPlaceBook(World p_220151_0_, BlockPos p_220151_1_, BlockState p_220151_2_, ItemStack p_220151_3_) -
placeBook
private static void placeBook(World p_220148_0_, BlockPos p_220148_1_, BlockState p_220148_2_, ItemStack p_220148_3_) -
resetBookState
public static void resetBookState(World p_220155_0_, BlockPos p_220155_1_, BlockState p_220155_2_, boolean p_220155_3_) -
signalPageChange
public static void signalPageChange(World p_220154_0_, BlockPos p_220154_1_, BlockState p_220154_2_) -
changePowered
private static void changePowered(World p_220149_0_, BlockPos p_220149_1_, BlockState p_220149_2_, boolean p_220149_3_) -
updateBelow
-
tick
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) - Overrides:
tick
in classAbstractBlock
-
onRemove
public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) - Overrides:
onRemove
in classAbstractBlock
-
popBook
-
isSignalSource
- Overrides:
isSignalSource
in classAbstractBlock
-
getSignal
public int getSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) - Overrides:
getSignal
in classAbstractBlock
-
getDirectSignal
public int getDirectSignal(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) - Overrides:
getDirectSignal
in classAbstractBlock
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignal
in classAbstractBlock
-
getAnalogOutputSignal
- Overrides:
getAnalogOutputSignal
in classAbstractBlock
-
use
public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) - Overrides:
use
in classAbstractBlock
-
getMenuProvider
@Nullable public INamedContainerProvider getMenuProvider(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_) - Overrides:
getMenuProvider
in classContainerBlock
-
openScreen
-
isPathfindable
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) - Overrides:
isPathfindable
in classAbstractBlock
-