YATS/Forge Documentation
|
Public Member Functions | |
BlockCocoa (int par1) | |
Icon | getIcon (int par1, int par2) |
void | updateTick (World par1World, int par2, int par3, int par4, Random par5Random) |
Icon | func_94468_i_ (int par1) |
boolean | canBlockStay (World par1World, int par2, int par3, int par4) |
int | getRenderType () |
boolean | renderAsNormalBlock () |
boolean | isOpaqueCube () |
AxisAlignedBB | getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4) |
AxisAlignedBB | getSelectedBoundingBoxFromPool (World par1World, int par2, int par3, int par4) |
void | setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
void | onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack) |
int | onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) |
void | onNeighborBlockChange (World par1World, int par2, int par3, int par4, int par5) |
void | dropBlockAsItemWithChance (World par1World, int par2, int par3, int par4, int par5, float par6, int par7) |
ArrayList< ItemStack > | getBlockDropped (World world, int x, int y, int z, int metadata, int fortune) |
int | idPicked (World par1World, int par2, int par3, int par4) |
int | getDamageValue (World par1World, int par2, int par3, int par4) |
void | registerIcons (IconRegister par1IconRegister) |
int | idDropped (int par1, Random par2Random, int par3) |
Static Public Member Functions | |
static int | func_72219_c (int par0) |
Static Public Member Functions inherited from net.minecraft.block.BlockDirectional | |
static int | getDirection (int par0) |
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) |
Static Public Attributes | |
static final String[] | cocoaIcons = new String[] {"cocoa_0", "cocoa_1", "cocoa_2"} |
Additional Inherited Members | |
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 Member Functions inherited from net.minecraft.block.BlockDirectional | |
BlockDirectional (int par1, Material par2Material) | |
Protected Attributes inherited from net.minecraft.block.Block | |
boolean | blockConstructorCalled = true |
boolean | enableStats = true |
boolean | needsRandomTick |
boolean | isBlockContainer |
double | minX |
double | minY |
double | minZ |
double | maxX |
double | maxY |
double | maxZ |
Icon | blockIcon |
Static Protected Attributes inherited from net.minecraft.block.Block | |
static int[] | blockFireSpreadSpeed = new int[4096] |
static int[] | blockFlammability = new int[4096] |
net.minecraft.block.BlockCocoa.BlockCocoa | ( | int | par1) |
boolean net.minecraft.block.BlockCocoa.canBlockStay | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
void net.minecraft.block.BlockCocoa.dropBlockAsItemWithChance | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
float | par6, | ||
int | par7 | ||
) |
Drops the block items with a specified chance of dropping the specified items
|
static |
Icon net.minecraft.block.BlockCocoa.func_94468_i_ | ( | int | par1) |
ArrayList<ItemStack> net.minecraft.block.BlockCocoa.getBlockDropped | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | metadata, | ||
int | fortune | ||
) |
AxisAlignedBB net.minecraft.block.BlockCocoa.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 net.minecraft.block.BlockCocoa.getDamageValue | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Get the block's damage value (for use with pick block).
Icon net.minecraft.block.BlockCocoa.getIcon | ( | int | par1, |
int | par2 | ||
) |
From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
int net.minecraft.block.BlockCocoa.getRenderType | ( | ) |
The type of render function that is called for this block
AxisAlignedBB net.minecraft.block.BlockCocoa.getSelectedBoundingBoxFromPool | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Returns the bounding box of the wired rectangular prism to render.
int net.minecraft.block.BlockCocoa.idDropped | ( | int | par1, |
Random | par2Random, | ||
int | par3 | ||
) |
int net.minecraft.block.BlockCocoa.idPicked | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
boolean net.minecraft.block.BlockCocoa.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 net.minecraft.block.BlockCocoa.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
void net.minecraft.block.BlockCocoa.onBlockPlacedBy | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
EntityLiving | par5EntityLiving, | ||
ItemStack | par6ItemStack | ||
) |
Called when the block is placed in the world.
void net.minecraft.block.BlockCocoa.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
void net.minecraft.block.BlockCocoa.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.
boolean net.minecraft.block.BlockCocoa.renderAsNormalBlock | ( | ) |
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
void net.minecraft.block.BlockCocoa.setBlockBoundsBasedOnState | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Updates the blocks bounds based on its current state. Args: world, x, y, z
void net.minecraft.block.BlockCocoa.updateTick | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Random | par5Random | ||
) |
Ticks the block if it's been scheduled
|
static |