Class PlanterBlockSoil


public class PlanterBlockSoil extends PlanterBlockBase
  • Constructor Details

    • PlanterBlockSoil

      public PlanterBlockSoil(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 Block
    • attemptToApplyFertilizerTo

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

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

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

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

      public boolean canWildVegetationGrowOnBlock(World world, int i, int j, int k)
      Description copied from class: Block
      Covers stuff like flowers and tall grass
      Overrides:
      canWildVegetationGrowOnBlock in class Block
    • canCactusGrowOnBlock

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

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

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

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

      public void notifyOfFullStagePlantGrowthOn(World world, int i, int j, int k, Block plantBlock)
      Description copied from class: Block
      Called when a plant hits a full growth stage, like wheat fully grown, or each full block of Hemp. Used to clear fertilizer.
      Overrides:
      notifyOfFullStagePlantGrowthOn in class Block
    • hasIrrigatingBlocks

      protected boolean hasIrrigatingBlocks(World world, int i, int j, int k)
    • getIsHydrated

      protected boolean getIsHydrated(IBlockAccess blockAccess, int i, int j, int k)
    • getIsHydrated

      protected boolean getIsHydrated(int iMetadata)
    • setIsHydrated

      protected void setIsHydrated(World world, int i, int j, int k, boolean bHydrated)
    • setIsHydrated

      protected int setIsHydrated(int iMetadata, boolean bHydrated)
    • getIsFertilized

      protected boolean getIsFertilized(IBlockAccess blockAccess, int i, int j, int k)
    • getIsFertilized

      protected boolean getIsFertilized(int iMetadata)
    • setIsFertilized

      protected void setIsFertilized(World world, int i, int j, int k, boolean bFertilized)
    • setIsFertilized

      protected int setIsFertilized(int iMetadata, boolean bFertilized)
    • 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 PlanterBlockBase
    • 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
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class Block
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderer, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block