Class HempCropBlock


public class HempCropBlock extends BlockCrops
  • Constructor Details

    • HempCropBlock

      public HempCropBlock(int iBlockID)
  • Method Details

    • idDropped

      public int idDropped(int iMetadata, Random random, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class BlockCrops
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • doesBlockDropAsItemOnSaw

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

      public boolean canBlockStay(World world, int i, int j, int k)
      Description copied from class: Block
      Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
      Overrides:
      canBlockStay in class BlockFlower
    • attemptToGrow

      protected void attemptToGrow(World world, int i, int j, int k, Random rand)
      Overrides:
      attemptToGrow in class BlockCrops
    • dropSeeds

      public void dropSeeds(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Overrides:
      dropSeeds in class BlockCrops
    • getSeedItem

      protected int getSeedItem()
      Description copied from class: BlockCrops
      Generate a seed ItemStack for this crop.
      Overrides:
      getSeedItem in class BlockCrops
    • getCropItem

      protected int getCropItem()
      Description copied from class: BlockCrops
      Generate a crop produce ItemStack for this crop.
      Overrides:
      getCropItem in class BlockCrops
    • getBaseGrowthChance

      public float getBaseGrowthChance(World world, int i, int j, int k)
      Overrides:
      getBaseGrowthChance in class BlockCrops
    • harvestBlock

      public void harvestBlock(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage. // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      harvestBlock in class Block
    • getIsTopBlock

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

      protected boolean getIsTopBlock(int iMetadata)
    • setIsTopBlock

      protected void setIsTopBlock(World world, int i, int j, int k, boolean bTop)
    • setIsTopBlock

      public static int setIsTopBlock(int iMetadata, boolean bTop)
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister register)
      Description copied from class: BlockCrops
      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 BlockCrops
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: BlockCrops
      // +++START EDIT+++ // ---END EDIT--- From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class BlockCrops
    • renderBlock

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