public class ItemBlock extends Item
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
Block |
field_150939_a |
bFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize
Modifier and Type | Method and Description |
---|---|
boolean |
func_150936_a(World p_150936_1_,
int p_150936_2_,
int p_150936_3_,
int p_150936_4_,
int p_150936_5_,
EntityPlayer p_150936_6_,
ItemStack p_150936_7_) |
CreativeTabs |
getCreativeTab() |
IIcon |
getIconFromDamage(int p_77617_1_) |
int |
getSpriteNumber() |
void |
getSubItems(Item p_150895_1_,
CreativeTabs p_150895_2_,
java.util.List p_150895_3_) |
java.lang.String |
getUnlocalizedName() |
java.lang.String |
getUnlocalizedName(ItemStack p_77667_1_) |
boolean |
onItemUse(ItemStack p_77648_1_,
EntityPlayer p_77648_2_,
World p_77648_3_,
int p_77648_4_,
int p_77648_5_,
int p_77648_6_,
int p_77648_7_,
float p_77648_8_,
float p_77648_9_,
float p_77648_10_) |
boolean |
placeBlockAt(ItemStack stack,
EntityPlayer player,
World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ,
int metadata)
Called to actually place the block, after the location is determined
and all permission checks have been made.
|
void |
registerIcons(IIconRegister p_94581_1_) |
ItemBlock |
setUnlocalizedName(java.lang.String p_77655_1_) |
addInformation, canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getToolClasses, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, shouldRotateAroundWhenRendering, showDurabilityBar
public final Block field_150939_a
public ItemBlock(Block p_i45328_1_)
public ItemBlock setUnlocalizedName(java.lang.String p_77655_1_)
setUnlocalizedName
in class Item
public int getSpriteNumber()
getSpriteNumber
in class Item
public IIcon getIconFromDamage(int p_77617_1_)
getIconFromDamage
in class Item
public boolean onItemUse(ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_, int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_)
public boolean func_150936_a(World p_150936_1_, int p_150936_2_, int p_150936_3_, int p_150936_4_, int p_150936_5_, EntityPlayer p_150936_6_, ItemStack p_150936_7_)
public java.lang.String getUnlocalizedName(ItemStack p_77667_1_)
getUnlocalizedName
in class Item
public java.lang.String getUnlocalizedName()
getUnlocalizedName
in class Item
public CreativeTabs getCreativeTab()
getCreativeTab
in class Item
public void getSubItems(Item p_150895_1_, CreativeTabs p_150895_2_, java.util.List p_150895_3_)
getSubItems
in class Item
public void registerIcons(IIconRegister p_94581_1_)
registerIcons
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, int metadata)
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.