Class PistonShovelBlock

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

public class PistonShovelBlock extends Block
  • Field Details

  • Constructor Details

    • PistonShovelBlock

      public PistonShovelBlock(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
    • addCollisionBoxesToList

      public void addCollisionBoxesToList(World world, int i, int j, int k, AxisAlignedBB boundingBox, 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
    • 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
    • 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
    • collisionRayTrace

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

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

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

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

      public int getPistonShovelEjectDirection(World world, int i, int j, int k, int iToFacing)
      Description copied from class: Block
      returns the direction the shoveled block will go in if this block is moving towards iToFacing. return -1 if it's no shoveling is taking place.
      Overrides:
      getPistonShovelEjectDirection in class Block
    • getVerticalOrientation

      public int getVerticalOrientation(IBlockAccess blockAccess, int i, int j, int k)
      0 = down, 1 = up, 2 = side
    • getVerticalOrientation

      public int getVerticalOrientation(int iMetadata)
    • setVerticalOrientation

      public void setVerticalOrientation(World world, int i, int j, int k, int iLevel)
    • setVerticalOrientation

      public int setVerticalOrientation(int iMetadata, int iLevel)
    • 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
    • getIconByIndex

      @Environment(CLIENT) public Icon getIconByIndex(int iIndex)
      Description copied from class: Block
      Called by geometric primitives that FCModelBlock uses, to reference textures not associated with a specific block side.
      Overrides:
      getIconByIndex 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
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block