Class PlanterBlockBase

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.PlanterBlockBase
Direct Known Subclasses:
PlanterBlock, PlanterBlockSoil

public class PlanterBlockBase extends Block
  • Field Details

    • PLANTER_WIDTH

      protected static final double PLANTER_WIDTH
      See Also:
    • PLANTER_HALF_WIDTH

      protected static final double PLANTER_HALF_WIDTH
      See Also:
    • PLANTER_BAND_HEIGHT

      protected static final double PLANTER_BAND_HEIGHT
      See Also:
    • PLANTER_BAND_HALF_HEIGHT

      protected static final double PLANTER_BAND_HALF_HEIGHT
      See Also:
    • iconTopSoilWet

      @Environment(CLIENT) protected Icon iconTopSoilWet
    • iconTopSoilWetFertilized

      @Environment(CLIENT) protected Icon iconTopSoilWetFertilized
  • Constructor Details

    • PlanterBlockBase

      protected PlanterBlockBase(int iBlockID)
  • Method Details

    • isOpaqueCube

      public boolean isOpaqueCube()
      Description copied from class: Block
      // +++START EDIT+++ // ---END EDIT--- Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
      Overrides:
      isOpaqueCube in class Block
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Description copied from class: Block
      If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
      Overrides:
      renderAsNormalBlock in class Block
    • onEntityCollidedWithBlock

      public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
      Description copied from class: Block
      Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
      Overrides:
      onEntityCollidedWithBlock in class Block
    • getPlantGrowthOnMultiplier

      public float getPlantGrowthOnMultiplier(World world, int i, int j, int k, Block plantBlock)
      Description copied from class: Block
      This is used by old style non-daily plant growth
      Overrides:
      getPlantGrowthOnMultiplier in class Block
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
      Overrides:
      collisionRayTrace in class Block
    • getMovementModifier

      public float getMovementModifier(World world, int i, int j, int k)
      Overrides:
      getMovementModifier in class Block
    • hasCenterHardPointToFacing

      public boolean hasCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      medium sized attachment points like the top of fence posts (approx 1/4 block width)
      Overrides:
      hasCenterHardPointToFacing 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 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
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered in class Block
    • renderFilledPlanterInvBlock

      @Environment(CLIENT) protected void renderFilledPlanterInvBlock(RenderBlocks renderer, Block block, int iItemDamage)
    • renderFilledPlanterBlock

      @Environment(CLIENT) protected boolean renderFilledPlanterBlock(RenderBlocks renderer, int i, int j, int k)
    • getSelectedBoundingBoxFromPool

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