Class BlockStoneBrick

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockStoneBrick

public class BlockStoneBrick extends Block
  • Field Details

    • STONE_BRICK_TYPES

      public static final String[] STONE_BRICK_TYPES
    • ICON_SUFFIXES

      public static final String[] ICON_SUFFIXES
  • Constructor Details

    • BlockStoneBrick

      public BlockStoneBrick(int par1)
  • Method Details

    • updateTick

      public void updateTick(World world, int i, int j, int k, Random random)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class Block
    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • damageDropped

      public int damageDropped(int iMetadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool in class Block
    • hasMortar

      public boolean hasMortar(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      hasMortar in class Block
    • isBlockInfestable

      public boolean isBlockInfestable(EntityLiving entity, int metadata)
      Overrides:
      isBlockInfestable in class Block
      Parameters:
      entity - for having hook for other infesting mobs
      metadata - for having single blockID be infestable depending on metadata
      Returns:
    • getBlockIDOnInfest

      public int getBlockIDOnInfest(EntityLiving entity, int metadata)
      Overrides:
      getBlockIDOnInfest in class Block
    • getStoneType

      public int getStoneType(int metadata)
      normal mossy cracked chiseled
    • getStrata

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getStrata

      public int getStrata(int iMetadata)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getDamageValue

      public int getDamageValue(World world, int x, int y, int z)
      Description copied from class: Block
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class Block
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int par1, int par2)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • getSubBlocks

      public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister par1IconRegister)
      Description copied from class: Block
      When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.
      Overrides:
      registerIcons in class Block