net.minecraft.block
Class BlockStem

java.lang.Object
  extended by net.minecraft.block.Block
      extended by net.minecraft.block.BlockFlower
          extended by net.minecraft.block.BlockStem
All Implemented Interfaces:
IPlantable

public class BlockStem
extends BlockFlower


Field Summary
 
Fields inherited from class net.minecraft.block.Block
anvil, beacon, bed, bedrock, blockClay, blockDiamond, blockEmerald, blockGold, blockID, blockIndexInTexture, blockLapis, blockMaterial, blockParticleGravity, blocksList, blockSnow, blockSteel, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carrot, cauldron, chest, cloth, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, deadBush, dirt, dispenser, doorSteel, doorWood, dragonEgg, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, glass, glowStone, grass, gravel, ice, isDefaultTexture, 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, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, potato, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railDetector, railPowered, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, requiresSelfNotify, sand, sandStone, sapling, signPost, signWall, silverfish, skull, slipperiness, slowSand, snow, soundAnvilFootstep, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundLadderFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundSnowFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stairCompactCobblestone, stairCompactPlanks, stairsBrick, stairsNetherBrick, stairsSandStone, stairsStoneBrickSmooth, stairsWoodBirch, stairsWoodJungle, stairsWoodSpruce, stepSound, stone, stoneBrick, stoneButton, stoneDoubleSlab, stoneOvenActive, stoneOvenIdle, stoneSingleSlab, tallGrass, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench
 
Method Summary
 int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
           
 void 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
 void fertilizeStem(World par1World, int par2, int par3, int par4)
           
 ArrayList<ItemStack> getBlockDropped(World world, int x, int y, int z, int metadata, int fortune)
          This returns a complete list of items dropped from this block.
 int getBlockTextureFromSideAndMetadata(int par1, int par2)
          From the specified side and block metadata retrieves the blocks texture.
 int getRenderColor(int par1)
           
 int getRenderType()
          The type of render function that is called for this block
 int getState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
           
 int idDropped(int par1, Random par2Random, int par3)
          Returns the ID of the items to drop on destruction.
 int idPicked(World par1World, int par2, int par3, int par4)
           
 int quantityDropped(Random par1Random)
          Returns the quantity of items to drop on block destruction.
 void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
          Updates the blocks bounds based on its current state.
 void setBlockBoundsForItemRender()
          Sets the block's bounds for rendering it as an item
 void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
          Ticks the block if it's been scheduled
 
Methods inherited from class net.minecraft.block.BlockFlower
canBlockStay, canPlaceBlockAt, getCollisionBoundingBoxFromPool, getPlantID, getPlantMetadata, getPlantType, isOpaqueCube, onNeighborBlockChange, renderAsNormalBlock
 
Methods inherited from class net.minecraft.block.Block
addBlockDestroyEffects, addBlockHitEffects, addCollidingBlockToList, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, createTileEntity, damageDropped, dropBlockAsItem, fillWithRain, func_82505_u_, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockHardness, getBlockName, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getLightOpacity, getLightValue, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureFile, getTickRandomly, harvestBlock, hasTileEntity, hasTileEntity, isAirBlock, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, removeBlockByPlayer, setBedOccupied, setBlockBounds, setBlockName, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setRequiresSelfNotify, setResistance, setStepSound, setTextureFile, setTickRandomly, shouldSideBeRendered, tickRate, translateBlockName, velocityToAddToEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

updateTick

public void updateTick(World par1World,
                       int par2,
                       int par3,
                       int par4,
                       Random par5Random)
Ticks the block if it's been scheduled

Overrides:
updateTick in class BlockFlower

fertilizeStem

public void fertilizeStem(World par1World,
                          int par2,
                          int par3,
                          int par4)

getRenderColor

public int getRenderColor(int par1)
Overrides:
getRenderColor in class Block

colorMultiplier

public int colorMultiplier(IBlockAccess par1IBlockAccess,
                           int par2,
                           int par3,
                           int par4)
Overrides:
colorMultiplier in class Block

getBlockTextureFromSideAndMetadata

public int getBlockTextureFromSideAndMetadata(int par1,
                                              int par2)
From the specified side and block metadata retrieves the blocks texture. Args: side, metadata

Overrides:
getBlockTextureFromSideAndMetadata in class Block

setBlockBoundsForItemRender

public void setBlockBoundsForItemRender()
Sets the block's bounds for rendering it as an item

Overrides:
setBlockBoundsForItemRender in class Block

setBlockBoundsBasedOnState

public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
                                       int par2,
                                       int par3,
                                       int par4)
Updates the blocks bounds based on its current state. Args: world, x, y, z

Overrides:
setBlockBoundsBasedOnState in class Block

getRenderType

public int getRenderType()
The type of render function that is called for this block

Overrides:
getRenderType in class BlockFlower

getState

public int getState(IBlockAccess par1IBlockAccess,
                    int par2,
                    int par3,
                    int par4)

dropBlockAsItemWithChance

public void 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

Overrides:
dropBlockAsItemWithChance in class Block

getBlockDropped

public ArrayList<ItemStack> getBlockDropped(World world,
                                            int x,
                                            int y,
                                            int z,
                                            int metadata,
                                            int fortune)
Description copied from class: Block
This returns a complete list of items dropped from this block.

Overrides:
getBlockDropped in class Block
Parameters:
world - The current world
x - X Position
y - Y Position
z - Z Position
metadata - Current metadata
fortune - Breakers fortune level
Returns:
A ArrayList containing all items this block drops

idDropped

public int idDropped(int par1,
                     Random par2Random,
                     int par3)
Returns the ID of the items to drop on destruction.

Overrides:
idDropped in class Block

quantityDropped

public int quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction.

Overrides:
quantityDropped in class Block

idPicked

public int idPicked(World par1World,
                    int par2,
                    int par3,
                    int par4)
Overrides:
idPicked in class Block