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, carrot, cauldron, chest, chestTrapped, cloth, 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, 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, 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)
ejects contained items into the world, and notifies neighbours of an update, as appropriate
|
boolean |
canCollideCheck(int par1,
boolean par2)
Returns whether this block is collideable based on the arguments passed in Args: blockMetaData, unknownFlag
|
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,
EntityLiving par5EntityLiving,
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, canHarvestBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockColor, getBlockDropped, getBlockHardness, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPower, getEnchantPowerBonus, getExplosionResistance, getFireSpreadSpeed, getFlammability, getItemIconName, getLightOpacity, getLightValue, getLocalizedName, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSubBlocks, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, 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, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockEventReceived, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onFallenUpon, onNeighborBlockChange, onPlantGrow, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDropped, quantityDroppedWithBonus, recolourBlock, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public int getRenderType()
getRenderType
in class Block
public 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 Block
public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
onBlockClicked
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick
in class Block
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
onBlockDestroyedByPlayer
in class Block
public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getMixedBrightnessForBlock
in class Block
public float getBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlockBrightness
in class Block
public float getExplosionResistance(Entity par1Entity)
getExplosionResistance
in class Block
public int tickRate(World par1World)
public void velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
velocityToAddToEntity
in class Block
public int getRenderBlockPass()
getRenderBlockPass
in class Block
public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getSelectedBoundingBoxFromPool
in class Block
public boolean isCollidable()
isCollidable
in class Block
public boolean canCollideCheck(int par1, boolean par2)
canCollideCheck
in class Block
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt
in class Block
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock
in class Block
public void onEntityWalking(World par1World, int par2, int par3, int par4, Entity par5Entity)
onEntityWalking
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
onBlockActivated
in class Block
public void onBlockDestroyedByExplosion(World par1World, int par2, int par3, int par4, Explosion par5Explosion)
onBlockDestroyedByExplosion
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
onBlockPlacedBy
in class Block
public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
onBlockPlaced
in class Block
public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
collisionRayTrace
in class Block
public void registerIcons(IconRegister par1IconRegister)
registerIcons
in class Block