Class BlockLilyPad


public class BlockLilyPad extends BlockFlower
  • Constructor Details

    • BlockLilyPad

      protected BlockLilyPad(int par1)
  • Method Details

    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType in class BlockFlower
    • addCollisionBoxesToList

      public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
      Adds all intersecting collision boxes to a list. (Be sure to only add boxes to the list if they intersect the mask.) Parameters: World, X, Y, Z, mask, list, colliding entity
      Overrides:
      addCollisionBoxesToList in class Block
    • getBlockColor

      public int getBlockColor()
      Overrides:
      getBlockColor in class Block
    • getRenderColor

      public int getRenderColor(int par1)
      Returns the color this block should be rendered. Used by leaves.
      Overrides:
      getRenderColor in class Block
    • colorMultiplier

      public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.
      Overrides:
      colorMultiplier in class Block
    • canBlockStay

      public boolean canBlockStay(World par1World, int par2, int par3, int par4)
      Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
      Overrides:
      canBlockStay in class BlockFlower
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Description copied from class: BlockFlower
      // +++START EDIT+++ // ---END EDIT--- Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused)
      Overrides:
      getCollisionBoundingBoxFromPool in class BlockFlower
    • canGrowOnBlock

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

      public boolean canGroundCoverRestOnBlock(World world, int i, int j, int k)
      Overrides:
      canGroundCoverRestOnBlock in class PlantsBlock
    • canBlocksBePlacedAgainstThisBlock

      public boolean canBlocksBePlacedAgainstThisBlock(World world, int x, int y, int z)
      Overrides:
      canBlocksBePlacedAgainstThisBlock in class Block
    • renderBlock

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