Class StairsBlockBase

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.StairsBlockBase
Direct Known Subclasses:
StairsBlock

public class StairsBlockBase extends Block
  • Constructor Details

    • StairsBlockBase

      protected StairsBlockBase(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
    • getRenderType

      public int getRenderType()
      Description copied from class: Block
      The type of render function that is called for this block
      Overrides:
      getRenderType in class Block
    • preBlockPlacedBy

      public int preBlockPlacedBy(World world, int i, int j, int k, int iMetadata, EntityLivingBase entityBy)
      Description copied from class: Block
      Similar to onBlockPlacedBy() but called before the block is placed rather than after
      Overrides:
      preBlockPlacedBy in class Block
    • onBlockPlaced

      public int onBlockPlaced(World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ, int iMetadata)
      Description copied from class: Block
      Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
      Overrides:
      onBlockPlaced in class Block
    • addCollisionBoxesToList

      public void addCollisionBoxesToList(World world, int i, int j, int k, AxisAlignedBB intersectingBox, List list, Entity entity)
      Description copied from class: Block
      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 // +++START EDIT+++ FCNOTE: The "mask" referred to above is just the bounding box to check for intersection with // ---END EDIT---
      Overrides:
      addCollisionBoxesToList in class Block
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startVec, Vec3 endVec)
      Overrides:
      collisionRayTrace 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
    • isStairBlock

      public boolean isStairBlock()
      Description copied from class: Block
      Used to determine if this is a stair block for purposes of connecting visually to others
      Overrides:
      isStairBlock in class Block
    • canSilkHarvest

      protected boolean canSilkHarvest()
      Description copied from class: Block
      Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
      Overrides:
      canSilkHarvest in class Block
    • hasContactPointToFullFace

      public boolean hasContactPointToFullFace(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
      Overrides:
      hasContactPointToFullFace in class Block
    • hasContactPointToSlabSideFace

      public boolean hasContactPointToSlabSideFace(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIsSlabUpsideDown)
      Overrides:
      hasContactPointToSlabSideFace in class Block
    • hasContactPointToStairNarrowVerticalFace

      public boolean hasContactPointToStairNarrowVerticalFace(IBlockAccess blockAccess, int i, int j, int k, int iFacing, int iStairFacing)
      Description copied from class: Block
      This method refers to the half-block shaped top or bottom of stair blocks.
      Overrides:
      hasContactPointToStairNarrowVerticalFace in class Block
    • hasNeighborWithMortarInContact

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

      public boolean canRotateOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canRotateOnTurntable in class Block
    • canTransmitRotationVerticallyOnTurntable

      public boolean canTransmitRotationVerticallyOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canTransmitRotationVerticallyOnTurntable in class Block
    • rotateMetadataAroundYAxis

      public int rotateMetadataAroundYAxis(int iMetadata, boolean bReverse)
      Overrides:
      rotateMetadataAroundYAxis in class Block
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int i, int j, int k)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • validateMetadataForLocation

      protected int validateMetadataForLocation(World world, int i, int j, int k, int iMetadata)
    • hasNeighborWithMortarInContact

      public boolean hasNeighborWithMortarInContact(World world, int i, int j, int k, int iFacing, boolean bIsUpsideDown)
    • convertDirectionToFacing

      protected int convertDirectionToFacing(int iDirection)
    • getBoundsFromPoolForBase

      protected AxisAlignedBB getBoundsFromPoolForBase(IBlockAccess blockAccess, int i, int j, int k)
    • getBoundsFromPoolForBase

      protected AxisAlignedBB getBoundsFromPoolForBase(int iMetadata)
    • getBoundsForSecondaryPiece

      protected boolean getBoundsForSecondaryPiece(IBlockAccess blockAccess, int i, int j, int k, AxisAlignedBB box)
    • getBoundsFromPoolForSecondaryPiece

      protected AxisAlignedBB getBoundsFromPoolForSecondaryPiece(int iMetadata)
    • getBoundsForTertiaryPiece

      protected int getBoundsForTertiaryPiece(IBlockAccess blockAccess, int i, int j, int k, AxisAlignedBB box)
      Returns the facing of the piece if it exists, -1 otherwise
    • isStairBlock

      protected boolean isStairBlock(int iBlockID)
    • getIsUpsideDown

      protected boolean getIsUpsideDown(IBlockAccess blockAccess, int i, int j, int k)
    • getIsUpsideDown

      protected boolean getIsUpsideDown(int iMetadata)
    • setUpsideDown

      protected int setUpsideDown(int iMetadata)
    • setIsUpsideDown

      protected int setIsUpsideDown(int iMetadata, boolean bUpsideDown)
    • setIsUpsideDown

      protected void setIsUpsideDown(World world, int i, int j, int k, boolean bUpsideDown)
    • setDirection

      protected void setDirection(World world, int i, int j, int k, int iDirection)
    • setDirection

      protected int setDirection(int iMetadata, int iDirection)
    • getDirection

      protected int getDirection(IBlockAccess blockAccess, int i, int j, int k)
    • getDirection

      protected int getDirection(int iMetadata)
    • isStairBlockWithMetadata

      protected boolean isStairBlockWithMetadata(IBlockAccess blockAccess, int i, int j, int k, int iMetadata)
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      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
    • shouldRenderNeighborHalfSlabSide

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

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