Class ChewedLogBlock

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

public class ChewedLogBlock extends Block
  • Field Details

    • HARDNESS

      public static final float HARDNESS
      See Also:
    • sideTexture

      protected String sideTexture
    • topTexture

      protected String topTexture
    • stumpTopTexture

      protected String stumpTopTexture
  • Constructor Details

    • ChewedLogBlock

      public ChewedLogBlock(int blockID, String sideTexture, String topTexture, String stumpTopTexture, Block logSpike)
  • 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
    • getBlockHardness

      public float getBlockHardness(World world, int i, int j, int k)
      Description copied from class: Block
      Returns the block hardness at a location. Args: world, x, y, z
      Overrides:
      getBlockHardness 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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iBlockID)
      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
    • 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
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool 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 x, int y, int z, 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
    • shouldPlayStandardConvertSound

      public boolean shouldPlayStandardConvertSound(World world, int x, int y, int z)
      Overrides:
      shouldPlayStandardConvertSound 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
    • canDropFromExplosion

      public boolean canDropFromExplosion(Explosion explosion)
      Description copied from class: Block
      Return whether this block can drop from an explosion.
      Overrides:
      canDropFromExplosion in class Block
    • onBlockDestroyedByExplosion

      public void onBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion explosion)
      Description copied from class: Block
      // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---
      Overrides:
      onBlockDestroyedByExplosion 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
    • onDestroyedByFire

      public void onDestroyedByFire(World world, int i, int j, int k, int iFireAge, boolean bForcedFireSpread)
      Overrides:
      onDestroyedByFire in class Block
    • initModels

      protected void initModels()
    • setDamageLevel

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

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

      public int getDamageLevel(int iMetadata)
    • getOrientation

      public int getOrientation(IBlockAccess blockAccess, int i, int j, int k)
      Uses same orientation as BlockLog. 0 is J aligned. 1 is I aligned. 2 is K aligned.
    • getOrientation

      public int getOrientation(int iMetadata)
    • setOrientation

      public int setOrientation(int iMetadata, int iOrientation)
    • getIsStump

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

      public static boolean getIsStump(int iMetadata)
    • setIsStump

      public int setIsStump(int iMetadata)
    • setCurrentModelForBlock

      public int setCurrentModelForBlock(IBlockAccess blockAccess, int i, int j, int k)
    • setConnectionFlagsForBlock

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

      public int setConnectionFlagsForBlock(IBlockAccess blockAccess, int i, int j, int k, int iMetadata)
    • doesTargetBlockConnectToFacing

      public boolean doesTargetBlockConnectToFacing(int iMyOrientation, IBlockAccess blockAccess, int i, int j, int k, int iFacing)
    • isItemEffectiveConversionTool

      public boolean isItemEffectiveConversionTool(ItemStack stack, 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 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
    • shouldSideBeRendered

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

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderBlocks, int x, int y, int z)
      Overrides:
      renderBlock in class Block
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block
    • 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
    • getSelectedBoundingBoxFromPool

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