public class LecternBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static DirectionProperty |
FACING |
static VoxelShape |
field_220159_d |
static VoxelShape |
field_220160_e |
static VoxelShape |
field_220161_f |
static VoxelShape |
field_220162_g |
static VoxelShape |
field_220163_w |
static VoxelShape |
field_220164_h |
static VoxelShape |
field_220165_i |
static VoxelShape |
field_220166_j |
static VoxelShape |
field_220167_k |
static BooleanProperty |
HAS_BOOK |
static BooleanProperty |
POWERED |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Modifier | Constructor and Description |
---|---|
protected |
LecternBlock(Block.Properties properties) |
eventReceived
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final DirectionProperty FACING
public static final BooleanProperty POWERED
public static final BooleanProperty HAS_BOOK
public static final VoxelShape field_220159_d
public static final VoxelShape field_220160_e
public static final VoxelShape field_220161_f
public static final VoxelShape field_220162_g
public static final VoxelShape field_220164_h
public static final VoxelShape field_220165_i
public static final VoxelShape field_220166_j
public static final VoxelShape field_220167_k
public static final VoxelShape field_220163_w
protected LecternBlock(Block.Properties properties)
public BlockRenderType getRenderType(BlockState state)
getRenderType
in class ContainerBlock
public VoxelShape getRenderShape(BlockState state, IBlockReader worldIn, BlockPos pos)
getRenderShape
in class Block
public boolean isTransparent(BlockState state)
isTransparent
in class Block
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
public VoxelShape getCollisionShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
getCollisionShape
in class Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block
@Nullable public TileEntity createNewTileEntity(IBlockReader worldIn)
public static boolean tryPlaceBook(World worldIn, BlockPos pos, BlockState state, ItemStack stack)
private static void placeBook(World worldIn, BlockPos pos, BlockState state, ItemStack stack)
public static void setHasBook(World worldIn, BlockPos pos, BlockState state, boolean hasBook)
public static void pulse(World worldIn, BlockPos pos, BlockState state)
private static void setPowered(World worldIn, BlockPos pos, BlockState state, boolean powered)
private static void notifyNeighbors(World worldIn, BlockPos pos, BlockState state)
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
in class Block
private void dropBook(BlockState p_220150_1_, World p_220150_2_, BlockPos p_220150_3_)
public boolean canProvidePower(BlockState state)
canProvidePower
in class Block
public int getWeakPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getWeakPower
in class Block
public int getStrongPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getStrongPower
in class Block
public boolean hasComparatorInputOverride(BlockState state)
hasComparatorInputOverride
in class Block
public int getComparatorInputOverride(BlockState blockState, World worldIn, BlockPos pos)
getComparatorInputOverride
in class Block
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
in class Block
@Nullable public INamedContainerProvider getContainer(BlockState state, World worldIn, BlockPos pos)
getContainer
in class ContainerBlock
private void openContainer(World p_220152_1_, BlockPos p_220152_2_, PlayerEntity p_220152_3_)
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block