Class WheatCropBlock


public class WheatCropBlock extends DailyGrowthCropsBlock
  • Constructor Details

    • WheatCropBlock

      public WheatCropBlock(int iBlockID)
  • Method Details

    • getSeedItemID

      protected int getSeedItemID()
      Specified by:
      getSeedItemID in class CropsBlock
    • getCropItemID

      protected int getCropItemID()
      Specified by:
      getCropItemID in class CropsBlock
    • isBlockHydratedForPlantGrowthOn

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

      protected void incrementGrowthLevel(World world, int i, int j, int k)
      Overrides:
      incrementGrowthLevel in class CropsBlock
    • groundCoverRestingOnVisualOffset

      public float groundCoverRestingOnVisualOffset(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      groundCoverRestingOnVisualOffset in class PlantsBlock
    • 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
    • getLightLevelForGrowth

      protected int getLightLevelForGrowth()
      Overrides:
      getLightLevelForGrowth in class CropsBlock
    • requiresNaturalLight

      protected boolean requiresNaturalLight()
      Overrides:
      requiresNaturalLight in class CropsBlock
    • hasTopBlock

      public boolean hasTopBlock(IBlockAccess blockAccess, int i, int j, int k)
    • getTopBlockGrowthLevel

      public int getTopBlockGrowthLevel(IBlockAccess blockAccess, int i, int j, int k)
      Assumes the block above is a wheat top
    • 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 i, int j, int k, int iSide)
      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
    • getSelectedBoundingBoxFromPool

      @Environment(CLIENT) public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z)
      Overrides:
      getSelectedBoundingBoxFromPool in class Block