public class BlockStairs extends Block
Modifier and Type | Class and Description |
---|---|
static class |
BlockStairs.EnumHalf |
static class |
BlockStairs.EnumShape |
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
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 p_185477_7_) |
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) |
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.
|
BlockRenderLayer |
getBlockLayer() |
float |
getExplosionResistance(Entity exploder)
Returns how much this block can resist explosions from the passed in entity.
|
MapColor |
getMapColor(IBlockState state)
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) |
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 |
isFullyOpaque(IBlockState state)
Checks if an IBlockState represents a block that is opaque and a full cube.
|
boolean |
isOpaqueCube(IBlockState state)
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
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 when a player destroys this Block
|
void |
onEntityWalk(World worldIn,
BlockPos pos,
Entity entityIn)
Triggered whenever an entity collides with this block (enters into the 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, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, 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, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, toString
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public 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 p_185477_7_)
addCollisionBoxToList
in class Block
public boolean isOpaqueCube(IBlockState state)
isOpaqueCube
in class Block
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public void randomDisplayTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
randomDisplayTick
in class Block
public void onBlockClicked(World worldIn, BlockPos pos, EntityPlayer playerIn)
onBlockClicked
in class Block
public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state)
onBlockDestroyedByPlayer
in class Block
public int getPackedLightmapCoords(IBlockState state, IBlockAccess source, BlockPos pos)
getPackedLightmapCoords
in class Block
public float getExplosionResistance(Entity exploder)
getExplosionResistance
in class Block
public int tickRate(World worldIn)
public Vec3d modifyAcceleration(World worldIn, BlockPos pos, Entity entityIn, Vec3d motion)
modifyAcceleration
in class Block
public BlockRenderLayer getBlockLayer()
getBlockLayer
in class Block
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World worldIn, BlockPos pos)
getSelectedBoundingBox
in class Block
public boolean isCollidable()
isCollidable
in class Block
public boolean canCollideCheck(IBlockState state, boolean hitIfLiquid)
canCollideCheck
in class Block
public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
canPlaceBlockAt
in class Block
public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded
in class Block
public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock
in class Block
public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn)
onEntityWalk
in class Block
public void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick
in class Block
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
onBlockActivated
in class Block
public void onBlockDestroyedByExplosion(World worldIn, BlockPos pos, Explosion explosionIn)
onBlockDestroyedByExplosion
in class Block
public boolean isFullyOpaque(IBlockState state)
isFullyOpaque
in class Block
public MapColor getMapColor(IBlockState state)
getMapColor
in class Block
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
getStateForPlacement
in class Block
public RayTraceResult collisionRayTrace(IBlockState blockState, World worldIn, BlockPos pos, Vec3d start, Vec3d end)
collisionRayTrace
in class Block
public IBlockState getStateFromMeta(int meta)
getStateFromMeta
in class Block
public int getMetaFromState(IBlockState state)
getMetaFromState
in class Block
public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
getActualState
in class Block
public static boolean isBlockStairs(IBlockState state)
public IBlockState withRotation(IBlockState state, Rotation rot)
withRotation
in class Block
public IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror
in class Block
protected BlockStateContainer createBlockState()
createBlockState
in class Block
public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)
Block
doesSideBlockRendering
in class Block
state
- The current block stateworld
- The current worldpos
- Block position in worldface
- The side to check