Class SidingAndCornerAndDecorativeBlock

java.lang.Object
net.minecraft.src.Block
api.block.blocks.SidingAndCornerBlock
api.block.blocks.SidingAndCornerAndDecorativeBlock
Direct Known Subclasses:
SidingAndCornerAndDecorativeWallBlock, WoodSidingAndCornerAndDecorativeBlock

public class SidingAndCornerAndDecorativeBlock extends SidingAndCornerBlock
  • Field Details

  • Constructor Details

    • SidingAndCornerAndDecorativeBlock

      public SidingAndCornerAndDecorativeBlock(int iBlockID, Material material, String sTextureName, float fHardness, float fResistance, StepSound stepSound, String name)
  • Method Details

    • addCollisionBoxesToList

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

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class SidingAndCornerBlock
    • collisionRayTrace

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

      public int damageDropped(int iMetadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class SidingAndCornerBlock
    • getBlocksMovement

      public boolean getBlocksMovement(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      FCNOTE: This is misnamed and returns true if the block *doesn't* block movement
      Overrides:
      getBlocksMovement in class Block
    • canGroundCoverRestOnBlock

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

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

      public int getWeightOnPathBlocked(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getWeightOnPathBlocked in class Block
    • getFacing

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

      public int setFacing(int iMetadata, int iFacing)
      Overrides:
      setFacing in class SidingAndCornerBlock
    • canRotateOnTurntable

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

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

      public int rotateMetadataAroundYAxis(int iMetadata, boolean bReverse)
      Overrides:
      rotateMetadataAroundYAxis in class SidingAndCornerBlock
    • toggleFacing

      public boolean toggleFacing(World world, int i, int j, int k, boolean bReverse)
      Description copied from class: Block
      Cycle through all the possible facings for a block returns true if the facing has actually changed as a result of this call
      Overrides:
      toggleFacing in class SidingAndCornerBlock
    • mobSpawnOnVerticalOffset

      public float mobSpawnOnVerticalOffset(World world, int i, int j, int k)
      Overrides:
      mobSpawnOnVerticalOffset in class SidingAndCornerBlock
    • isFence

      public boolean isFence(int metadata)
      Overrides:
      isFence in class Block
    • isBenchOrTable

      public boolean isBenchOrTable(int metadata)
      Overrides:
      isBenchOrTable in class Block
    • shouldWallFormPostBelowThisBlock

      public boolean shouldWallFormPostBelowThisBlock(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      shouldWallFormPostBelowThisBlock in class Block
    • onBlockActivated

      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
      Description copied from class: Block
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • canLeashKnotOnBlock

      public boolean canLeashKnotOnBlock(World world, int x, int y, int z)
      Overrides:
      canLeashKnotOnBlock in class Block
    • isDecorative

      public boolean isDecorative(IBlockAccess blockAccess, int i, int j, int k)
    • isDecorativeFromMetadata

      public static boolean isDecorativeFromMetadata(int iMetadata)
    • getBlockBoundsFromPoolForBench

      public AxisAlignedBB getBlockBoundsFromPoolForBench(IBlockAccess blockAccess, int i, int j, int k)
    • getBlockBoundsFromPoolForFence

      public AxisAlignedBB getBlockBoundsFromPoolForFence(IBlockAccess blockAccess, int i, int j, int k)
    • addCollisionBoxesToListForFence

      public void addCollisionBoxesToListForFence(World world, int i, int j, int k, AxisAlignedBB intersectingBox, List list, Entity entity)
    • doesBenchHaveLeg

      public boolean doesBenchHaveLeg(IBlockAccess blockAccess, int i, int j, int k)
    • isBlockBench

      public boolean isBlockBench(IBlockAccess blockAccess, int i, int j, int k)
    • collisionRayTraceBenchWithLeg

      public MovingObjectPosition collisionRayTraceBenchWithLeg(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
    • collisionRayTraceFence

      public MovingObjectPosition collisionRayTraceFence(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class SidingAndCornerBlock
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered in class SidingAndCornerBlock
    • 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 SidingAndCornerBlock
    • renderBench

      @Environment(CLIENT) public boolean renderBench(RenderBlocks renderBlocks, int i, int j, int k)
    • renderBenchInvBlock

      @Environment(CLIENT) public void renderBenchInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage)
    • renderFence

      @Environment(CLIENT) public boolean renderFence(RenderBlocks renderBlocks, int i, int j, int k)
    • renderFenceInvBlock

      @Environment(CLIENT) public void renderFenceInvBlock(RenderBlocks renderBlocks, Block block, int itemDamage)