public class ItemBlock extends Item
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
protected Block |
block |
bFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize
Modifier and Type | Method and Description |
---|---|
boolean |
canPlaceBlockOnSide(World worldIn,
BlockPos pos,
EnumFacing side,
EntityPlayer player,
ItemStack stack) |
Block |
getBlock() |
CreativeTabs |
getCreativeTab()
gets the CreativeTab this item is displayed on
|
void |
getSubItems(Item itemIn,
CreativeTabs tab,
java.util.List<ItemStack> subItems)
returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
|
java.lang.String |
getUnlocalizedName()
Returns the unlocalized name of this item.
|
java.lang.String |
getUnlocalizedName(ItemStack stack)
Returns the unlocalized name of this item.
|
boolean |
onItemUse(ItemStack stack,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ)
Called when a Block is right-clicked with this Item
|
static boolean |
setTileEntityNBT(World worldIn,
EntityPlayer pos,
BlockPos stack,
ItemStack p_179224_3_) |
ItemBlock |
setUnlocalizedName(java.lang.String unlocalizedName)
Sets the unlocalized name of this item to the string passed as the parameter, prefixed by "item."
|
addInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStrVsBlock, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, shouldRotateAroundWhenRendering, updateItemStackNBT
protected final Block block
public ItemBlock(Block block)
public ItemBlock setUnlocalizedName(java.lang.String unlocalizedName)
setUnlocalizedName
in class Item
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
public static boolean setTileEntityNBT(World worldIn, EntityPlayer pos, BlockPos stack, ItemStack p_179224_3_)
public boolean canPlaceBlockOnSide(World worldIn, BlockPos pos, EnumFacing side, EntityPlayer player, ItemStack stack)
public java.lang.String getUnlocalizedName(ItemStack stack)
getUnlocalizedName
in class Item
public java.lang.String getUnlocalizedName()
getUnlocalizedName
in class Item
public CreativeTabs getCreativeTab()
getCreativeTab
in class Item
public void getSubItems(Item itemIn, CreativeTabs tab, java.util.List<ItemStack> subItems)
getSubItems
in class Item
public Block getBlock()