Class MyceliumSlabBlock


public class MyceliumSlabBlock extends AttachedSlabBlock
  • Constructor Details

    • MyceliumSlabBlock

      public MyceliumSlabBlock(int iBlockID)
  • 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
    • 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
    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int x, int y, int z, int iMetadata, float fChanceOfDrop)
      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
    • attemptToCombineWithFallingEntity

      public boolean attemptToCombineWithFallingEntity(World world, int x, int y, int z, EntityFallingSand entity)
      Description copied from class: Block
      returns true if the block has combined with the entity
      Overrides:
      attemptToCombineWithFallingEntity in class Block
    • onAnchorBlockLost

      protected void onAnchorBlockLost(World world, int x, int y, int z)
      Specified by:
      onAnchorBlockLost in class AttachedSlabBlock
    • getCombinedBlockID

      public int getCombinedBlockID(int metadata)
      Specified by:
      getCombinedBlockID in class SlabBlock
    • canBePistonShoveled

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

      protected boolean canSilkHarvest()
      Description copied from class: Block
      Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
      Overrides:
      canSilkHarvest 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 SlabBlock
    • 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
    • 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
    • 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
    • revertToDirt

      public void revertToDirt(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
    • getIcon

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

      @Environment(CLIENT) public void randomDisplayTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      A randomly called display update to be able to add particles or other items for display
      Overrides:
      randomDisplayTick in class Block