|
||||||||||
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.BlockBreakable
net.minecraft.block.BlockPortal
public class BlockPortal
Field Summary |
---|
Constructor Summary | |
---|---|
BlockPortal(int par1,
int par2)
|
Method Summary | |
---|---|
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 |
getRenderBlockPass()
|
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. |
void |
onEntityCollidedWithBlock(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Triggered whenever an entity collides with this block (enters into the block). |
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) |
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state. |
boolean |
shouldSideBeRendered(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
|
boolean |
tryToCreatePortal(World par1World,
int par2,
int par3,
int par4)
Checks to see if this location is valid to create a portal and will return True if it does. |
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 BlockPortal(int par1, int par2)
Method Detail |
---|
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class BlockBreakable
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4)
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
shouldSideBeRendered
in class BlockBreakable
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
onEntityCollidedWithBlock
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 int idPicked(World par1World, int par2, int par3, int par4)
idPicked
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |