Class AestheticOpaqueEarthBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.AestheticOpaqueEarthBlock

public class AestheticOpaqueEarthBlock extends Block
  • Field Details

    • SUBTYPE_BLIGHT_LEVEL_0

      public static final int SUBTYPE_BLIGHT_LEVEL_0
      See Also:
    • SUBTYPE_BLIGHT_LEVEL_1

      public static final int SUBTYPE_BLIGHT_LEVEL_1
      See Also:
    • SUBTYPE_BLIGHT_LEVEL_2

      public static final int SUBTYPE_BLIGHT_LEVEL_2
      See Also:
    • SUBTYPE_BLIGHT_ROOTS_LEVEL_2

      public static final int SUBTYPE_BLIGHT_ROOTS_LEVEL_2
      See Also:
    • SUBTYPE_BLIGHT_LEVEL_3

      public static final int SUBTYPE_BLIGHT_LEVEL_3
      See Also:
    • SUBTYPE_BLIGHT_ROOTS_LEVEL_3

      public static final int SUBTYPE_BLIGHT_ROOTS_LEVEL_3
      See Also:
    • SUBTYPE_PACKED_EARTH

      public static final int SUBTYPE_PACKED_EARTH
      See Also:
    • SUBTYPE_DUNG

      public static final int SUBTYPE_DUNG
      See Also:
    • subtypeToBlightLevel

      public static final int[] subtypeToBlightLevel
    • blightLevelToSubtype

      public static final int[] blightLevelToSubtype
    • M_I_NUM_SUBTYPES

      public static final int M_I_NUM_SUBTYPES
      See Also:
  • Constructor Details

    • AestheticOpaqueEarthBlock

      public AestheticOpaqueEarthBlock(int iBlockID)
  • Method Details

    • 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
    • idDropped

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

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class Block
    • randomUpdateTick

      public void randomUpdateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Called on server only
      Overrides:
      randomUpdateTick in class Block
    • createStackedBlock

      protected ItemStack createStackedBlock(int iMetadata)
      Description copied from class: Block
      Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null. // +++START EDIT+++ FCNOTE: This is the function used to create the silk-touch drop // ---END EDIT---
      Overrides:
      createStackedBlock in class Block
    • getMovementModifier

      public float getMovementModifier(World world, int i, int j, int k)
      Overrides:
      getMovementModifier in class Block
    • getStepSoundInternal

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal 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
    • canDropFromExplosion

      public boolean canDropFromExplosion(Explosion par1Explosion)
      Description copied from class: Block
      Return whether this block can drop from an explosion.
      Overrides:
      canDropFromExplosion in class Block
    • onBlockDestroyedByExplosion

      public void onBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion explosion)
      Description copied from class: Block
      // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---
      Overrides:
      onBlockDestroyedByExplosion in class Block
    • canSaplingsGrowOnBlock

      public boolean canSaplingsGrowOnBlock(World world, int i, int j, int k)
      Overrides:
      canSaplingsGrowOnBlock in class Block
    • canBePistonShoveled

      public boolean canBePistonShoveled(World world, int i, int j, int k)
      Overrides:
      canBePistonShoveled in class Block
    • canConvertBlock

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int i, int j, int k, int iFromSide)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • isSurfaceBlightFromMetadata

      public boolean isSurfaceBlightFromMetadata(int iMetadata)
    • isBlightFromMetadata

      public boolean isBlightFromMetadata(int iMetadata)
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister register)
      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
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      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

      @Environment(CLIENT) public void getSubBlocks(int blockID, CreativeTabs creativeTabs, List list)
      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
    • getDamageValue

      @Environment(CLIENT) 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