public class BlockStairs extends Block
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockStairs.EnumHalf |
static class |
BlockStairs.EnumShape |
Block.EnumOffsetTypeIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightnessdelegate| Modifier | Constructor and Description |
|---|---|
protected |
BlockStairs(IBlockState modelState) |
addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, createTileEntity, damageDropped, disableStats, doesSideBlockChestOpening, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLiquidHeight, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateAtViewpoint, getStateById, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTranslucent, isWood, neighborChanged, observedNeighborChange, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, toStringgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic static final PropertyDirection FACING
public static final PropertyEnum<BlockStairs.EnumHalf> HALF
public static final PropertyEnum<BlockStairs.EnumShape> SHAPE
protected static final AxisAlignedBB AABB_SLAB_TOP
protected static final AxisAlignedBB AABB_QTR_TOP_WEST
protected static final AxisAlignedBB AABB_QTR_TOP_EAST
protected static final AxisAlignedBB AABB_QTR_TOP_NORTH
protected static final AxisAlignedBB AABB_QTR_TOP_SOUTH
protected static final AxisAlignedBB AABB_OCT_TOP_NW
protected static final AxisAlignedBB AABB_OCT_TOP_NE
protected static final AxisAlignedBB AABB_OCT_TOP_SW
protected static final AxisAlignedBB AABB_OCT_TOP_SE
protected static final AxisAlignedBB AABB_SLAB_BOTTOM
protected static final AxisAlignedBB AABB_QTR_BOT_WEST
protected static final AxisAlignedBB AABB_QTR_BOT_EAST
protected static final AxisAlignedBB AABB_QTR_BOT_NORTH
protected static final AxisAlignedBB AABB_QTR_BOT_SOUTH
protected static final AxisAlignedBB AABB_OCT_BOT_NW
protected static final AxisAlignedBB AABB_OCT_BOT_NE
protected static final AxisAlignedBB AABB_OCT_BOT_SW
protected static final AxisAlignedBB AABB_OCT_BOT_SE
private final Block modelBlock
private final IBlockState modelState
protected BlockStairs(IBlockState modelState)
public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, java.util.List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn, boolean isActualState)
addCollisionBoxToList in class Blockprivate static java.util.List<AxisAlignedBB> getCollisionBoxList(IBlockState bstate)
private static AxisAlignedBB getCollQuarterBlock(IBlockState bstate)
private static AxisAlignedBB getCollEighthBlock(IBlockState bstate)
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape in class Blockpublic boolean isOpaqueCube(IBlockState state)
isOpaqueCube in class Blockpublic boolean isFullCube(IBlockState state)
isFullCube in class Blockpublic void randomDisplayTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
randomDisplayTick in class Blockpublic void onBlockClicked(World worldIn, BlockPos pos, EntityPlayer playerIn)
onBlockClicked in class Blockpublic void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state)
onBlockDestroyedByPlayer in class Blockpublic int getPackedLightmapCoords(IBlockState state, IBlockAccess source, BlockPos pos)
getPackedLightmapCoords in class Blockpublic float getExplosionResistance(Entity exploder)
getExplosionResistance in class Blockpublic Vec3d modifyAcceleration(World worldIn, BlockPos pos, Entity entityIn, Vec3d motion)
modifyAcceleration in class Blockpublic BlockRenderLayer getBlockLayer()
getBlockLayer in class Blockpublic AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos)
getSelectedBoundingBox in class Blockpublic boolean isCollidable()
isCollidable in class Blockpublic boolean canCollideCheck(IBlockState state, boolean hitIfLiquid)
canCollideCheck in class Blockpublic boolean canPlaceBlockAt(World worldIn, BlockPos pos)
canPlaceBlockAt in class Blockpublic void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded in class Blockpublic void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock in class Blockpublic void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn)
onEntityWalk in class Blockpublic void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick in class Blockpublic boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
onBlockActivated in class Blockpublic void onBlockDestroyedByExplosion(World worldIn, BlockPos pos, Explosion explosionIn)
onBlockDestroyedByExplosion in class Blockpublic boolean isTopSolid(IBlockState state)
isTopSolid in class Blockpublic MapColor getMapColor(IBlockState state, IBlockAccess worldIn, BlockPos pos)
getMapColor in class Blockpublic IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
getStateForPlacement in class Block@Nullable public RayTraceResult collisionRayTrace(IBlockState blockState, World worldIn, BlockPos pos, Vec3d start, Vec3d end)
collisionRayTrace in class Blockpublic IBlockState getStateFromMeta(int meta)
getStateFromMeta in class Blockpublic int getMetaFromState(IBlockState state)
getMetaFromState in class Blockpublic IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
getActualState in class Blockprivate static BlockStairs.EnumShape getStairsShape(IBlockState p_185706_0_, IBlockAccess p_185706_1_, BlockPos p_185706_2_)
private static boolean isDifferentStairs(IBlockState p_185704_0_, IBlockAccess p_185704_1_, BlockPos p_185704_2_, EnumFacing p_185704_3_)
public static boolean isBlockStairs(IBlockState state)
public IBlockState withRotation(IBlockState state, Rotation rot)
withRotation in class Blockpublic IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror in class Blockprotected BlockStateContainer createBlockState()
createBlockState in class Blockpublic boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)
BlockdoesSideBlockRendering in class Blockstate - The current block stateworld - The current worldpos - Block position in worldface - The side to check