Class AestheticNonOpaqueBlockItem


public class AestheticNonOpaqueBlockItem extends ItemBlock
  • Constructor Details

    • AestheticNonOpaqueBlockItem

      public AestheticNonOpaqueBlockItem(int iItemID)
  • Method Details

    • getMetadata

      public int getMetadata(int iItemDamage)
      Description copied from class: Item
      Returns the metadata of the block which this Item (ItemBlock) can place
      Overrides:
      getMetadata in class PlaceAsBlockItem
    • getUnlocalizedName

      public String getUnlocalizedName(ItemStack itemstack)
      Description copied from class: ItemBlock
      // +++START EDIT+++ // ---END EDIT--- Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have different names based on their damage or NBT.
      Overrides:
      getUnlocalizedName in class ItemBlock
    • onItemUse

      public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ)
      Description copied from class: Item
      Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
      Overrides:
      onItemUse in class PlaceAsBlockItem
    • getBuoyancy

      public float getBuoyancy(int iItemDamage)
      Overrides:
      getBuoyancy in class ItemBlock
    • canCombineWithBlock

      public boolean canCombineWithBlock(World world, int i, int j, int k, int iItemDamage)
    • convertToFullBlock

      public boolean convertToFullBlock(World world, int i, int j, int k)
    • isSlabUpsideDown

      public boolean isSlabUpsideDown(int iBlockID, int iMetadata)
    • attemptToCombineWithBlock

      public boolean attemptToCombineWithBlock(ItemStack itemStack, EntityPlayer player, World world, int i, int j, int k, int iFacing, boolean bFacingTest)
    • canPlaceItemBlockOnSide

      public boolean canPlaceItemBlockOnSide(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack itemStack)
      Overrides:
      canPlaceItemBlockOnSide in class PlaceAsBlockItem