YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.block.BlockLeaves Class Reference
Inheritance diagram for net.minecraft.block.BlockLeaves:
net.minecraft.block.BlockLeavesBase net.minecraftforge.common.IShearable net.minecraft.block.Block

Public Member Functions

int getBlockColor ()
 
int getRenderColor (int par1)
 
int colorMultiplier (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
void breakBlock (World par1World, int par2, int par3, int par4, int par5, int par6)
 
void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
void randomDisplayTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
int quantityDropped (Random par1Random)
 
int idDropped (int par1, Random par2Random, int par3)
 
void dropBlockAsItemWithChance (World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
 
void harvestBlock (World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
 
int damageDropped (int par1)
 
boolean isOpaqueCube ()
 
Icon getIcon (int par1, int par2)
 
void setGraphicsLevel (boolean par1)
 
void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
void registerIcons (IconRegister par1IconRegister)
 
boolean isShearable (ItemStack item, World world, int x, int y, int z)
 
ArrayList< ItemStackonSheared (ItemStack item, World world, int x, int y, int z, int fortune)
 
void beginLeavesDecay (World world, int x, int y, int z)
 
boolean isLeaves (World world, int x, int y, int z)
 
- Public Member Functions inherited from net.minecraft.block.BlockLeavesBase
boolean isOpaqueCube ()
 
boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
- Public Member Functions inherited from net.minecraft.block.Block
 Block (int par1, Material par2Material)
 
Block setStepSound (StepSound par1StepSound)
 
Block setLightOpacity (int par1)
 
Block setLightValue (float par1)
 
Block setResistance (float par1)
 
boolean renderAsNormalBlock ()
 
boolean getBlocksMovement (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
int getRenderType ()
 
Block setHardness (float par1)
 
Block setBlockUnbreakable ()
 
float getBlockHardness (World par1World, int par2, int par3, int par4)
 
Block setTickRandomly (boolean par1)
 
boolean getTickRandomly ()
 
boolean hasTileEntity ()
 
final void setBlockBounds (float par1, float par2, float par3, float par4, float par5, float par6)
 
float getBlockBrightness (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
int getMixedBrightnessForBlock (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
boolean isBlockSolid (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
Icon getBlockTexture (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
Icon getIcon (int par1, int par2)
 
void addCollisionBoxesToList (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
 
final Icon getBlockTextureFromSide (int par1)
 
AxisAlignedBB getSelectedBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
 
AxisAlignedBB getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
 
boolean isOpaqueCube ()
 
boolean canCollideCheck (int par1, boolean par2)
 
boolean isCollidable ()
 
void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
void randomDisplayTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
void onBlockDestroyedByPlayer (World par1World, int par2, int par3, int par4, int par5)
 
void onNeighborBlockChange (World par1World, int par2, int par3, int par4, int par5)
 
int tickRate (World par1World)
 
void onBlockAdded (World par1World, int par2, int par3, int par4)
 
void breakBlock (World par1World, int par2, int par3, int par4, int par5, int par6)
 
int quantityDropped (Random par1Random)
 
int idDropped (int par1, Random par2Random, int par3)
 
float getPlayerRelativeBlockHardness (EntityPlayer par1EntityPlayer, World par2World, int par3, int par4, int par5)
 
final void dropBlockAsItem (World par1World, int par2, int par3, int par4, int par5, int par6)
 
void dropBlockAsItemWithChance (World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
 
int damageDropped (int par1)
 
float getExplosionResistance (Entity par1Entity)
 
MovingObjectPosition collisionRayTrace (World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
 
void onBlockDestroyedByExplosion (World par1World, int par2, int par3, int par4, Explosion par5Explosion)
 
boolean canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5, ItemStack par6ItemStack)
 
int getRenderBlockPass ()
 
boolean canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5)
 
boolean canPlaceBlockAt (World par1World, int par2, int par3, int par4)
 
boolean onBlockActivated (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
 
void onEntityWalking (World par1World, int par2, int par3, int par4, Entity par5Entity)
 
int onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
 
void onBlockClicked (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
 
void velocityToAddToEntity (World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
 
void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
final double getBlockBoundsMinX ()
 
final double getBlockBoundsMaxX ()
 
final double getBlockBoundsMinY ()
 
final double getBlockBoundsMaxY ()
 
final double getBlockBoundsMinZ ()
 
final double getBlockBoundsMaxZ ()
 
int getBlockColor ()
 
int getRenderColor (int par1)
 
int isProvidingWeakPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
int colorMultiplier (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
boolean canProvidePower ()
 
void onEntityCollidedWithBlock (World par1World, int par2, int par3, int par4, Entity par5Entity)
 
int isProvidingStrongPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
void setBlockBoundsForItemRender ()
 
void harvestBlock (World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
 
int quantityDroppedWithBonus (int par1, Random par2Random)
 
boolean canBlockStay (World par1World, int par2, int par3, int par4)
 
void onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
 
void onPostBlockPlaced (World par1World, int par2, int par3, int par4, int par5)
 
Block setUnlocalizedName (String par1Str)
 
String getLocalizedName ()
 
String getUnlocalizedName ()
 
String getUnlocalizedName2 ()
 
boolean onBlockEventReceived (World par1World, int par2, int par3, int par4, int par5, int par6)
 
boolean getEnableStats ()
 
int getMobilityFlag ()
 
float getAmbientOcclusionLightValue (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
void onFallenUpon (World par1World, int par2, int par3, int par4, Entity par5Entity, float par6)
 
int idPicked (World par1World, int par2, int par3, int par4)
 
int getDamageValue (World par1World, int par2, int par3, int par4)
 
void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
Block setCreativeTab (CreativeTabs par1CreativeTabs)
 
void onBlockHarvested (World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
 
CreativeTabs getCreativeTabToDisplayOn ()
 
void onSetBlockIDWithMetaData (World par1World, int par2, int par3, int par4, int par5)
 
void fillWithRain (World par1World, int par2, int par3, int par4)
 
boolean isFlowerPot ()
 
boolean func_82506_l ()
 
boolean canDropFromExplosion (Explosion par1Explosion)
 
boolean isAssociatedBlockID (int par1)
 
boolean hasComparatorInputOverride ()
 
int getComparatorInputOverride (World par1World, int par2, int par3, int par4, int par5)
 
void registerIcons (IconRegister par1IconRegister)
 
String getItemIconName ()
 
int getLightValue (IBlockAccess world, int x, int y, int z)
 
boolean isLadder (World world, int x, int y, int z, EntityLiving entity)
 
boolean isLadder (World world, int x, int y, int z)
 
boolean isBlockNormalCube (World world, int x, int y, int z)
 
boolean isBlockSolidOnSide (World world, int x, int y, int z, ForgeDirection side)
 
boolean isBlockReplaceable (World world, int x, int y, int z)
 
boolean isBlockBurning (World world, int x, int y, int z)
 
boolean isAirBlock (World world, int x, int y, int z)
 
boolean canHarvestBlock (EntityPlayer player, int meta)
 
boolean removeBlockByPlayer (World world, EntityPlayer player, int x, int y, int z)
 
void addCreativeItems (ArrayList itemList)
 
int getFlammability (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
 
boolean isFlammable (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
 
int getFireSpreadSpeed (World world, int x, int y, int z, int metadata, ForgeDirection face)
 
boolean isFireSource (World world, int x, int y, int z, int metadata, ForgeDirection side)
 
boolean hasTileEntity (int metadata)
 
TileEntity createTileEntity (World world, int metadata)
 
int quantityDropped (int meta, int fortune, Random random)
 
ArrayList< ItemStackgetBlockDropped (World world, int x, int y, int z, int metadata, int fortune)
 
boolean canSilkHarvest (World world, EntityPlayer player, int x, int y, int z, int metadata)
 
boolean canCreatureSpawn (EnumCreatureType type, World world, int x, int y, int z)
 
boolean isBed (World world, int x, int y, int z, EntityLiving player)
 
ChunkCoordinates getBedSpawnPosition (World world, int x, int y, int z, EntityPlayer player)
 
void setBedOccupied (World world, int x, int y, int z, EntityPlayer player, boolean occupied)
 
int getBedDirection (IBlockAccess world, int x, int y, int z)
 
boolean isBedFoot (IBlockAccess world, int x, int y, int z)
 
void beginLeavesDecay (World world, int x, int y, int z)
 
boolean canSustainLeaves (World world, int x, int y, int z)
 
boolean isLeaves (World world, int x, int y, int z)
 
boolean canBeReplacedByLeaves (World world, int x, int y, int z)
 
boolean isWood (World world, int x, int y, int z)
 
boolean isGenMineableReplaceable (World world, int x, int y, int z, int target)
 
float getExplosionResistance (Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ)
 
void onBlockExploded (World world, int x, int y, int z, Explosion explosion)
 
boolean canConnectRedstone (IBlockAccess world, int x, int y, int z, int side)
 
boolean canPlaceTorchOnTop (World world, int x, int y, int z)
 
boolean canRenderInPass (int pass)
 
ItemStack getPickBlock (MovingObjectPosition target, World world, int x, int y, int z)
 
boolean isBlockFoliage (World world, int x, int y, int z)
 
boolean addBlockHitEffects (World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer)
 
boolean addBlockDestroyEffects (World world, int x, int y, int z, int meta, EffectRenderer effectRenderer)
 
boolean canSustainPlant (World world, int x, int y, int z, ForgeDirection direction, IPlantable plant)
 
void onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
 
boolean isFertile (World world, int x, int y, int z)
 
int getLightOpacity (World world, int x, int y, int z)
 
boolean canDragonDestroy (World world, int x, int y, int z)
 
boolean isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
 
boolean rotateBlock (World worldObj, int x, int y, int z, ForgeDirection axis)
 
ForgeDirection[] getValidRotations (World worldObj, int x, int y, int z)
 
float getEnchantPowerBonus (World world, int x, int y, int z)
 
int getEnchantPower (World world, int x, int y, int z)
 
boolean recolourBlock (World world, int x, int y, int z, ForgeDirection side, int colour)
 

Static Public Attributes

static final String[] LEAF_TYPES = new String[] {"oak", "spruce", "birch", "jungle"}
 
static final String[][] field_94396_b = new String[][] {{"leaves", "leaves_spruce", "leaves", "leaves_jungle"}, {"leaves_opaque", "leaves_spruce_opaque", "leaves_opaque", "leaves_jungle_opaque"}}
 

Protected Member Functions

 BlockLeaves (int par1)
 
ItemStack createStackedBlock (int par1)
 
- Protected Member Functions inherited from net.minecraft.block.BlockLeavesBase
 BlockLeavesBase (int par1, Material par2Material, boolean par3)
 
- Protected Member Functions inherited from net.minecraft.block.Block
void initializeBlock ()
 
void dropBlockAsItem_do (World par1World, int par2, int par3, int par4, ItemStack par5ItemStack)
 
void dropXpOnBlockBreak (World par1World, int par2, int par3, int par4, int par5)
 
boolean canSilkHarvest ()
 
ItemStack createStackedBlock (int par1)
 
Block disableStats ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.block.Block
static boolean isNormalCube (int par0)
 
static boolean isAssociatedBlockID (int par0, int par1)
 
static void setBurnProperties (int id, int encouragement, int flammability)
 
- Public Attributes inherited from net.minecraft.block.BlockLeavesBase
boolean graphicsLevel
 
- Protected Attributes inherited from net.minecraft.block.Block
boolean blockConstructorCalled = true
 
boolean enableStats = true
 
boolean needsRandomTick
 
boolean isBlockContainer
 
double minX
 
double minY
 
double minZ
 
double maxX
 
double maxY
 
double maxZ
 
Icon blockIcon
 
- Static Protected Attributes inherited from net.minecraft.block.Block
static int[] blockFireSpreadSpeed = new int[4096]
 
static int[] blockFlammability = new int[4096]
 

Constructor & Destructor Documentation

net.minecraft.block.BlockLeaves.BlockLeaves ( int  par1)
protected

Member Function Documentation

void net.minecraft.block.BlockLeaves.beginLeavesDecay ( World  world,
int  x,
int  y,
int  z 
)
void net.minecraft.block.BlockLeaves.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

int net.minecraft.block.BlockLeaves.colorMultiplier ( IBlockAccess  par1IBlockAccess,
int  par2,
int  par3,
int  par4 
)

Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.

ItemStack net.minecraft.block.BlockLeaves.createStackedBlock ( int  par1)
protected

Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null.

int net.minecraft.block.BlockLeaves.damageDropped ( int  par1)

Determines the damage on the item the block drops. Used in cloth and wood.

void net.minecraft.block.BlockLeaves.dropBlockAsItemWithChance ( World  par1World,
int  par2,
int  par3,
int  par4,
int  par5,
float  par6,
int  par7 
)

Drops the block items with a specified chance of dropping the specified items

int net.minecraft.block.BlockLeaves.getBlockColor ( )
Icon net.minecraft.block.BlockLeaves.getIcon ( int  par1,
int  par2 
)

From the specified side and block metadata retrieves the blocks texture. Args: side, metadata

int net.minecraft.block.BlockLeaves.getRenderColor ( int  par1)

Returns the color this block should be rendered. Used by leaves.

void net.minecraft.block.BlockLeaves.getSubBlocks ( int  par1,
CreativeTabs  par2CreativeTabs,
List  par3List 
)

returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)

void net.minecraft.block.BlockLeaves.harvestBlock ( World  par1World,
EntityPlayer  par2EntityPlayer,
int  par3,
int  par4,
int  par5,
int  par6 
)

Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage.

int net.minecraft.block.BlockLeaves.idDropped ( int  par1,
Random  par2Random,
int  par3 
)

Returns the ID of the items to drop on destruction.

boolean net.minecraft.block.BlockLeaves.isLeaves ( World  world,
int  x,
int  y,
int  z 
)
boolean net.minecraft.block.BlockLeaves.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 net.minecraft.block.BlockLeaves.isShearable ( ItemStack  item,
World  world,
int  x,
int  y,
int  z 
)

Checks if the object is currently shearable Example: Sheep return false when they have no wool

Parameters
itemThe itemstack that is being used, Possible to be null
worldThe current world
xThe X Position
yThe Y Position
zThe Z Position
Returns
If this is shearable, and onSheared should be called.

Implements net.minecraftforge.common.IShearable.

ArrayList<ItemStack> net.minecraft.block.BlockLeaves.onSheared ( ItemStack  item,
World  world,
int  x,
int  y,
int  z,
int  fortune 
)

Performs the shear function on this object. This is called for both client, and server. The object should perform all actions related to being sheared, except for dropping of the items.

Returns a list of items that resulted from the shearing process.

For entities, they should trust there internal location information over the values passed into this function.

Parameters
itemThe itemstack that is being used, Possible to be null
worldThe current world
xThe X Position
yThe Y Position
zThe Z Position
fortuneThe fortune level of the shears being used
Returns
A ArrayList containing all items from this shearing. Possible to be null.

Implements net.minecraftforge.common.IShearable.

int net.minecraft.block.BlockLeaves.quantityDropped ( Random  par1Random)

Returns the quantity of items to drop on block destruction.

void net.minecraft.block.BlockLeaves.randomDisplayTick ( World  par1World,
int  par2,
int  par3,
int  par4,
Random  par5Random 
)

A randomly called display update to be able to add particles or other items for display

void net.minecraft.block.BlockLeaves.registerIcons ( IconRegister  par1IconRegister)

When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.

void net.minecraft.block.BlockLeaves.setGraphicsLevel ( boolean  par1)

Pass true to draw this block using fancy graphics, or false for fast graphics.

void net.minecraft.block.BlockLeaves.updateTick ( World  par1World,
int  par2,
int  par3,
int  par4,
Random  par5Random 
)

Ticks the block if it's been scheduled

Member Data Documentation

final String [][] net.minecraft.block.BlockLeaves.field_94396_b = new String[][] {{"leaves", "leaves_spruce", "leaves", "leaves_jungle"}, {"leaves_opaque", "leaves_spruce_opaque", "leaves_opaque", "leaves_jungle_opaque"}}
static
final String [] net.minecraft.block.BlockLeaves.LEAF_TYPES = new String[] {"oak", "spruce", "birch", "jungle"}
static

The documentation for this class was generated from the following file: