Class AestheticOpaqueBlock

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

public class AestheticOpaqueBlock extends Block
  • Field Details

  • Constructor Details

    • AestheticOpaqueBlock

      public AestheticOpaqueBlock(int blockID)
  • Method Details

    • damageDropped

      public int damageDropped(int metadata)
      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 metadata, Random random, int fortuneModifier)
      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 metadata, float chance, int fortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class Block
    • canSilkHarvest

      protected boolean canSilkHarvest(int metadata)
      Overrides:
      canSilkHarvest in class Block
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int changedBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • doesInfiniteBurnToFacing

      public boolean doesInfiniteBurnToFacing(IBlockAccess blockAccess, int i, int j, int k, int facing)
      Overrides:
      doesInfiniteBurnToFacing in class Block
    • doesBlockBreakSaw

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

      public boolean onBlockSawed(World world, int i, int j, int k)
      Overrides:
      onBlockSawed 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
    • canBePistonShoveled

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

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

      public boolean canBlockSuffocateEntity(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      canBlockSuffocateEntity in class Block
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int x, int y, int z)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • 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 side, int metaData)
      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
    • idPicked

      @Environment(CLIENT) public int idPicked(World world, int x, int y, int z)
      Description copied from class: Block
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---
      Overrides:
      idPicked 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
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int i, int j, int k, int side)
      Overrides:
      shouldSideBeRendered in class Block