Class CharredStumpBlock

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

public class CharredStumpBlock extends Block
  • Field Details

  • Constructor Details

    • CharredStumpBlock

      public CharredStumpBlock(int iBlockID)
  • Method Details

    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • 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
    • 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
    • canConvertBlock

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int i, int j, int k, int iFromSide)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • getIsProblemToRemove

      public boolean getIsProblemToRemove(ItemStack toolStack, IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      The following is for stumps and such, which are a pain to remove regardless of whether their overall block has relevant tool effeciencies
      Overrides:
      getIsProblemToRemove in class Block
    • getDoesStumpRemoverWorkOnBlock

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

      public boolean getCanBlockBeIncinerated(World world, int i, int j, int k)
      Description copied from class: Block
      Used by Hibachi to determine if it can remove the block above it when lit
      Overrides:
      getCanBlockBeIncinerated in class Block
    • getHarvestToolLevel

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

      protected void initModels()
    • setDamageLevel

      public void setDamageLevel(World world, int i, int j, int k, int iDamageLevel)
    • setDamageLevel

      public int setDamageLevel(int iMetadata, int iDamageLevel)
    • getDamageLevel

      public int getDamageLevel(IBlockAccess blockAccess, int i, int j, int k)
    • getDamageLevel

      public int getDamageLevel(int iMetadata)
    • getCurrentModelForBlock

      public BlockModel getCurrentModelForBlock(IBlockAccess blockAccess, int i, int j, int k)
    • renderBlock

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

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

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