public class StairsBlock extends Block implements IWaterLoggable
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
AABB_SLAB_BOTTOM |
protected static VoxelShape |
AABB_SLAB_TOP |
static DirectionProperty |
FACING |
static EnumProperty<Half> |
HALF |
protected static VoxelShape |
NED_CORNER |
protected static VoxelShape |
NEU_CORNER |
protected static VoxelShape |
NWD_CORNER |
protected static VoxelShape |
NWU_CORNER |
protected static VoxelShape |
SED_CORNER |
protected static VoxelShape |
SEU_CORNER |
static EnumProperty<StairsShape> |
SHAPE |
protected static VoxelShape[] |
SLAB_BOTTOM_SHAPES |
protected static VoxelShape[] |
SLAB_TOP_SHAPES |
protected static VoxelShape |
SWD_CORNER |
protected static VoxelShape |
SWU_CORNER |
static BooleanProperty |
WATERLOGGED |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Modifier | Constructor and Description |
---|---|
protected |
StairsBlock(BlockState state,
Block.Properties properties)
Deprecated.
|
|
StairsBlock(java.util.function.Supplier<BlockState> state,
Block.Properties properties) |
addInformation, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onFallenUpon, onLanded, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canContainFluid, pickupFluid, receiveFluid
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, catchFire, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, 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, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public static final DirectionProperty FACING
public static final EnumProperty<Half> HALF
public static final EnumProperty<StairsShape> SHAPE
public static final BooleanProperty WATERLOGGED
protected static final VoxelShape AABB_SLAB_TOP
protected static final VoxelShape AABB_SLAB_BOTTOM
protected static final VoxelShape NWD_CORNER
protected static final VoxelShape SWD_CORNER
protected static final VoxelShape NWU_CORNER
protected static final VoxelShape SWU_CORNER
protected static final VoxelShape NED_CORNER
protected static final VoxelShape SED_CORNER
protected static final VoxelShape NEU_CORNER
protected static final VoxelShape SEU_CORNER
protected static final VoxelShape[] SLAB_TOP_SHAPES
protected static final VoxelShape[] SLAB_BOTTOM_SHAPES
@Deprecated protected StairsBlock(BlockState state, Block.Properties properties)
public StairsBlock(java.util.function.Supplier<BlockState> state, Block.Properties properties)
public boolean func_220074_n(BlockState state)
func_220074_n
in class Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick
in class Block
public void onBlockClicked(BlockState state, World worldIn, BlockPos pos, PlayerEntity player)
onBlockClicked
in class Block
public void onPlayerDestroy(IWorld worldIn, BlockPos pos, BlockState state)
onPlayerDestroy
in class Block
public float getExplosionResistance()
getExplosionResistance
in class Block
public BlockRenderLayer getRenderLayer()
getRenderLayer
in class Block
public int tickRate(IWorldReader worldIn)
public void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded
in class Block
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
in class Block
public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn)
onEntityWalk
in class Block
public void tick(BlockState state, World worldIn, BlockPos pos, java.util.Random random)
public boolean onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
in class Block
public void onExplosionDestroy(World worldIn, BlockPos pos, Explosion explosionIn)
onExplosionDestroy
in class Block
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public static boolean isBlockStairs(BlockState state)
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
public IFluidState getFluidState(BlockState state)
getFluidState
in class Block
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block