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, stateContainer
delegate
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, useNeighborBrightness
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, 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, 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 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 Block
public VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape
in class Block
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public void animateTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick
in class Block
public void onBlockClicked(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player)
onBlockClicked
in class Block
public void onPlayerDestroy(IWorld worldIn, BlockPos pos, IBlockState state)
onPlayerDestroy
in class Block
public int getPackedLightmapCoords(IBlockState state, IWorldReader source, BlockPos pos)
getPackedLightmapCoords
in class Block
public float getExplosionResistance()
getExplosionResistance
in class Block
public BlockRenderLayer getRenderLayer()
getRenderLayer
in class Block
public int tickRate(IWorldReaderBase worldIn)
public boolean isCollidable()
isCollidable
in class Block
public boolean isCollidable(IBlockState state)
isCollidable
in class Block
public void onBlockAdded(IBlockState state, World worldIn, BlockPos pos, IBlockState oldState)
onBlockAdded
in class Block
public void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
onReplaced
in class Block
public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn)
onEntityWalk
in class Block
public 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 Block
public void onExplosionDestroy(World worldIn, BlockPos pos, Explosion explosionIn)
onExplosionDestroy
in class Block
public boolean isTopSolid(IBlockState state)
isTopSolid
in class Block
public IBlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
public IBlockState updatePostPlacement(IBlockState stateIn, EnumFacing facing, IBlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public 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 Block
public Fluid pickupFluid(IWorld worldIn, BlockPos pos, IBlockState state)
pickupFluid
in interface IBucketPickupHandler
public IFluidState getFluidState(IBlockState state)
getFluidState
in class Block
public boolean canContainFluid(IBlockReader worldIn, BlockPos pos, IBlockState state, Fluid fluidIn)
canContainFluid
in interface ILiquidContainer
public boolean receiveFluid(IWorld worldIn, BlockPos pos, IBlockState state, IFluidState fluidStateIn)
receiveFluid
in interface ILiquidContainer
public boolean allowsMovement(IBlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block