Class PlanterBlock


public class PlanterBlock extends PlanterBlockBase
  • Field Details

  • Constructor Details

    • PlanterBlock

      public PlanterBlock(int iBlockID)
  • Method Details

    • damageDropped

      public int damageDropped(int iMetadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random random)
      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 Block
    • attemptToApplyFertilizerTo

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

      public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class PlanterBlockBase
    • canDomesticatedCropsGrowOnBlock

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

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

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

      public boolean canWildVegetationGrowOnBlock(World world, int i, int j, int k)
      Description copied from class: Block
      Covers stuff like flowers and tall grass
      Overrides:
      canWildVegetationGrowOnBlock in class Block
    • canNetherWartGrowOnBlock

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

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

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

      public boolean isConsideredNeighbouringWaterForReedGrowthOn(World world, int i, int j, int k)
      Overrides:
      isConsideredNeighbouringWaterForReedGrowthOn 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
    • getPlanterType

      public int getPlanterType(IBlockAccess blockAccess, int i, int j, int k)
    • setPlanterType

      public void setPlanterType(World world, int i, int j, int k, int iType)
    • getPlanterTypeFromMetadata

      public int getPlanterTypeFromMetadata(int iMetadata)
    • getGrassGrowthState

      public int getGrassGrowthState(IBlockAccess blockAccess, int i, int j, int k)
    • setGrassGrowthState

      public void setGrassGrowthState(World world, int i, int j, int k, int iGrowthState)
    • 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 PlanterBlockBase
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int blockID, CreativeTabs creativeTabs, List list)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderBlocks, int i, int j, int k)
      Overrides:
      renderBlock in class Block
    • renderEmptyPlanterBlock

      @Environment(CLIENT) public static boolean renderEmptyPlanterBlock(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block)
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block
    • renderEmptyPlanterInvBlock

      @Environment(CLIENT) public static void renderEmptyPlanterInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage)