Class WheatCropTopBlock


public class WheatCropTopBlock extends DailyGrowthCropsBlock
  • Constructor Details

    • WheatCropTopBlock

      public WheatCropTopBlock(int iBlockID)
  • Method Details

    • doesBlockDropAsItemOnSaw

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

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

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

      protected boolean isFullyGrown(int iMetadata)
      Overrides:
      isFullyGrown in class CropsBlock
    • canGrowOnBlock

      protected boolean canGrowOnBlock(World world, int i, int j, int k)
      Overrides:
      canGrowOnBlock in class CropsBlock
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class CropsBlock
    • breakBlock

      public void breakBlock(World world, int x, int y, int z, int blockID, int metadata)
      Description copied from class: Block
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata ??ejects contained items into the world, and notifies neighbours of an update, as appropriate?? // +++START EDIT+++ FCNOTE: Called on server only. Called AFTER block is set, so it is no longer valid at pos. // ---END EDIT---
      Overrides:
      breakBlock in class PlantsBlock
    • updateFlagForGrownToday

      protected void updateFlagForGrownToday(World world, int i, int j, int k)
      Overrides:
      updateFlagForGrownToday in class DailyGrowthCropsBlock
    • requiresNaturalLight

      protected boolean requiresNaturalLight()
      Overrides:
      requiresNaturalLight in class CropsBlock
    • 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
    • renderBlock

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

      @Environment(CLIENT) public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getSelectedBoundingBoxFromPool in class Block