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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxToList(IBlockState state,
World worldIn,
BlockPos pos,
AxisAlignedBB entityBox,
java.util.List<AxisAlignedBB> collidingBoxes,
Entity entityIn,
boolean isActualState) |
void |
breakBlock(World worldIn,
BlockPos pos,
IBlockState state)
Called serverside after this block is replaced with another in Chunk, but before the Tile Entity is updated
|
boolean |
canCollideCheck(IBlockState state,
boolean hitIfLiquid) |
boolean |
canPlaceBlockAt(World worldIn,
BlockPos pos)
Checks if this block can be placed exactly at the given position.
|
RayTraceResult |
collisionRayTrace(IBlockState blockState,
World worldIn,
BlockPos pos,
Vec3d start,
Vec3d end)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.
|
protected BlockStateContainer |
createBlockState() |
boolean |
doesSideBlockRendering(IBlockState state,
IBlockAccess world,
BlockPos pos,
EnumFacing face)
Check if the face of a block should block rendering.
|
IBlockState |
getActualState(IBlockState state,
IBlockAccess worldIn,
BlockPos pos)
Get the actual Block state of this Block at the given position.
|
BlockFaceShape |
getBlockFaceShape(IBlockAccess worldIn,
IBlockState state,
BlockPos pos,
EnumFacing face)
Get the geometry of the queried face at the given position and state.
|
BlockRenderLayer |
getBlockLayer() |
float |
getExplosionResistance(Entity exploder)
Returns how much this block can resist explosions from the passed in entity.
|
MapColor |
getMapColor(IBlockState state,
IBlockAccess worldIn,
BlockPos pos)
Get the MapColor for this Block and the given BlockState
|
int |
getMetaFromState(IBlockState state)
Convert the BlockState into the correct metadata value
|
int |
getPackedLightmapCoords(IBlockState state,
IBlockAccess source,
BlockPos pos) |
AxisAlignedBB |
getSelectedBoundingBox(IBlockState state,
World worldIn,
BlockPos pos)
Return an AABB (in world coords!) that should be highlighted when the player is targeting this Block
|
IBlockState |
getStateForPlacement(World worldIn,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer)
Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the
IBlockstate
|
IBlockState |
getStateFromMeta(int meta)
Convert the given metadata into a BlockState for this Block
|
static boolean |
isBlockStairs(IBlockState state) |
boolean |
isCollidable()
Returns if this block is collidable.
|
boolean |
isFullCube(IBlockState state) |
boolean |
isOpaqueCube(IBlockState state)
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
boolean |
isTopSolid(IBlockState state)
Determines if the block is solid enough on the top side to support other blocks, like redstone components.
|
Vec3d |
modifyAcceleration(World worldIn,
BlockPos pos,
Entity entityIn,
Vec3d motion) |
boolean |
onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ)
Called when the block is right clicked by a player.
|
void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState state)
Called after the block is set in the Chunk data, but before the Tile Entity is set
|
void |
onBlockClicked(World worldIn,
BlockPos pos,
EntityPlayer playerIn) |
void |
onBlockDestroyedByExplosion(World worldIn,
BlockPos pos,
Explosion explosionIn)
Called when this Block is destroyed by an Explosion
|
void |
onBlockDestroyedByPlayer(World worldIn,
BlockPos pos,
IBlockState state)
Called after a player destroys this Block - the posiiton pos may no longer hold the state indicated.
|
void |
onEntityWalk(World worldIn,
BlockPos pos,
Entity entityIn)
Called when the given entity walks on this Block
|
void |
randomDisplayTick(IBlockState stateIn,
World worldIn,
BlockPos pos,
java.util.Random rand) |
int |
tickRate(World worldIn)
How many world ticks before ticking
|
void |
updateTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
IBlockState |
withMirror(IBlockState state,
Mirror mirrorIn)
Returns the blockstate with the given mirror of the passed blockstate.
|
IBlockState |
withRotation(IBlockState state,
Rotation rot)
Returns the blockstate with the given rotation from the passed blockstate.
|
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
protected BlockStairs(IBlockState modelState)
public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, java.util.List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean isActualState)
addCollisionBoxToList in class Blockpublic BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face)
Common values are SOLID, which is the default, and UNDEFINED, which represents something that
does not fit the other descriptions and will generally cause other things not to connect to the 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 int tickRate(World worldIn)
public 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 Blockpublic 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 Blockpublic 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