|
||||||||||
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.BlockRail
net.minecraft.block.BlockDetectorRail
public class BlockDetectorRail
Field Summary |
---|
Constructor Summary | |
---|---|
BlockDetectorRail(int par1,
int par2)
|
Method Summary | |
---|---|
boolean |
canProvidePower()
Can this block provide power. |
boolean |
isProvidingStrongPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting direct/strong redstone power on the specified side. |
boolean |
isProvidingWeakPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting indirect/weak redstone power on the specified side. |
void |
onEntityCollidedWithBlock(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Triggered whenever an entity collides with this block (enters into the block). |
int |
tickRate()
How many world ticks before ticking |
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 BlockDetectorRail(int par1, int par2)
Method Detail |
---|
public int tickRate()
tickRate
in class Block
public boolean canProvidePower()
canProvidePower
in class Block
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
onEntityCollidedWithBlock
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public boolean isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingWeakPower
in class Block
public boolean isProvidingStrongPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingStrongPower
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |