public class BlockStairs extends Block
anvil, beacon, bed, bedrock, blockClay, blockDiamond, blockEmerald, blockGold, blockHardness, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carpet, carrot, cauldron, chest, chestTrapped, cloth, coalBlock, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, daylightSensor, deadBush, dirt, dispenser, doorIron, doorWood, dragonEgg, dropper, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, furnaceBurning, furnaceIdle, glass, glowStone, grass, gravel, hardenedClay, hay, hopperBlock, ice, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, melon, melonStem, mobSpawner, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, netherBrick, netherFence, netherrack, netherStalk, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreEmerald, oreGold, oreIron, oreLapis, oreNetherQuartz, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, potato, pressurePlateGold, pressurePlateIron, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railActivator, railDetector, railPowered, redstoneComparatorActive, redstoneComparatorIdle, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, silverfish, skull, slipperiness, slowSand, snow, soundAnvilFootstep, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundLadderFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundSnowFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stainedClay, stairsBrick, stairsCobblestone, stairsNetherBrick, stairsNetherQuartz, stairsSandStone, stairsStoneBrick, stairsWoodBirch, stairsWoodJungle, stairsWoodOak, stairsWoodSpruce, stepSound, stone, stoneBrick, stoneButton, stoneDoubleSlab, stoneSingleSlab, tallGrass, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxesToList(World par1World,
int par2,
int par3,
int par4,
AxisAlignedBB par5AxisAlignedBB,
List par6List,
Entity par7Entity)
Adds all intersecting collision boxes to a list.
|
void |
breakBlock(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Called on server worlds only when the block has been replaced by a different block ID, or the same block with a
different metadata value, but before the new metadata value is set.
|
boolean |
canCollideCheck(int par1,
boolean par2)
Returns whether this block is collideable based on the arguments passed in \n@param par1 block metaData \n@param
par2 whether the player right-clicked while holding a boat
|
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates.
|
MovingObjectPosition |
collisionRayTrace(World par1World,
int par2,
int par3,
int par4,
Vec3 par5Vec3,
Vec3 par6Vec3)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.
|
void |
func_82541_d(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
boolean |
func_82542_g(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
boolean |
func_82544_h(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
float |
getBlockBrightness(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
float |
getExplosionResistance(Entity par1Entity)
Returns how much this block can resist explosions from the passed in entity.
|
Icon |
getIcon(int par1,
int par2) |
int |
getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
int |
getRenderBlockPass() |
int |
getRenderType()
The type of render function that is called for this block
|
AxisAlignedBB |
getSelectedBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4) |
static boolean |
isBlockStairsID(int par0)
Checks if supplied ID is one of a BlockStairs
|
boolean |
isCollidable()
Returns if this block is collidable (only used by Fire).
|
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two
adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
|
boolean |
onBlockActivated(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer,
int par6,
float par7,
float par8,
float par9)
Called upon block activation (right click on the block.)
|
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world.
|
void |
onBlockClicked(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
Called when the block is clicked by a player.
|
void |
onBlockDestroyedByExplosion(World par1World,
int par2,
int par3,
int par4,
Explosion par5Explosion)
Called upon the block being destroyed by an explosion
|
void |
onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
Called right before the block is destroyed by a player.
|
int |
onBlockPlaced(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
float par7,
float par8,
int par9)
Called when a block is placed using its ItemBlock.
|
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLivingBase par5EntityLivingBase,
ItemStack par6ItemStack)
Called when the block is placed in the world.
|
void |
onEntityWalking(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Called whenever an entity is walking on top of this block.
|
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random) |
void |
registerIcons(IconRegister par1IconRegister) |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state.
|
int |
tickRate(World par1World)
How many world ticks before ticking
|
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled
|
void |
velocityToAddToEntity(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
Vec3 par6Vec3)
Can add to the passed in vector for a movement vector to be applied to the entity.
|
addBlockDestroyEffects, addBlockHitEffects, addCreativeItems, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockColor, getBlockDropped, getBlockHardness, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFilledPercentage, getFireSpreadSpeed, getFlammability, getItemIconName, getLightOpacity, getLightValue, getLocalizedName, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSubBlocks, getTickRandomly, getUnlocalizedName, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, idDropped, idPicked, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isFertile, isFireSource, isFlammable, isFlowerPot, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPreDestroy, onEntityCollidedWithBlock, onFallenUpon, onNeighborBlockChange, onNeighborTileChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, recolourBlock, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, weakTileChangespublic void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockpublic boolean renderAsNormalBlock()
renderAsNormalBlock in class Blockpublic int getRenderType()
getRenderType in class Blockpublic void func_82541_d(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public static boolean isBlockStairsID(int par0)
public boolean func_82542_g(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public boolean func_82544_h(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
addCollisionBoxesToList in class Blockpublic void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
onBlockClicked in class Blockpublic void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick in class Blockpublic void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
onBlockDestroyedByPlayer in class Blockpublic int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getMixedBrightnessForBlock in class Blockpublic float getBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlockBrightness in class Blockpublic float getExplosionResistance(Entity par1Entity)
getExplosionResistance in class Blockpublic int tickRate(World par1World)
public void velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
velocityToAddToEntity in class Blockpublic int getRenderBlockPass()
getRenderBlockPass in class Blockpublic AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getSelectedBoundingBoxFromPool in class Blockpublic boolean isCollidable()
isCollidable in class Blockpublic boolean canCollideCheck(int par1,
boolean par2)
canCollideCheck in class Blockpublic boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt in class Blockpublic void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded in class Blockpublic void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock in class Blockpublic void onEntityWalking(World par1World, int par2, int par3, int par4, Entity par5Entity)
onEntityWalking in class Blockpublic void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick in class Blockpublic boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
onBlockActivated in class Blockpublic void onBlockDestroyedByExplosion(World par1World, int par2, int par3, int par4, Explosion par5Explosion)
onBlockDestroyedByExplosion in class Blockpublic void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
onBlockPlacedBy in class Blockpublic int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
onBlockPlaced in class Blockpublic MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
collisionRayTrace in class Blockpublic void registerIcons(IconRegister par1IconRegister)
registerIcons in class Block