Class FarmlandBlockFertilized


public class FarmlandBlockFertilized extends FarmlandBlock
  • Constructor Details

    • FarmlandBlockFertilized

      public FarmlandBlockFertilized(int iBlockID)
  • Method Details

    • getPlantGrowthOnMultiplier

      public float getPlantGrowthOnMultiplier(World world, int i, int j, int k, Block plantBlock)
      Description copied from class: Block
      This is used by old style non-daily plant growth
      Overrides:
      getPlantGrowthOnMultiplier 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
    • isFertilized

      protected boolean isFertilized(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      isFertilized in class FarmlandBlock
    • 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 FarmlandBlockBase