Class GourdBlock

Direct Known Subclasses:
MelonBlock, PumpkinBlock

public abstract class GourdBlock extends FallingBlock
  • Field Details

    • iconTop

      @Environment(CLIENT) protected Icon iconTop
  • Constructor Details

    • GourdBlock

      protected GourdBlock(int iBlockID)
  • Method Details

    • updateTick

      public void updateTick(World world, int i, int j, int k, 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 FallingBlock
    • canEndermenPickUpBlock

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

      public int getMobilityFlag()
      Description copied from class: Block
      Returns the mobility information of the block, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons // +++START EDIT+++ FCMOD: 3 = can be piston shoveled, but free otherwise // ---END EDIT---
      Overrides:
      getMobilityFlag in class Block
    • onArrowImpact

      public void onArrowImpact(World world, int i, int j, int k, EntityArrow arrow)
      Overrides:
      onArrowImpact 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
    • onFinishedFalling

      public boolean onFinishedFalling(EntityFallingSand entity, float fFallDistance)
      Description copied from class: Block
      returns true if the block still exists
      Overrides:
      onFinishedFalling in class Block
    • onPrePistonMove

      public int onPrePistonMove(World world, int i, int j, int k, int direction, int meta, int moveType)
      Description copied from class: Block
      New API to replace adjustMetadataForPistonMove. Returns the metadata for the moving piston tile entity. Move types: 0 = push, 1 = pull, 2 = shovel
      Overrides:
      onPrePistonMove in class Block
    • isBlockAttachedToFacing

      public boolean isBlockAttachedToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
      Description copied from class: Block
      returns true if block is attached to a block in a particular direction. Example: pumpkins attached to stems
      Overrides:
      isBlockAttachedToFacing in class Block
    • attachToFacing

      public void attachToFacing(World world, int i, int j, int k, int iFacing)
      Overrides:
      attachToFacing in class Block
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iBlockID)
      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 FallingBlock
    • canBeGrazedOn

      public boolean canBeGrazedOn(IBlockAccess access, int i, int j, int k, EntityAnimal animal)
      Overrides:
      canBeGrazedOn in class Block
    • isBreakableBarricade

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

      protected abstract Item itemToDropOnExplode()
    • itemCountToDropOnExplode

      protected abstract int itemCountToDropOnExplode()
    • auxFXIDOnExplode

      protected abstract int auxFXIDOnExplode()
    • getFallDamageSource

      protected abstract DamageSource getFallDamageSource()
    • validateConnectionState

      protected void validateConnectionState(World world, int i, int j, int k)
    • 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