|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Item
net.minecraft.src.ItemBlock
public class ItemBlock
Field Summary |
---|
Constructor Summary | |
---|---|
ItemBlock(int par1)
|
Method Summary | |
---|---|
boolean |
canPlaceItemBlockOnSide(World par1World,
int par2,
int par3,
int par4,
int par5,
EntityPlayer par6EntityPlayer,
ItemStack par7ItemStack)
|
int |
getBlockID()
Returns the blockID for this Item |
CreativeTabs |
getCreativeTab()
|
String |
getItemName()
|
String |
getItemNameIS(ItemStack par1ItemStack)
|
void |
getSubItems(int par1,
CreativeTabs par2CreativeTabs,
List par3List)
|
boolean |
onItemUse(ItemStack par1ItemStack,
EntityPlayer par2EntityPlayer,
World par3World,
int par4,
int par5,
int par6,
int par7,
float par8,
float par9,
float par10)
Callback for item usage. |
boolean |
placeBlockAt(ItemStack stack,
EntityPlayer player,
World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ)
Called to actually place the block, after the location is determined and all permission checks have been made. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItemBlock(int par1)
Method Detail |
---|
public int getBlockID()
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
onItemUse
in class Item
public boolean canPlaceItemBlockOnSide(World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer, ItemStack par7ItemStack)
public String getItemNameIS(ItemStack par1ItemStack)
getItemNameIS
in class Item
public String getItemName()
getItemName
in class Item
public CreativeTabs getCreativeTab()
getCreativeTab
in class Item
public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
getSubItems
in class Item
public boolean placeBlockAt(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
stack
- The item stack that was used to place the block. This can be changed inside the method.player
- The player who is placing the block. Can be null if the block is not being placed by a player.side
- The side the player (or machine) right-clicked on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |