Class PlacedShaftBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.PlacedShaftBlock

public class PlacedShaftBlock extends Block
  • Field Details

  • Constructor Details

    • PlacedShaftBlock

      public PlacedShaftBlock(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
    • canPlaceBlockOnSide

      public boolean canPlaceBlockOnSide(World world, int i, int j, int k, int iSide)
      Description copied from class: Block
      checks to see if you can place this block can be placed on that side of a block: BlockLever overrides
      Overrides:
      canPlaceBlockOnSide 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
    • idDropped

      public int idDropped(int iMetaData, Random random, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState 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
    • hasSmallCenterHardPointToFacing

      public boolean hasSmallCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      small attachment surfaces, like those required for the bottom of a torch (approx 1/8 block width)
      Overrides:
      hasSmallCenterHardPointToFacing in class Block
    • canBeCrushedByFallingEntity

      public boolean canBeCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      canBeCrushedByFallingEntity in class Block
    • onCrushedByFallingEntity

      public void onCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      onCrushedByFallingEntity in class Block
    • getFacing

      public int getFacing(int iMetadata)
      Overrides:
      getFacing in class Block
    • setFacing

      public int setFacing(int iMetadata, int iFacing)
      Overrides:
      setFacing in class Block
    • canRotateAroundBlockOnTurntableToFacing

      public boolean canRotateAroundBlockOnTurntableToFacing(World world, int i, int j, int k, int iFacing)
      Overrides:
      canRotateAroundBlockOnTurntableToFacing in class Block
    • getNewMetadataRotatedAroundBlockOnTurntableToFacing

      public int getNewMetadataRotatedAroundBlockOnTurntableToFacing(World world, int i, int j, int k, int iInitialFacing, int iRotatedFacing)
      Overrides:
      getNewMetadataRotatedAroundBlockOnTurntableToFacing in class Block
    • canGroundCoverRestOnBlock

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

      public float groundCoverRestingOnVisualOffset(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      groundCoverRestingOnVisualOffset in class Block
    • onNeighborDisrupted

      public void onNeighborDisrupted(World world, int i, int j, int k, int iToFacing)
      Overrides:
      onNeighborDisrupted in class Block
    • canStickInBlockType

      public boolean canStickInBlockType(int iBlockID)
    • isSupportingOtherBlock

      public boolean isSupportingOtherBlock(IBlockAccess blockAccess, int i, int j, int k)
    • idPicked

      @Environment(CLIENT) public int idPicked(World world, int i, int j, int k)
      Description copied from class: Block
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---
      Overrides:
      idPicked in class Block
    • shouldSideBeRendered

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

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

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