|
||||||||||
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.BlockContainer
net.minecraft.block.BlockEnchantmentTable
public class BlockEnchantmentTable
Field Summary |
---|
Method Summary | |
---|---|
TileEntity |
createNewTileEntity(World par1World)
Returns a new instance of a block's tile entity class. |
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. |
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 |
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 |
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) |
Methods inherited from class net.minecraft.block.BlockContainer |
---|
breakBlock, createNewTileEntity, onBlockAdded, onBlockEventReceived |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public int getBlockTextureFromSide(int par1)
getBlockTextureFromSide
in class Block
public TileEntity createNewTileEntity(World par1World)
createNewTileEntity
in class BlockContainer
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |