Class MouldingAndDecorativeBlock

java.lang.Object
net.minecraft.src.Block
api.block.blocks.MouldingBlock
api.block.blocks.MouldingAndDecorativeBlock
Direct Known Subclasses:
MouldingAndDecorativeWallBlock, WoodMouldingAndDecorativeBlock

public class MouldingAndDecorativeBlock extends MouldingBlock
  • Field Details

  • Constructor Details

    • MouldingAndDecorativeBlock

      public MouldingAndDecorativeBlock(int iBlockID, Material material, String sTextureName, String sColumnSideTextureName, int iMatchingCornerBlockID, float fHardness, float fResistance, StepSound stepSound, String name)
    • MouldingAndDecorativeBlock

      public MouldingAndDecorativeBlock(int iBlockID, Material material, String sTextureName, String sColumnSideTextureName, String sColumnTopAndBottomTextureName, String sPedestalSideTextureName, String sPedestalTopAndBottomTextureName, int iMatchingCornerBlockID, float fHardness, float fResistance, StepSound stepSound, String name)
  • Method Details

    • 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 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 MouldingBlock
    • getBlockBoundsFromPoolBasedOnState

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

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

      public int rotateMetadataAroundYAxis(int iMetadata, boolean bReverse)
      Overrides:
      rotateMetadataAroundYAxis in class MouldingBlock
    • 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 MouldingBlock
    • 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
    • mobSpawnOnVerticalOffset

      public float mobSpawnOnVerticalOffset(World world, int i, int j, int k)
      Overrides:
      mobSpawnOnVerticalOffset in class MouldingBlock
    • 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
    • isMouldingOfSameType

      protected boolean isMouldingOfSameType(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      isMouldingOfSameType in class MouldingBlock
    • isDecorative

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

      public boolean isDecorative(int iMetadata)
    • isBlockTable

      public boolean isBlockTable(IBlockAccess blockAccess, int i, int j, int k)
    • doesTableHaveLeg

      public boolean doesTableHaveLeg(IBlockAccess blockAccess, int i, int j, int k)
    • collisionRayTraceTableWithLeg

      public MovingObjectPosition collisionRayTraceTableWithLeg(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 Block
    • 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 MouldingBlock
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • renderBlock

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

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

      @Environment(CLIENT) protected void renderDecorativeInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage, float fBrightness)
      The block param is necessary here as the wood item stubs use them to specify what block type they represent.
    • getSelectedBoundingBoxFromPool

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

      @Environment(CLIENT) public boolean renderPedestalUp(RenderBlocks renderBlocks, int i, int j, int k)
    • renderPedestalUpInvBlock

      @Environment(CLIENT) public void renderPedestalUpInvBlock(RenderBlocks renderBlocks, Block block)
    • renderPedestalDown

      @Environment(CLIENT) public boolean renderPedestalDown(RenderBlocks renderBlocks, int i, int j, int k)
    • renderPedestalDownInvBlock

      @Environment(CLIENT) public void renderPedestalDownInvBlock(RenderBlocks renderBlocks, Block block)
    • renderTable

      @Environment(CLIENT) public boolean renderTable(RenderBlocks renderBlocks, int i, int j, int k)
    • renderTableInvBlock

      @Environment(CLIENT) public void renderTableInvBlock(RenderBlocks renderBlocks, Block block)