net.minecraft.block
Class BlockRedstoneTorch

java.lang.Object
  extended by net.minecraft.block.Block
      extended by net.minecraft.block.BlockTorch
          extended by net.minecraft.block.BlockRedstoneTorch

public class BlockRedstoneTorch
extends BlockTorch


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
 void 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
 boolean canProvidePower()
          Can this block provide power.
 int getBlockTextureFromSideAndMetadata(int par1, int par2)
          From the specified side and block metadata retrieves the blocks texture.
 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)
           
 boolean isProvidingStrongPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
          Returns true if the block is emitting direct/strong redstone power on the specified side.
 boolean isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
          Returns true if the block is emitting indirect/weak redstone power on the specified side.
 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.
 void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
           
 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.BlockTorch
canPlaceBlockAt, collisionRayTrace, getCollisionBoundingBoxFromPool, getRenderType, isOpaqueCube, onBlockPlaced, renderAsNormalBlock
 
Methods inherited from class net.minecraft.block.Block
addBlockDestroyEffects, addBlockHitEffects, addCollidingBlockToList, addCreativeItems, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, 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, getBlockTextureFromSide, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getLightOpacity, getLightValue, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, 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, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, 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

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

tickRate

public int tickRate()
How many world ticks before ticking

Overrides:
tickRate 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 BlockTorch

breakBlock

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

Overrides:
breakBlock in class Block

isProvidingWeakPower

public boolean isProvidingWeakPower(IBlockAccess par1IBlockAccess,
                                    int par2,
                                    int par3,
                                    int par4,
                                    int par5)
Returns true if the block is emitting indirect/weak redstone power on the specified side. If isBlockNormalCube returns true, standard redstone propagation rules will apply instead and this will not be called. Args: World, X, Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.

Overrides:
isProvidingWeakPower 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 BlockTorch

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 BlockTorch

isProvidingStrongPower

public boolean isProvidingStrongPower(IBlockAccess par1IBlockAccess,
                                      int par2,
                                      int par3,
                                      int par4,
                                      int par5)
Returns true if the block is emitting direct/strong redstone power on the specified side. Args: World, X, Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.

Overrides:
isProvidingStrongPower in class Block

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

canProvidePower

public boolean canProvidePower()
Can this block provide power. Only wire currently seems to have this change based on its state.

Overrides:
canProvidePower in class Block

randomDisplayTick

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

idPicked

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