Class LegacyCornerBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.legacy.LegacyCornerBlock

public class LegacyCornerBlock extends Block
  • Field Details

  • Constructor Details

    • LegacyCornerBlock

      public LegacyCornerBlock(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
    • 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
    • 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
    • getBlockBoundsFromPoolBasedOnState

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

      public boolean doesBlockBreakSaw(World world, int i, int j, int k)
      Overrides:
      doesBlockBreakSaw 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
    • getFurnaceBurnTime

      public int getFurnaceBurnTime(int iItemDamage)
      Overrides:
      getFurnaceBurnTime in class Block
    • getCornerAlignment

      public int getCornerAlignment(IBlockAccess iBlockAccess, int i, int j, int k)
    • setCornerAlignment

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

      public void setCornerAlignment(World world, int i, int j, int k, boolean bIAligned, boolean bJAligned, boolean bKAligned)
    • setCornerAlignmentInMetadata

      public int setCornerAlignmentInMetadata(int iMetadata, int iAlignment)
    • setCornerAlignmentInMetadata

      public int setCornerAlignmentInMetadata(int iMetadata, boolean bIAligned, boolean bJAligned, boolean bKAligned)
    • isXOffset

      public boolean isXOffset(IBlockAccess iBlockAccess, int i, int j, int k)
    • isXOffset

      public boolean isXOffset(int iMetadata)
    • isYOffset

      public boolean isYOffset(IBlockAccess iBlockAccess, int i, int j, int k)
    • isYOffset

      public boolean isYOffset(int iMetadata)
    • isZOffset

      public boolean isZOffset(IBlockAccess iBlockAccess, int i, int j, int k)
    • isZOffset

      public boolean isZOffset(int iMetadata)
    • getIsStone

      public boolean getIsStone(IBlockAccess iBlockAccess, int i, int j, int k)
    • setIsStone

      public void setIsStone(World world, int i, int j, int k, boolean bStone)
    • 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
    • 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
    • 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