net.minecraft.block
Class BlockTNT

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

public class BlockTNT
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
 
Constructor Summary
BlockTNT(int par1, int par2)
           
 
Method Summary
 boolean canDropFromExplosion(Explosion par1Explosion)
          Return whether this block can drop from an explosion.
 int getBlockTextureFromSide(int par1)
          Returns the block texture based on the side being looked at.
 boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
          Called upon block activation (right click on the block.)
 void onBlockAdded(World par1World, int par2, int par3, int par4)
          Called whenever the block is added into the world.
 void onBlockDestroyedByExplosion(World par1World, int par2, int par3, int par4)
          Called upon the block being destroyed by an explosion
 void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
          Called right before the block is destroyed by a player.
 void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
          Triggered whenever an entity collides with this block (enters into the block).
 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.
 
Methods inherited from class net.minecraft.block.Block
addBlockDestroyEffects, addBlockHitEffects, addCollidingBlockToList, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, fillWithRain, func_82505_u_, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockDropped, getBlockHardness, getBlockName, getBlocksMovement, getBlockTexture, getBlockTextureFromSideAndMetadata, getCollisionBoundingBoxFromPool, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getLightOpacity, getLightValue, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getRenderType, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureFile, getTickRandomly, harvestBlock, hasTileEntity, hasTileEntity, idDropped, idPicked, isAirBlock, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isOpaqueCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockClicked, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityWalking, onFallenUpon, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, removeBlockByPlayer, renderAsNormalBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setRequiresSelfNotify, setResistance, setStepSound, setTextureFile, setTickRandomly, shouldSideBeRendered, tickRate, translateBlockName, updateTick, velocityToAddToEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockTNT

public BlockTNT(int par1,
                int par2)
Method Detail

getBlockTextureFromSide

public int getBlockTextureFromSide(int par1)
Returns the block texture based on the side being looked at. Args: side

Overrides:
getBlockTextureFromSide 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

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

quantityDropped

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

Overrides:
quantityDropped in class Block

onBlockDestroyedByExplosion

public void onBlockDestroyedByExplosion(World par1World,
                                        int par2,
                                        int par3,
                                        int par4)
Called upon the block being destroyed by an explosion

Overrides:
onBlockDestroyedByExplosion in class Block

onBlockDestroyedByPlayer

public void onBlockDestroyedByPlayer(World par1World,
                                     int par2,
                                     int par3,
                                     int par4,
                                     int par5)
Called right before the block is destroyed by a player. Args: world, x, y, z, metaData

Overrides:
onBlockDestroyedByPlayer in class Block

onBlockActivated

public boolean onBlockActivated(World par1World,
                                int par2,
                                int par3,
                                int par4,
                                EntityPlayer par5EntityPlayer,
                                int par6,
                                float par7,
                                float par8,
                                float par9)
Called upon block activation (right click on the block.)

Overrides:
onBlockActivated in class Block

onEntityCollidedWithBlock

public void onEntityCollidedWithBlock(World par1World,
                                      int par2,
                                      int par3,
                                      int par4,
                                      Entity par5Entity)
Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity

Overrides:
onEntityCollidedWithBlock in class Block

canDropFromExplosion

public boolean canDropFromExplosion(Explosion par1Explosion)
Return whether this block can drop from an explosion.

Overrides:
canDropFromExplosion in class Block