Class MouldingBlock

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

public class MouldingBlock extends Block
  • Field Details

    • MOULDING_WIDTH

      protected static final double MOULDING_WIDTH
      See Also:
    • MOULDING_HALF_WIDTH

      protected static final double MOULDING_HALF_WIDTH
      See Also:
    • MOULDING_LENGTH

      protected static final double MOULDING_LENGTH
      See Also:
    • matchingCornerBlockID

      protected int matchingCornerBlockID
  • Constructor Details

    • MouldingBlock

      protected MouldingBlock(int iBlockID, Material material, String sTextureName, int iMatchingCornerBlockID, float fHardness, float fResistance, StepSound stepSound, String name)
  • 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
    • collisionRayTrace

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

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

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

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

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

      public AxisAlignedBB getBlockBoundsFromPoolForAlignment(int iAlignment)
    • isMouldingOfSameType

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

      public int getMouldingAlignment(IBlockAccess iBlockAccess, int i, int j, int k)
    • getMouldingAlignmentFromMetadata

      public int getMouldingAlignmentFromMetadata(int iMetadata)
    • setMouldingAlignment

      public void setMouldingAlignment(World world, int i, int j, int k, int iAlignment)
    • setMouldingAlignmentInMetadata

      public int setMouldingAlignmentInMetadata(int iMetadata, int iAlignment)
    • 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
    • shouldSideBeRendered

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

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

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