public abstract class BlockLeaves extends BlockLeavesBase implements IShearable
Block.SoundType| Modifier and Type | Field and Description |
|---|---|
protected int |
field_150127_b |
protected IIcon[][] |
field_150129_M |
field_150121_PblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, enableStats, harvesters, 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| Constructor and Description |
|---|
BlockLeaves() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginLeavesDecay(World world,
int x,
int y,
int z)
Called when a leaf should start its decay process.
|
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_) |
int |
colorMultiplier(IBlockAccess p_149720_1_,
int p_149720_2_,
int p_149720_3_,
int p_149720_4_) |
protected ItemStack |
createStackedBlock(int p_149644_1_) |
int |
damageDropped(int p_149692_1_) |
void |
dropBlockAsItemWithChance(World p_149690_1_,
int p_149690_2_,
int p_149690_3_,
int p_149690_4_,
int p_149690_5_,
float p_149690_6_,
int p_149690_7_) |
protected int |
func_150123_b(int p_150123_1_) |
protected void |
func_150124_c(World p_150124_1_,
int p_150124_2_,
int p_150124_3_,
int p_150124_4_,
int p_150124_5_,
int p_150124_6_) |
abstract java.lang.String[] |
func_150125_e() |
int |
getBlockColor() |
java.util.ArrayList<ItemStack> |
getDrops(World world,
int x,
int y,
int z,
int metadata,
int fortune)
This returns a complete list of items dropped from this block.
|
abstract IIcon |
getIcon(int var1,
int var2) |
Item |
getItemDropped(int p_149650_1_,
java.util.Random p_149650_2_,
int p_149650_3_) |
int |
getRenderColor(int p_149741_1_) |
void |
harvestBlock(World p_149636_1_,
EntityPlayer p_149636_2_,
int p_149636_3_,
int p_149636_4_,
int p_149636_5_,
int p_149636_6_) |
boolean |
isLeaves(IBlockAccess world,
int x,
int y,
int z)
Determines if this block is considered a leaf block, used to apply the leaf decay and generation system.
|
boolean |
isOpaqueCube() |
boolean |
isShearable(ItemStack item,
IBlockAccess world,
int x,
int y,
int z)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
java.util.ArrayList<ItemStack> |
onSheared(ItemStack item,
IBlockAccess world,
int x,
int y,
int z,
int fortune)
Performs the shear function on this object.
|
int |
quantityDropped(java.util.Random p_149745_1_) |
void |
randomDisplayTick(World p_149734_1_,
int p_149734_2_,
int p_149734_3_,
int p_149734_4_,
java.util.Random p_149734_5_) |
void |
setGraphicsLevel(boolean p_150122_1_) |
void |
updateTick(World p_149674_1_,
int p_149674_2_,
int p_149674_3_,
int p_149674_4_,
java.util.Random p_149674_5_) |
shouldSideBeRenderedaddCollisionBoxesToList, addDestroyEffects, addHitEffects, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderType, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDroppedWithBonus, recolourBlock, registerBlockIcons, registerBlocks, removedByPlayer, renderAsNormalBlock, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, tickRate, velocityToAddToEntityprotected int field_150127_b
protected IIcon[][] field_150129_M
public int getBlockColor()
getBlockColor in class Blockpublic int getRenderColor(int p_149741_1_)
getRenderColor in class Blockpublic int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_)
colorMultiplier in class Blockpublic 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 Blockpublic 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 Blockpublic 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 Blockpublic int quantityDropped(java.util.Random p_149745_1_)
quantityDropped in class Blockpublic Item getItemDropped(int p_149650_1_, java.util.Random p_149650_2_, int p_149650_3_)
getItemDropped in class Blockpublic void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
dropBlockAsItemWithChance in class Blockprotected void func_150124_c(World p_150124_1_, int p_150124_2_, int p_150124_3_, int p_150124_4_, int p_150124_5_, int p_150124_6_)
protected int func_150123_b(int p_150123_1_)
public void harvestBlock(World p_149636_1_, EntityPlayer p_149636_2_, int p_149636_3_, int p_149636_4_, int p_149636_5_, int p_149636_6_)
harvestBlock in class Blockpublic int damageDropped(int p_149692_1_)
damageDropped in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class BlockLeavesBasepublic void setGraphicsLevel(boolean p_150122_1_)
protected ItemStack createStackedBlock(int p_149644_1_)
createStackedBlock in class Blockpublic abstract java.lang.String[] func_150125_e()
public boolean isShearable(ItemStack item, IBlockAccess world, int x, int y, int z)
IShearableisShearable in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Positionpublic java.util.ArrayList<ItemStack> onSheared(ItemStack item, IBlockAccess world, int x, int y, int z, int fortune)
IShearableonSheared in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Positionfortune - The fortune level of the shears being usedpublic void beginLeavesDecay(World world, int x, int y, int z)
BlockbeginLeavesDecay in class Blockworld - The current worldx - X Positiony - Y Positionz - Z Positionpublic boolean isLeaves(IBlockAccess world, int x, int y, int z)
Block