YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.block.BlockWoodSlab Class Reference
Inheritance diagram for net.minecraft.block.BlockWoodSlab:
net.minecraft.block.BlockHalfSlab net.minecraft.block.Block

Public Member Functions

 BlockWoodSlab (int par1, boolean par2)
 
Icon getIcon (int par1, int par2)
 
int idDropped (int par1, Random par2Random, int par3)
 
String getFullSlabName (int par1)
 
void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
void registerIcons (IconRegister par1IconRegister)
 
- Public Member Functions inherited from net.minecraft.block.BlockHalfSlab
 BlockHalfSlab (int par1, boolean par2, Material par3Material)
 
void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
void setBlockBoundsForItemRender ()
 
void addCollisionBoxesToList (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
 
boolean isOpaqueCube ()
 
int onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
 
int quantityDropped (Random par1Random)
 
int damageDropped (int par1)
 
boolean renderAsNormalBlock ()
 
boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
int getDamageValue (World par1World, int par2, int par3, int par4)
 
int idPicked (World par1World, int par2, int par3, int par4)
 
- Public Member Functions inherited from net.minecraft.block.Block
 Block (int par1, Material par2Material)
 
Block setStepSound (StepSound par1StepSound)
 
Block setLightOpacity (int par1)
 
Block setLightValue (float par1)
 
Block setResistance (float par1)
 
boolean renderAsNormalBlock ()
 
boolean getBlocksMovement (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
int getRenderType ()
 
Block setHardness (float par1)
 
Block setBlockUnbreakable ()
 
float getBlockHardness (World par1World, int par2, int par3, int par4)
 
Block setTickRandomly (boolean par1)
 
boolean getTickRandomly ()
 
boolean hasTileEntity ()
 
final void setBlockBounds (float par1, float par2, float par3, float par4, float par5, float par6)
 
float getBlockBrightness (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
int getMixedBrightnessForBlock (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
boolean shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
boolean isBlockSolid (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
Icon getBlockTexture (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
Icon getIcon (int par1, int par2)
 
void addCollisionBoxesToList (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
 
final Icon getBlockTextureFromSide (int par1)
 
AxisAlignedBB getSelectedBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
 
AxisAlignedBB getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4)
 
boolean isOpaqueCube ()
 
boolean canCollideCheck (int par1, boolean par2)
 
boolean isCollidable ()
 
void updateTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
void randomDisplayTick (World par1World, int par2, int par3, int par4, Random par5Random)
 
void onBlockDestroyedByPlayer (World par1World, int par2, int par3, int par4, int par5)
 
void onNeighborBlockChange (World par1World, int par2, int par3, int par4, int par5)
 
int tickRate (World par1World)
 
void onBlockAdded (World par1World, int par2, int par3, int par4)
 
void breakBlock (World par1World, int par2, int par3, int par4, int par5, int par6)
 
int quantityDropped (Random par1Random)
 
int idDropped (int par1, Random par2Random, int par3)
 
float getPlayerRelativeBlockHardness (EntityPlayer par1EntityPlayer, World par2World, int par3, int par4, int par5)
 
final void dropBlockAsItem (World par1World, int par2, int par3, int par4, int par5, int par6)
 
void dropBlockAsItemWithChance (World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
 
int damageDropped (int par1)
 
float getExplosionResistance (Entity par1Entity)
 
MovingObjectPosition collisionRayTrace (World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
 
void onBlockDestroyedByExplosion (World par1World, int par2, int par3, int par4, Explosion par5Explosion)
 
boolean canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5, ItemStack par6ItemStack)
 
int getRenderBlockPass ()
 
boolean canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5)
 
boolean canPlaceBlockAt (World par1World, int par2, int par3, int par4)
 
boolean onBlockActivated (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
 
void onEntityWalking (World par1World, int par2, int par3, int par4, Entity par5Entity)
 
int onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
 
void onBlockClicked (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
 
void velocityToAddToEntity (World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
 
void setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
final double getBlockBoundsMinX ()
 
final double getBlockBoundsMaxX ()
 
final double getBlockBoundsMinY ()
 
final double getBlockBoundsMaxY ()
 
final double getBlockBoundsMinZ ()
 
final double getBlockBoundsMaxZ ()
 
int getBlockColor ()
 
int getRenderColor (int par1)
 
int isProvidingWeakPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
int colorMultiplier (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
boolean canProvidePower ()
 
void onEntityCollidedWithBlock (World par1World, int par2, int par3, int par4, Entity par5Entity)
 
int isProvidingStrongPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
 
void setBlockBoundsForItemRender ()
 
void harvestBlock (World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
 
int quantityDroppedWithBonus (int par1, Random par2Random)
 
boolean canBlockStay (World par1World, int par2, int par3, int par4)
 
void onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
 
void onPostBlockPlaced (World par1World, int par2, int par3, int par4, int par5)
 
Block setUnlocalizedName (String par1Str)
 
String getLocalizedName ()
 
String getUnlocalizedName ()
 
String getUnlocalizedName2 ()
 
boolean onBlockEventReceived (World par1World, int par2, int par3, int par4, int par5, int par6)
 
boolean getEnableStats ()
 
int getMobilityFlag ()
 
float getAmbientOcclusionLightValue (IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
 
void onFallenUpon (World par1World, int par2, int par3, int par4, Entity par5Entity, float par6)
 
int idPicked (World par1World, int par2, int par3, int par4)
 
int getDamageValue (World par1World, int par2, int par3, int par4)
 
void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
Block setCreativeTab (CreativeTabs par1CreativeTabs)
 
void onBlockHarvested (World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
 
CreativeTabs getCreativeTabToDisplayOn ()
 
void onSetBlockIDWithMetaData (World par1World, int par2, int par3, int par4, int par5)
 
void fillWithRain (World par1World, int par2, int par3, int par4)
 
boolean isFlowerPot ()
 
boolean func_82506_l ()
 
boolean canDropFromExplosion (Explosion par1Explosion)
 
boolean isAssociatedBlockID (int par1)
 
boolean hasComparatorInputOverride ()
 
int getComparatorInputOverride (World par1World, int par2, int par3, int par4, int par5)
 
void registerIcons (IconRegister par1IconRegister)
 
String getItemIconName ()
 
int getLightValue (IBlockAccess world, int x, int y, int z)
 
boolean isLadder (World world, int x, int y, int z, EntityLiving entity)
 
boolean isLadder (World world, int x, int y, int z)
 
boolean isBlockNormalCube (World world, int x, int y, int z)
 
boolean isBlockSolidOnSide (World world, int x, int y, int z, ForgeDirection side)
 
boolean isBlockReplaceable (World world, int x, int y, int z)
 
boolean isBlockBurning (World world, int x, int y, int z)
 
boolean isAirBlock (World world, int x, int y, int z)
 
boolean canHarvestBlock (EntityPlayer player, int meta)
 
boolean removeBlockByPlayer (World world, EntityPlayer player, int x, int y, int z)
 
void addCreativeItems (ArrayList itemList)
 
int getFlammability (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
 
boolean isFlammable (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
 
int getFireSpreadSpeed (World world, int x, int y, int z, int metadata, ForgeDirection face)
 
boolean isFireSource (World world, int x, int y, int z, int metadata, ForgeDirection side)
 
boolean hasTileEntity (int metadata)
 
TileEntity createTileEntity (World world, int metadata)
 
int quantityDropped (int meta, int fortune, Random random)
 
ArrayList< ItemStackgetBlockDropped (World world, int x, int y, int z, int metadata, int fortune)
 
boolean canSilkHarvest (World world, EntityPlayer player, int x, int y, int z, int metadata)
 
boolean canCreatureSpawn (EnumCreatureType type, World world, int x, int y, int z)
 
boolean isBed (World world, int x, int y, int z, EntityLiving player)
 
ChunkCoordinates getBedSpawnPosition (World world, int x, int y, int z, EntityPlayer player)
 
void setBedOccupied (World world, int x, int y, int z, EntityPlayer player, boolean occupied)
 
int getBedDirection (IBlockAccess world, int x, int y, int z)
 
boolean isBedFoot (IBlockAccess world, int x, int y, int z)
 
void beginLeavesDecay (World world, int x, int y, int z)
 
boolean canSustainLeaves (World world, int x, int y, int z)
 
boolean isLeaves (World world, int x, int y, int z)
 
boolean canBeReplacedByLeaves (World world, int x, int y, int z)
 
boolean isWood (World world, int x, int y, int z)
 
boolean isGenMineableReplaceable (World world, int x, int y, int z, int target)
 
float getExplosionResistance (Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ)
 
void onBlockExploded (World world, int x, int y, int z, Explosion explosion)
 
boolean canConnectRedstone (IBlockAccess world, int x, int y, int z, int side)
 
boolean canPlaceTorchOnTop (World world, int x, int y, int z)
 
boolean canRenderInPass (int pass)
 
ItemStack getPickBlock (MovingObjectPosition target, World world, int x, int y, int z)
 
boolean isBlockFoliage (World world, int x, int y, int z)
 
boolean addBlockHitEffects (World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer)
 
boolean addBlockDestroyEffects (World world, int x, int y, int z, int meta, EffectRenderer effectRenderer)
 
boolean canSustainPlant (World world, int x, int y, int z, ForgeDirection direction, IPlantable plant)
 
void onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
 
boolean isFertile (World world, int x, int y, int z)
 
int getLightOpacity (World world, int x, int y, int z)
 
boolean canDragonDestroy (World world, int x, int y, int z)
 
boolean isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
 
boolean rotateBlock (World worldObj, int x, int y, int z, ForgeDirection axis)
 
ForgeDirection[] getValidRotations (World worldObj, int x, int y, int z)
 
float getEnchantPowerBonus (World world, int x, int y, int z)
 
int getEnchantPower (World world, int x, int y, int z)
 
boolean recolourBlock (World world, int x, int y, int z, ForgeDirection side, int colour)
 

Static Public Attributes

static final String[] woodType = new String[] {"oak", "spruce", "birch", "jungle"}
 

Protected Member Functions

ItemStack createStackedBlock (int par1)
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.block.Block
static boolean isNormalCube (int par0)
 
static boolean isAssociatedBlockID (int par0, int par1)
 
static void setBurnProperties (int id, int encouragement, int flammability)
 
- Public Attributes inherited from net.minecraft.block.Block
final int blockID
 
float blockHardness
 
float blockResistance
 
StepSound stepSound
 
float blockParticleGravity
 
final Material blockMaterial
 
float slipperiness
 
- Protected Attributes inherited from net.minecraft.block.BlockHalfSlab
final boolean isDoubleSlab
 
- Static Protected Attributes inherited from net.minecraft.block.Block
static int[] blockFireSpreadSpeed = new int[4096]
 
static int[] blockFlammability = new int[4096]
 

Constructor & Destructor Documentation

net.minecraft.block.BlockWoodSlab.BlockWoodSlab ( int  par1,
boolean  par2 
)

Member Function Documentation

ItemStack net.minecraft.block.BlockWoodSlab.createStackedBlock ( int  par1)
protected

Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null.

String net.minecraft.block.BlockWoodSlab.getFullSlabName ( int  par1)
virtual

Returns the slab block name with step type.

Implements net.minecraft.block.BlockHalfSlab.

Icon net.minecraft.block.BlockWoodSlab.getIcon ( int  par1,
int  par2 
)

From the specified side and block metadata retrieves the blocks texture. Args: side, metadata

void net.minecraft.block.BlockWoodSlab.getSubBlocks ( int  par1,
CreativeTabs  par2CreativeTabs,
List  par3List 
)

returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)

int net.minecraft.block.BlockWoodSlab.idDropped ( int  par1,
Random  par2Random,
int  par3 
)

Returns the ID of the items to drop on destruction.

void net.minecraft.block.BlockWoodSlab.registerIcons ( IconRegister  par1IconRegister)

When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.

Member Data Documentation

final String [] net.minecraft.block.BlockWoodSlab.woodType = new String[] {"oak", "spruce", "birch", "jungle"}
static

The type of tree this slab came from.


The documentation for this class was generated from the following file: