|
||||||||||
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.BlockDirectional
net.minecraft.block.BlockRedstoneRepeater
public class BlockRedstoneRepeater
Field Summary | |
---|---|
static double[] |
repeaterTorchOffset
The offsets for the two torches in redstone repeater blocks. |
Method Summary | |
---|---|
boolean |
canBlockStay(World par1World,
int par2,
int par3,
int par4)
Can this block stay at this position. |
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates. |
boolean |
canProvidePower()
Can this block provide power. |
boolean |
func_82523_e(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
|
static boolean |
func_82524_c(int par0)
|
boolean |
func_83011_d(World par1World,
int par2,
int par3,
int par4,
int par5)
|
int |
getBlockTextureFromSide(int par1)
Returns the block texture based on the side being looked at. |
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
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. |
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. |
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. |
boolean |
onBlockActivated(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer,
int par6,
float par7,
float par8,
float par9)
Called upon block activation (right click on the block.) |
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world. |
void |
onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
Called right before the block is destroyed by a player. |
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLiving par5EntityLiving)
Called when the block is placed in the world. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
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)
|
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled |
Methods inherited from class net.minecraft.block.BlockDirectional |
---|
getDirection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] repeaterTorchOffset
Method Detail |
---|
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt
in class Block
public boolean canBlockStay(World par1World, int par2, int par3, int par4)
canBlockStay
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
shouldSideBeRendered
in class Block
public int getRenderType()
getRenderType
in class Block
public int getBlockTextureFromSide(int par1)
getBlockTextureFromSide
in class Block
public boolean isProvidingStrongPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingStrongPower
in class Block
public boolean isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingWeakPower
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public boolean func_82523_e(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
onBlockActivated
in class Block
public boolean canProvidePower()
canProvidePower
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
onBlockPlacedBy
in class Block
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
onBlockDestroyedByPlayer
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
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
public static boolean func_82524_c(int par0)
public boolean func_83011_d(World par1World, int par2, int par3, int par4, int par5)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |