net.minecraft.block
Class BlockHalfSlab

java.lang.Object
  extended by net.minecraft.block.Block
      extended by net.minecraft.block.BlockHalfSlab
Direct Known Subclasses:
BlockStep, BlockWoodSlab

public abstract class BlockHalfSlab
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
BlockHalfSlab(int par1, boolean par2, Material par3Material)
           
 
Method Summary
 void addCollidingBlockToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
          if the specified block is in the given AABB, add its collision bounding box to the given list
 int damageDropped(int par1)
          Determines the damage on the item the block drops.
 int getBlockTextureFromSide(int par1)
          Returns the block texture based on the side being looked at.
 int getDamageValue(World par1World, int par2, int par3, int par4)
          Get the block's damage value (for use with pick block).
abstract  String getFullSlabName(int var1)
          Returns the slab block name with step type.
 int idPicked(World par1World, int par2, int par3, int par4)
           
 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.
 int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
          Called when a block is placed using its ItemBlock.
 int quantityDropped(Random par1Random)
          Returns the quantity of items to drop on block destruction.
 boolean renderAsNormalBlock()
          If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
 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
 boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
           
 
Methods inherited from class net.minecraft.block.Block
addBlockDestroyEffects, addBlockHitEffects, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, colorMultiplier, createTileEntity, 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, getEnableStats, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getLightOpacity, getLightValue, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getRenderType, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureFile, getTickRandomly, harvestBlock, hasTileEntity, hasTileEntity, idDropped, 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, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborBlockChange, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, removeBlockByPlayer, setBedOccupied, setBlockBounds, setBlockName, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setRequiresSelfNotify, setResistance, setStepSound, setTextureFile, setTickRandomly, tickRate, translateBlockName, updateTick, velocityToAddToEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockHalfSlab

public BlockHalfSlab(int par1,
                     boolean par2,
                     Material par3Material)
Method Detail

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

setBlockBoundsForItemRender

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

Overrides:
setBlockBoundsForItemRender in class Block

addCollidingBlockToList

public void addCollidingBlockToList(World par1World,
                                    int par2,
                                    int par3,
                                    int par4,
                                    AxisAlignedBB par5AxisAlignedBB,
                                    List par6List,
                                    Entity par7Entity)
if the specified block is in the given AABB, add its collision bounding box to the given list

Overrides:
addCollidingBlockToList in class Block

getBlockTextureFromSide

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

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

onBlockPlaced

public int onBlockPlaced(World par1World,
                         int par2,
                         int par3,
                         int par4,
                         int par5,
                         float par6,
                         float par7,
                         float par8,
                         int par9)
Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata

Overrides:
onBlockPlaced in class Block

quantityDropped

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

Overrides:
quantityDropped in class Block

damageDropped

public int damageDropped(int par1)
Determines the damage on the item the block drops. Used in cloth and wood.

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

shouldSideBeRendered

public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess,
                                    int par2,
                                    int par3,
                                    int par4,
                                    int par5)
Overrides:
shouldSideBeRendered in class Block

getFullSlabName

public abstract String getFullSlabName(int var1)
Returns the slab block name with step type.


getDamageValue

public int getDamageValue(World par1World,
                          int par2,
                          int par3,
                          int par4)
Get the block's damage value (for use with pick block).

Overrides:
getDamageValue in class Block

idPicked

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