Class AestheticNonOpaqueBlock

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

public class AestheticNonOpaqueBlock extends Block
  • Field Details

    • SUBTYPE_URN

      public static final int SUBTYPE_URN
      See Also:
    • SUBTYPE_COLUMN

      public static final int SUBTYPE_COLUMN
      See Also:
    • SUBTYPE_PEDESTAL_UP

      public static final int SUBTYPE_PEDESTAL_UP
      See Also:
    • SUBTYPE_PEDESTAL_DOWN

      public static final int SUBTYPE_PEDESTAL_DOWN
      See Also:
    • SUBTYPE_TABLE

      public static final int SUBTYPE_TABLE
      See Also:
    • SUBTYPE_WICKER_SLAB

      public static final int SUBTYPE_WICKER_SLAB
      See Also:
    • SUBTYPE_GRATE

      public static final int SUBTYPE_GRATE
      See Also:
    • SUBTYPE_WICKER

      public static final int SUBTYPE_WICKER
      See Also:
    • SUBTYPE_SLATS

      public static final int SUBTYPE_SLATS
      See Also:
    • SUBTYPE_WICKER_SLAB_UPSIDE_DOWN

      public static final int SUBTYPE_WICKER_SLAB_UPSIDE_DOWN
      See Also:
    • SUBTYPE_WHITE_COBBLE_SLAB

      public static final int SUBTYPE_WHITE_COBBLE_SLAB
      See Also:
    • SUBTYPE_WHITE_COBBLE_SLAB_UPSIDE_DOWN

      public static final int SUBTYPE_WHITE_COBBLE_SLAB_UPSIDE_DOWN
      See Also:
    • SUBTYPE_LIGHTNING_ROD

      public static final int SUBTYPE_LIGHTNING_ROD
      See Also:
    • NUM_SUBTYPES

      public static final int NUM_SUBTYPES
      See Also:
    • iconTableWoodOakTop

      @Environment(CLIENT) public Icon iconTableWoodOakTop
    • iconTableWoodOakLeg

      @Environment(CLIENT) public Icon iconTableWoodOakLeg
  • Constructor Details

    • AestheticNonOpaqueBlock

      public AestheticNonOpaqueBlock(int blockID)
  • 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 metadata, Random random, int fortuneModifier)
      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 metadata)
      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 facing, float clickX, float clickY, float clickZ, int metadata)
      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
    • getBlockBoundsFromPoolBasedOnState

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

      public void onNeighborBlockChange(World world, int i, int j, int k, int changedBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • hasCenterHardPointToFacing

      public boolean hasCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int facing, boolean ignoreTransparency)
      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 facing, boolean ignoreTransparency)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class Block
    • hasSmallCenterHardPointToFacing

      public boolean hasSmallCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int facing, boolean ignoreTransparency)
      Description copied from class: Block
      small attachment surfaces, like those required for the bottom of a torch (approx 1/8 block width)
      Overrides:
      hasSmallCenterHardPointToFacing in class Block
    • doesBlockBreakSaw

      public boolean doesBlockBreakSaw(World world, int i, int j, int k)
      Overrides:
      doesBlockBreakSaw in class Block
    • getMovementModifier

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

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

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

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

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal in class Block
    • getSubtype

      public int getSubtype(IBlockAccess blockAccess, int i, int j, int k)
    • setSubtype

      public void setSubtype(World world, int i, int j, int k, int subtype)
    • isBlockTable

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

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

      public AxisAlignedBB getBlockBoundsFromPoolForPane(IBlockAccess blockAccess, int i, int j, int k, int subType)
    • canLightningRodStay

      public static boolean canLightningRodStay(World world, int i, int j, int k)
    • 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 side, int metadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int neighborI, int neighborJ, int neighborK, int side)
      Overrides:
      shouldSideBeRendered in class Block
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int blockID, 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
    • 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
    • renderBlock

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

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int itemDamage, float brightness)
      Overrides:
      renderBlockAsItem in class Block
    • renderPedestalUp

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

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

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

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

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

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

      @Environment(CLIENT) public boolean renderPane(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block, int subType)
    • renderLightningRod

      @Environment(CLIENT) public boolean renderLightningRod(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block)
    • renderLightningRodInvBlock

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