|
||||||||||
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.BlockFluid
public abstract class BlockFluid
Field Summary |
---|
Method Summary | |
---|---|
boolean |
canCollideCheck(int par1,
boolean par2)
Returns whether this block is collideable based on the arguments passed in Args: blockMetaData, unknownFlag |
int |
colorMultiplier(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
float |
getBlockBrightness(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockColor()
|
boolean |
getBlocksMovement(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockTextureFromSide(int par1)
Returns the block texture based on the side being looked at. |
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) |
static double |
getFlowDirection(IBlockAccess par0IBlockAccess,
int par1,
int par2,
int par3,
Material par4Material)
|
static float |
getFluidHeightPercent(int par0)
Returns the percentage of the fluid block that is air, based on the given flow decay of the fluid. |
int |
getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getRenderBlockPass()
|
int |
getRenderType()
The type of render function that is called for this block |
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
boolean |
isBlockSolid(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns Returns true if the given side of this block type should be rendered (if it's solid or not), if the adjacent block is at the given coordinates. |
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. |
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. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
|
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) |
boolean |
shouldSideBeRendered(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
|
int |
tickRate()
How many world ticks before ticking |
void |
velocityToAddToEntity(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
Vec3 par6Vec3)
Can add to the passed in vector for a movement vector to be applied to the entity. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlocksMovement
in class Block
public int getBlockColor()
getBlockColor
in class Block
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
colorMultiplier
in class Block
public static float getFluidHeightPercent(int par0)
public int getBlockTextureFromSide(int par1)
getBlockTextureFromSide
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean canCollideCheck(int par1, boolean par2)
canCollideCheck
in class Block
public boolean isBlockSolid(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isBlockSolid
in class Block
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
shouldSideBeRendered
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public int getRenderType()
getRenderType
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 velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
velocityToAddToEntity
in class Block
public int tickRate()
tickRate
in class Block
public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getMixedBrightnessForBlock
in class Block
public float getBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlockBrightness
in class Block
public int getRenderBlockPass()
getRenderBlockPass
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick
in class Block
public static double getFlowDirection(IBlockAccess par0IBlockAccess, int par1, int par2, int par3, Material par4Material)
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |