Class GroundCoverBlock

java.lang.Object
net.minecraft.src.Block
api.block.blocks.GroundCoverBlock
Direct Known Subclasses:
AshGroundCoverBlock, ItemGroundCoverBlock, SnowCoverBlock

public class GroundCoverBlock extends Block
  • Field Details

  • Constructor Details

    • GroundCoverBlock

      protected GroundCoverBlock(int iBlockID, Material material)
  • 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
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int i, int j, int k)
      Description copied from class: Block
      Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
      Overrides:
      canPlaceBlockAt in class Block
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iNeighborBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • collisionRayTrace

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

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • isGroundCover

      public boolean isGroundCover()
      Overrides:
      isGroundCover in class Block
    • clearAnyGroundCoverRestingOnBlock

      public static void clearAnyGroundCoverRestingOnBlock(World world, int i, int j, int k)
    • isGroundCoverRestingOnBlock

      public static boolean isGroundCoverRestingOnBlock(World world, int i, int j, int k)
    • onSelfRemoval

      public void onSelfRemoval(World world, int i, int j, int k)
    • clientBreakBlock

      @Environment(CLIENT) public void clientBreakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Overrides:
      clientBreakBlock in class Block
    • getSelectedBoundingBoxFromPool

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

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderBlocks, int x, int y, int z)
      Overrides:
      renderBlock in class Block
    • shouldSideBeRendered

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

      @Environment(CLIENT) public boolean shouldRenderNeighborFullFaceSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSide)
      Overrides:
      shouldRenderNeighborFullFaceSide in class Block