net.minecraft.block
Class BlockFire

java.lang.Object
  extended by net.minecraft.block.Block
      extended by net.minecraft.block.BlockFire

public class BlockFire
extends Block


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
 boolean canBlockCatchFire(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
          Deprecated. 
 boolean canBlockCatchFire(IBlockAccess world, int x, int y, int z, ForgeDirection face)
          Side sensitive version that calls the block function.
 boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
          Checks to see if its valid to put this block at the specified coordinates.
 boolean func_82506_l()
           
 int getChanceToEncourageFire(World par1World, int par2, int par3, int par4, int par5)
          Deprecated. 
 int getChanceToEncourageFire(World world, int x, int y, int z, int oldChance, ForgeDirection face)
          Side sensitive version that calls the block function.
 AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
          Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused)
 int getRenderType()
          The type of render function that is called for this block
 void initializeBlock()
          This method is called on a block after all other blocks gets already created.
 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.
 void onBlockAdded(World par1World, int par2, int par3, int par4)
          Called whenever the block is added into the world.
 void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
          Lets the block know when one of its neighbor changes.
 int quantityDropped(Random par1Random)
          Returns the quantity of items to drop on block destruction.
 void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
           
 boolean renderAsNormalBlock()
          If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
 int tickRate()
          How many world ticks before ticking
 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.Block
addBlockDestroyEffects, addBlockHitEffects, addCollidingBlockToList, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, fillWithRain, func_82505_u_, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockDropped, getBlockHardness, getBlockName, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getBlockTextureFromSideAndMetadata, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getLightOpacity, getLightValue, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureFile, getTickRandomly, harvestBlock, hasTileEntity, hasTileEntity, idDropped, idPicked, isAirBlock, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isFertile, isFireSource, isFlammable, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDroppedWithBonus, removeBlockByPlayer, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setRequiresSelfNotify, setResistance, setStepSound, setTextureFile, setTickRandomly, shouldSideBeRendered, translateBlockName, velocityToAddToEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initializeBlock

public void initializeBlock()
This method is called on a block after all other blocks gets already created. You can use it to reference and configure something on the block that needs the others ones.


getCollisionBoundingBoxFromPool

public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World,
                                                     int par2,
                                                     int par3,
                                                     int par4)
Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused)

Overrides:
getCollisionBoundingBoxFromPool in class Block

isOpaqueCube

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

Overrides:
isOpaqueCube in class Block

renderAsNormalBlock

public boolean renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)

Overrides:
renderAsNormalBlock in class Block

getRenderType

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

Overrides:
getRenderType in class Block

quantityDropped

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

Overrides:
quantityDropped in class Block

tickRate

public int tickRate()
How many world ticks before ticking

Overrides:
tickRate in class Block

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 Block

func_82506_l

public boolean func_82506_l()
Overrides:
func_82506_l in class Block

isCollidable

public boolean isCollidable()
Returns if this block is collidable (only used by Fire). Args: x, y, z

Overrides:
isCollidable in class Block

canBlockCatchFire

@Deprecated
public boolean canBlockCatchFire(IBlockAccess par1IBlockAccess,
                                            int par2,
                                            int par3,
                                            int par4)
Deprecated. 

Checks the specified block coordinate to see if it can catch fire. Args: blockAccess, x, y, z Deprecated for a side-sensitive version


getChanceToEncourageFire

@Deprecated
public int getChanceToEncourageFire(World par1World,
                                               int par2,
                                               int par3,
                                               int par4,
                                               int par5)
Deprecated. 

Retrieves a specified block's chance to encourage their neighbors to burn and if the number is greater than the current number passed in it will return its number instead of the passed in one. Args: world, x, y, z, curChanceToEncourageFire Deprecated for a side-sensitive version


canPlaceBlockAt

public boolean canPlaceBlockAt(World par1World,
                               int par2,
                               int par3,
                               int par4)
Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z

Overrides:
canPlaceBlockAt in class Block

onNeighborBlockChange

public void onNeighborBlockChange(World par1World,
                                  int par2,
                                  int par3,
                                  int par4,
                                  int par5)
Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID

Overrides:
onNeighborBlockChange in class Block

onBlockAdded

public void onBlockAdded(World par1World,
                         int par2,
                         int par3,
                         int par4)
Called whenever the block is added into the world. Args: world, x, y, z

Overrides:
onBlockAdded in class Block

randomDisplayTick

public void randomDisplayTick(World par1World,
                              int par2,
                              int par3,
                              int par4,
                              Random par5Random)
Overrides:
randomDisplayTick in class Block

canBlockCatchFire

public boolean canBlockCatchFire(IBlockAccess world,
                                 int x,
                                 int y,
                                 int z,
                                 ForgeDirection face)
Side sensitive version that calls the block function.

Parameters:
world - The current world
x - X Position
y - Y Position
z - Z Position
face - The side the fire is coming from
Returns:
True if the face can catch fire.

getChanceToEncourageFire

public int getChanceToEncourageFire(World world,
                                    int x,
                                    int y,
                                    int z,
                                    int oldChance,
                                    ForgeDirection face)
Side sensitive version that calls the block function.

Parameters:
world - The current world
x - X Position
y - Y Position
z - Z Position
oldChance - The previous maximum chance.
face - The side the fire is coming from
Returns:
The chance of the block catching fire, or oldChance if it is higher