Class BlockMycelium

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockMycelium
Direct Known Subclasses:
MyceliumBlock

public class BlockMycelium extends Block
  • Constructor Details

    • BlockMycelium

      protected BlockMycelium(int par1)
  • Method Details

    • updateTick

      public void updateTick(World world, int x, int y, int z, Random rand)
      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
    • canEndermenPickUpBlock

      public boolean canEndermenPickUpBlock(World world, int x, int y, int z)
      Overrides:
      canEndermenPickUpBlock in class Block
    • idDropped

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

      public boolean dropComponentItemsOnBadBreak(World world, int x, int y, int z, int metadata, float chanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak in class Block
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int x, int y, int z, int metadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool in class Block
    • onBlockDestroyedByExplosion

      public void onBlockDestroyedByExplosion(World world, int x, int y, int z, 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
    • onNeighborDirtDugWithImproperTool

      protected void onNeighborDirtDugWithImproperTool(World world, int x, int y, int z, int toFacing)
      Overrides:
      onNeighborDirtDugWithImproperTool in class Block
    • canBePistonShoveled

      public boolean canBePistonShoveled(World world, int x, int y, int z)
      Overrides:
      canBePistonShoveled 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
    • canBeGrazedOn

      public boolean canBeGrazedOn(IBlockAccess blockAccess, int x, int y, int z, EntityAnimal animal)
      Overrides:
      canBeGrazedOn in class Block
    • onGrazed

      public void onGrazed(World world, int x, int y, int z, EntityAnimal animal)
      Overrides:
      onGrazed in class Block
    • onVegetationAboveGrazed

      public void onVegetationAboveGrazed(World world, int x, int y, int z, EntityAnimal animal)
      Overrides:
      onVegetationAboveGrazed in class Block
    • getCanBlightSpreadToBlock

      public boolean getCanBlightSpreadToBlock(World world, int x, int y, int z, int blightLevel)
      Overrides:
      getCanBlightSpreadToBlock in class Block
    • canConvertBlock

      public boolean canConvertBlock(ItemStack stack, World world, int x, int y, int z)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int x, int y, int z, int fromSide)
      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
    • isBreakableBarricade

      public boolean isBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker)
      Overrides:
      isBreakableBarricade in class Block
    • canMyceliumSurviveAtLocation

      public static boolean canMyceliumSurviveAtLocation(World world, int x, int y, int z)
    • checkForMyceliumSpreadFromLocation

      public static void checkForMyceliumSpreadFromLocation(World world, int x, int y, int z)
    • attempToSpreadMyceliumToLocation

      public static boolean attempToSpreadMyceliumToLocation(World world, int x, int y, int z)
    • isSparse

      public boolean isSparse(IBlockAccess blockAccess, int x, int y, int z)
    • isSparse

      public boolean isSparse(int metadata)
    • setSparse

      public void setSparse(World world, int x, int y, int z)
    • setFullyGrown

      public void setFullyGrown(World world, int x, int y, int z)
    • 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
    • getBlockTexture

      @Environment(CLIENT) public Icon getBlockTexture(IBlockAccess blockAccess, int x, int y, int z, int side)
      Description copied from class: Block
      Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side
      Overrides:
      getBlockTexture in class Block
    • getIcon

      public Icon getIcon(int side, int meta)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int x, int y, int z)
      Overrides:
      renderBlock in class Block
    • randomDisplayTick

      public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
      A randomly called display update to be able to add particles or other items for display
      Overrides:
      randomDisplayTick in class Block