Class HempCropBlockRoots


public class HempCropBlockRoots extends DailyGrowthCropsBlock
  • Constructor Details

    • HempCropBlockRoots

      public HempCropBlockRoots(int iBlockID)
  • Method Details

    • getCropItemID

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

      protected int getSeedItemID()
      Specified by:
      getSeedItemID in class CropsBlock
    • 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 CropsBlock
    • attemptToGrowTop

      protected void attemptToGrowTop(World world, int x, int y, int z, Random rand)
    • 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
    • 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
    • renderBlock

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