Class BlockStoneSlabNew

    • Constructor Detail

      • BlockStoneSlabNew

        public BlockStoneSlabNew()
    • Method Detail

      • bootstrapStates

        public static void bootstrapStates()
      • getLocalizedName

        public java.lang.String getLocalizedName()
        + Gets the localized name of this block. Used for the statistics page.
        Overrides:
        getLocalizedName in class Block
      • getUnlocalizedName

        public java.lang.String getUnlocalizedName​(int i)
        + Returns the slab block name with the type associated with it
        Specified by:
        getUnlocalizedName in class BlockSlab
      • getSubBlocks

        public void getSubBlocks​(Item item,
                                 CreativeTabs var2,
                                 java.util.List<ItemStack> list)
        + returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
        Overrides:
        getSubBlocks in class Block
      • getStateFromMeta

        public IBlockState getStateFromMeta​(int i)
        + Convert the given metadata into a BlockState for this Block
        Overrides:
        getStateFromMeta in class Block
      • getMetaFromState

        public int getMetaFromState​(IBlockState iblockstate)
        + Convert the BlockState into the correct metadata value
        Overrides:
        getMetaFromState in class Block
      • damageDropped

        public int damageDropped​(IBlockState iblockstate)
        + Gets the metadata of the item this Block can drop. This method is called when the block gets destroyed. It returns the metadata of the dropped item based on the old metadata of the block.
        Overrides:
        damageDropped in class Block