public class BlockStairs extends Block implements IBucketPickupHandler, ILiquidContainer
Block.EnumOffsetType, 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 |
protected static VoxelShape |
field_196512_A |
protected static VoxelShape |
field_196513_B |
protected static VoxelShape |
field_196514_C |
protected static VoxelShape |
field_196515_D |
protected static VoxelShape |
field_196516_E |
protected static VoxelShape |
field_196517_F |
protected static VoxelShape |
field_196518_G |
protected static VoxelShape |
field_196519_H |
protected static VoxelShape[] |
field_196520_I |
protected static VoxelShape[] |
field_196521_J |
static EnumProperty<Half> |
HALF |
static EnumProperty<StairsShape> |
SHAPE |
static BooleanProperty |
WATERLOGGED |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainerdelegate| Modifier | Constructor and Description |
|---|---|
protected |
BlockStairs(IBlockState p_i48321_1_,
Block.Properties p_i48321_2_) |
addInformation, asItem, canDropFromExplosion, canEntitySpawn, canProvidePower, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getHarvestLevel, getHarvestTool, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onFallenUpon, onLanded, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightnessgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, 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, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic 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 field_196512_A
protected static final VoxelShape field_196513_B
protected static final VoxelShape field_196514_C
protected static final VoxelShape field_196515_D
protected static final VoxelShape field_196516_E
protected static final VoxelShape field_196517_F
protected static final VoxelShape field_196518_G
protected static final VoxelShape field_196519_H
protected static final VoxelShape[] field_196520_I
protected static final VoxelShape[] field_196521_J
protected BlockStairs(IBlockState p_i48321_1_, Block.Properties p_i48321_2_)
public int getOpacity(IBlockState state, IBlockReader worldIn, BlockPos pos)
getOpacity in class Blockpublic VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape in class Blockpublic boolean isFullCube(IBlockState state)
isFullCube in class Blockpublic void animateTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick in class Blockpublic void onBlockClicked(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player)
onBlockClicked in class Blockpublic void onPlayerDestroy(IWorld worldIn, BlockPos pos, IBlockState state)
onPlayerDestroy in class Blockpublic int getPackedLightmapCoords(IBlockState state, IWorldReader source, BlockPos pos)
getPackedLightmapCoords in class Blockpublic float getExplosionResistance()
getExplosionResistance in class Blockpublic BlockRenderLayer getRenderLayer()
getRenderLayer in class Blockpublic int tickRate(IWorldReaderBase worldIn)
public boolean isCollidable()
isCollidable in class Blockpublic boolean isCollidable(IBlockState state)
isCollidable in class Blockpublic void onBlockAdded(IBlockState state, World worldIn, BlockPos pos, IBlockState oldState)
onBlockAdded in class Blockpublic void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
onReplaced in class Blockpublic void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn)
onEntityWalk in class Blockpublic void tick(IBlockState state, World worldIn, BlockPos pos, java.util.Random random)
public boolean onBlockActivated(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
onBlockActivated in class Blockpublic void onExplosionDestroy(World worldIn, BlockPos pos, Explosion explosionIn)
onExplosionDestroy in class Blockpublic boolean isTopSolid(IBlockState state)
isTopSolid in class Blockpublic IBlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockpublic IBlockState updatePostPlacement(IBlockState stateIn, EnumFacing facing, IBlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement in class Blockpublic static boolean isBlockStairs(IBlockState state)
public IBlockState rotate(IBlockState state, Rotation rot)
public IBlockState mirror(IBlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer in class Blockpublic Fluid pickupFluid(IWorld worldIn, BlockPos pos, IBlockState state)
pickupFluid in interface IBucketPickupHandlerpublic IFluidState getFluidState(IBlockState state)
getFluidState in class Blockpublic boolean canContainFluid(IBlockReader worldIn, BlockPos pos, IBlockState state, Fluid fluidIn)
canContainFluid in interface ILiquidContainerpublic boolean receiveFluid(IWorld worldIn, BlockPos pos, IBlockState state, IFluidState fluidStateIn)
receiveFluid in interface ILiquidContainerpublic boolean allowsMovement(IBlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block