public class BlockStairs extends Block
Block.SoundType
blockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, enableStats, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness
Modifier | Constructor and Description |
---|---|
protected |
BlockStairs(Block p_i45428_1_,
int p_i45428_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addCollisionBoxesToList(World p_149743_1_,
int p_149743_2_,
int p_149743_3_,
int p_149743_4_,
AxisAlignedBB p_149743_5_,
java.util.List p_149743_6_,
Entity p_149743_7_)
Adds all intersecting collision boxes to a list.
|
void |
breakBlock(World p_149749_1_,
int p_149749_2_,
int p_149749_3_,
int p_149749_4_,
Block p_149749_5_,
int p_149749_6_) |
boolean |
canCollideCheck(int p_149678_1_,
boolean p_149678_2_)
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 p_149742_1_,
int p_149742_2_,
int p_149742_3_,
int p_149742_4_)
Checks to see if its valid to put this block at the specified coordinates.
|
MovingObjectPosition |
collisionRayTrace(World p_149731_1_,
int p_149731_2_,
int p_149731_3_,
int p_149731_4_,
Vec3 p_149731_5_,
Vec3 p_149731_6_)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.
|
boolean |
func_150144_g(IBlockAccess p_150144_1_,
int p_150144_2_,
int p_150144_3_,
int p_150144_4_) |
boolean |
func_150145_f(IBlockAccess p_150145_1_,
int p_150145_2_,
int p_150145_3_,
int p_150145_4_) |
void |
func_150147_e(IBlockAccess p_150147_1_,
int p_150147_2_,
int p_150147_3_,
int p_150147_4_) |
static boolean |
func_150148_a(Block p_150148_0_) |
float |
getExplosionResistance(Entity p_149638_1_)
Returns how much this block can resist explosions from the passed in entity.
|
IIcon |
getIcon(int p_149691_1_,
int p_149691_2_)
Gets the block's texture.
|
MapColor |
getMapColor(int p_149728_1_) |
int |
getMixedBrightnessForBlock(IBlockAccess p_149677_1_,
int p_149677_2_,
int p_149677_3_,
int p_149677_4_)
How bright to render this block based on the light its receiving.
|
int |
getRenderBlockPass()
Returns which pass should this block be rendered on.
|
int |
getRenderType()
The type of render function that is called for this block
|
AxisAlignedBB |
getSelectedBoundingBoxFromPool(World p_149633_1_,
int p_149633_2_,
int p_149633_3_,
int p_149633_4_)
Returns the bounding box of the wired rectangular prism to render.
|
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 p_149727_1_,
int p_149727_2_,
int p_149727_3_,
int p_149727_4_,
EntityPlayer p_149727_5_,
int p_149727_6_,
float p_149727_7_,
float p_149727_8_,
float p_149727_9_)
Called upon block activation (right click on the block.)
|
void |
onBlockAdded(World p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_)
Called whenever the block is added into the world.
|
void |
onBlockClicked(World p_149699_1_,
int p_149699_2_,
int p_149699_3_,
int p_149699_4_,
EntityPlayer p_149699_5_)
Called when a player hits the block.
|
void |
onBlockDestroyedByExplosion(World p_149723_1_,
int p_149723_2_,
int p_149723_3_,
int p_149723_4_,
Explosion p_149723_5_)
Called upon the block being destroyed by an explosion
|
void |
onBlockDestroyedByPlayer(World p_149664_1_,
int p_149664_2_,
int p_149664_3_,
int p_149664_4_,
int p_149664_5_)
Called right before the block is destroyed by a player.
|
int |
onBlockPlaced(World p_149660_1_,
int p_149660_2_,
int p_149660_3_,
int p_149660_4_,
int p_149660_5_,
float p_149660_6_,
float p_149660_7_,
float p_149660_8_,
int p_149660_9_)
Called when a block is placed using its ItemBlock.
|
void |
onBlockPlacedBy(World p_149689_1_,
int p_149689_2_,
int p_149689_3_,
int p_149689_4_,
EntityLivingBase p_149689_5_,
ItemStack p_149689_6_)
Called when the block is placed in the world.
|
void |
onEntityWalking(World p_149724_1_,
int p_149724_2_,
int p_149724_3_,
int p_149724_4_,
Entity p_149724_5_)
Called whenever an entity is walking on top of this block.
|
void |
randomDisplayTick(World p_149734_1_,
int p_149734_2_,
int p_149734_3_,
int p_149734_4_,
java.util.Random p_149734_5_)
A randomly called display update to be able to add particles or other items for display
|
void |
registerBlockIcons(IIconRegister p_149651_1_) |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
void |
setBlockBoundsBasedOnState(IBlockAccess p_149719_1_,
int p_149719_2_,
int p_149719_3_,
int p_149719_4_)
Updates the blocks bounds based on its current state.
|
int |
tickRate(World p_149738_1_)
How many world ticks before ticking
|
void |
updateTick(World p_149674_1_,
int p_149674_2_,
int p_149674_3_,
int p_149674_4_,
java.util.Random p_149674_5_)
Ticks the block if it's been scheduled
|
void |
velocityToAddToEntity(World p_149640_1_,
int p_149640_2_,
int p_149640_3_,
int p_149640_4_,
Entity p_149640_5_,
Vec3 p_149640_6_)
Can add to the passed in vector for a movement vector to be applied to the entity.
|
addDestroyEffects, addHitEffects, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPreDestroy, onEntityCollidedWithBlock, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, recolourBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered
protected BlockStairs(Block p_i45428_1_, int p_i45428_2_)
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_)
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_150147_e(IBlockAccess p_150147_1_, int p_150147_2_, int p_150147_3_, int p_150147_4_)
public static boolean func_150148_a(Block p_150148_0_)
public boolean func_150145_f(IBlockAccess p_150145_1_, int p_150145_2_, int p_150145_3_, int p_150145_4_)
public boolean func_150144_g(IBlockAccess p_150144_1_, int p_150144_2_, int p_150144_3_, int p_150144_4_)
public void addCollisionBoxesToList(World p_149743_1_, int p_149743_2_, int p_149743_3_, int p_149743_4_, AxisAlignedBB p_149743_5_, java.util.List p_149743_6_, Entity p_149743_7_)
addCollisionBoxesToList
in class Block
public void onBlockClicked(World p_149699_1_, int p_149699_2_, int p_149699_3_, int p_149699_4_, EntityPlayer p_149699_5_)
onBlockClicked
in class Block
public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, java.util.Random p_149734_5_)
randomDisplayTick
in class Block
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
onBlockDestroyedByPlayer
in class Block
public float getExplosionResistance(Entity p_149638_1_)
getExplosionResistance
in class Block
public int tickRate(World p_149738_1_)
public void velocityToAddToEntity(World p_149640_1_, int p_149640_2_, int p_149640_3_, int p_149640_4_, Entity p_149640_5_, Vec3 p_149640_6_)
velocityToAddToEntity
in class Block
public int getMixedBrightnessForBlock(IBlockAccess p_149677_1_, int p_149677_2_, int p_149677_3_, int p_149677_4_)
getMixedBrightnessForBlock
in class Block
public int getRenderBlockPass()
getRenderBlockPass
in class Block
public IIcon getIcon(int p_149691_1_, int p_149691_2_)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World p_149633_1_, int p_149633_2_, int p_149633_3_, int p_149633_4_)
getSelectedBoundingBoxFromPool
in class Block
public boolean isCollidable()
isCollidable
in class Block
public boolean canCollideCheck(int p_149678_1_, boolean p_149678_2_)
canCollideCheck
in class Block
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
canPlaceBlockAt
in class Block
public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
onBlockAdded
in class Block
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
breakBlock
in class Block
public void onEntityWalking(World p_149724_1_, int p_149724_2_, int p_149724_3_, int p_149724_4_, Entity p_149724_5_)
onEntityWalking
in class Block
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, java.util.Random p_149674_5_)
updateTick
in class Block
public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
onBlockActivated
in class Block
public void onBlockDestroyedByExplosion(World p_149723_1_, int p_149723_2_, int p_149723_3_, int p_149723_4_, Explosion p_149723_5_)
onBlockDestroyedByExplosion
in class Block
public MapColor getMapColor(int p_149728_1_)
getMapColor
in class Block
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
onBlockPlacedBy
in class Block
public int onBlockPlaced(World p_149660_1_, int p_149660_2_, int p_149660_3_, int p_149660_4_, int p_149660_5_, float p_149660_6_, float p_149660_7_, float p_149660_8_, int p_149660_9_)
onBlockPlaced
in class Block
public MovingObjectPosition collisionRayTrace(World p_149731_1_, int p_149731_2_, int p_149731_3_, int p_149731_4_, Vec3 p_149731_5_, Vec3 p_149731_6_)
collisionRayTrace
in class Block
public void registerBlockIcons(IIconRegister p_149651_1_)
registerBlockIcons
in class Block