|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.block.Block
net.minecraft.block.BlockVine
public class BlockVine
Field Summary |
---|
Constructor Summary | |
---|---|
BlockVine(int par1)
|
Method Summary | |
---|---|
boolean |
canPlaceBlockOnSide(World par1World,
int par2,
int par3,
int par4,
int par5)
checks to see if you can place this block can be placed on that side of a block: BlockLever overrides |
int |
colorMultiplier(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockColor()
|
AxisAlignedBB |
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 |
getRenderColor(int par1)
|
int |
getRenderType()
The type of render function that is called for this block |
void |
harvestBlock(World par1World,
EntityPlayer par2EntityPlayer,
int par3,
int par4,
int par5,
int par6)
Called when the player destroys a block with an item that can harvest it. |
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
boolean |
isLadder(World world,
int x,
int y,
int z)
Checks if a player or entity can use this block to 'climb' like a ladder. |
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. |
boolean |
isShearable(ItemStack item,
World world,
int x,
int y,
int z)
Checks if the object is currently shearable Example: Sheep return false when they have no wool |
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. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
ArrayList<ItemStack> |
onSheared(ItemStack item,
World world,
int x,
int y,
int z,
int fortune)
Performs the shear function on this object. |
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 |
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockVine(int par1)
Method Detail |
---|
public void setBlockBoundsForItemRender()
setBlockBoundsForItemRender
in class Block
public int getRenderType()
getRenderType
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5)
canPlaceBlockOnSide
in class Block
public int getBlockColor()
getBlockColor
in class Block
public int getRenderColor(int par1)
getRenderColor
in class Block
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
colorMultiplier
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
onBlockPlaced
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
harvestBlock
in class Block
public boolean isShearable(ItemStack item, World world, int x, int y, int z)
IShearable
isShearable
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Position
public ArrayList<ItemStack> onSheared(ItemStack item, World world, int x, int y, int z, int fortune)
IShearable
onSheared
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Positionfortune
- The fortune level of the shears being used
public boolean isLadder(World world, int x, int y, int z)
Block
isLadder
in class Block
world
- The current worldx
- X Positiony
- Y positionz
- Z position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |