Class WorkStumpBlock

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

public class WorkStumpBlock extends Block
  • Field Details

    • sideTextureNames

      public static final String[] sideTextureNames
    • topTextureNames

      public static final String[] topTextureNames
    • topCraftingTextureNames

      public static final String[] topCraftingTextureNames
  • Constructor Details

    • WorkStumpBlock

      public WorkStumpBlock(int iBlockID)
  • Method Details

    • 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
    • onBlockActivated

      public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fClickX, float fClickY, float fClickZ)
      Description copied from class: Block
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • isFinishedWorkStump

      public boolean isFinishedWorkStump(int metadata)
    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak in class Block
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance 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
    • isWorkStumpItemConversionTool

      public boolean isWorkStumpItemConversionTool(ItemStack stack, World world, int i, int j, int k)
    • 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
    • getStackRetrievedByBlockDispenser

      public ItemStack getStackRetrievedByBlockDispenser(World world, int i, int j, int k)
      Description copied from class: Block
      If the stack returned is null, the block will not be retrieved
      Overrides:
      getStackRetrievedByBlockDispenser 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
    • 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