Class DirtSlabBlockItem


public class DirtSlabBlockItem extends SlabBlockItem
  • Constructor Details

    • DirtSlabBlockItem

      public DirtSlabBlockItem(int id)
  • Method Details

    • getMetadata

      public int getMetadata(int itemDamage)
      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
    • canCombineWithBlock

      public boolean canCombineWithBlock(World world, int x, int y, int z, int itemDamage)
      Overrides:
      canCombineWithBlock in class SlabBlockItem
    • convertToFullBlock

      public boolean convertToFullBlock(World world, int x, int y, int z)
      Overrides:
      convertToFullBlock in class SlabBlockItem