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

Public Member Functions

void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
Icon getIcon (int par1, int par2)
 
void markOrGrowMarked (World par1World, int par2, int par3, int par4, Random par5Random)
 
void growTree (World par1World, int par2, int par3, int par4, Random par5Random)
 
boolean isSameSapling (World par1World, int par2, int par3, int par4, int par5)
 
int damageDropped (int par1)
 
void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
void registerIcons (IconRegister par1IconRegister)
 
- Public Member Functions inherited from net.minecraft.block.BlockFlower
boolean canPlaceBlockAt (World par1World, int par2, int par3, int par4)
 
void onNeighborBlockChange (World par1World, int par2, int par3, int par4, int par5)
 
void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
boolean canBlockStay (World par1World, int par2, int par3, int par4)
 
AxisAlignedBB getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
 
boolean isOpaqueCube ()
 
boolean renderAsNormalBlock ()
 
int getRenderType ()
 
EnumPlantType getPlantType (World world, int x, int y, int z)
 
int getPlantID (World world, int x, int y, int z)
 
int getPlantMetadata (World world, int x, int y, int z)
 
- 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[] WOOD_TYPES = new String[] {"oak", "spruce", "birch", "jungle"}
 

Protected Member Functions

 BlockSapling (int par1)
 
- Protected Member Functions inherited from net.minecraft.block.BlockFlower
 BlockFlower (int par1, Material par2Material)
 
 BlockFlower (int par1)
 
boolean canThisPlantGrowOnThisBlockID (int par1)
 
final void checkFlowerChange (World par1World, int par2, int par3, int par4)
 
- 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.Block
final int blockID
 
float blockHardness
 
float blockResistance
 
StepSound stepSound
 
float blockParticleGravity
 
final Material blockMaterial
 
float slipperiness
 
- 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.BlockSapling.BlockSapling ( int  par1)
protected

Member Function Documentation

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

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

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

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

void net.minecraft.block.BlockSapling.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.BlockSapling.growTree ( World  par1World,
int  par2,
int  par3,
int  par4,
Random  par5Random 
)

Attempts to grow a sapling into a tree

boolean net.minecraft.block.BlockSapling.isSameSapling ( World  par1World,
int  par2,
int  par3,
int  par4,
int  par5 
)

Determines if the same sapling is present at the given location.

void net.minecraft.block.BlockSapling.markOrGrowMarked ( World  par1World,
int  par2,
int  par3,
int  par4,
Random  par5Random 
)
void net.minecraft.block.BlockSapling.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.BlockSapling.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.BlockSapling.WOOD_TYPES = new String[] {"oak", "spruce", "birch", "jungle"}
static

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