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 |
private static int[] |
field_196522_K |
static EnumProperty<Half> |
HALF |
private Block |
modelBlock |
private BlockState |
modelState |
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 |
private java.util.function.Supplier<BlockState> |
stateSupplier |
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, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onFallenUpon, onLanded, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, 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, 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 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
private static final int[] field_196522_K
private final Block modelBlock
private final BlockState modelState
private final java.util.function.Supplier<BlockState> stateSupplier
@Deprecated protected StairsBlock(BlockState state, Block.Properties properties)
public StairsBlock(java.util.function.Supplier<BlockState> state, Block.Properties properties)
private static VoxelShape[] makeShapes(VoxelShape slabShape, VoxelShape nwCorner, VoxelShape neCorner, VoxelShape swCorner, VoxelShape seCorner)
private static VoxelShape combineShapes(int bitfield, VoxelShape slabShape, VoxelShape nwCorner, VoxelShape neCorner, VoxelShape swCorner, VoxelShape seCorner)
public boolean isTransparent(BlockState state)
isTransparent
in class Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
private int func_196511_x(BlockState state)
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 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, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
public ActionResultType 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
private static StairsShape getShapeProperty(BlockState state, IBlockReader worldIn, BlockPos pos)
private static boolean isDifferentStairs(BlockState state, IBlockReader worldIn, BlockPos pos, Direction face)
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
private Block getModelBlock()
private BlockState getModelState()