Class WoolSlabBlock


public class WoolSlabBlock extends SlabBlock
  • Field Details

  • Constructor Details

    • WoolSlabBlock

      public WoolSlabBlock(int iBlockID, boolean bIsUpsideDown)
  • Method Details

    • 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 i)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped 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 SlabBlock
    • 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 SlabBlock
    • canSilkHarvest

      protected boolean canSilkHarvest()
      Description copied from class: Block
      Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
      Overrides:
      canSilkHarvest in class Block
    • getIsUpsideDown

      public boolean getIsUpsideDown(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getIsUpsideDown in class SlabBlock
    • getIsUpsideDown

      public boolean getIsUpsideDown(int iMetadata)
      Overrides:
      getIsUpsideDown in class SlabBlock
    • setIsUpsideDown

      public void setIsUpsideDown(World world, int i, int j, int k, boolean bUpsideDown)
      Overrides:
      setIsUpsideDown in class SlabBlock
    • setIsUpsideDown

      public int setIsUpsideDown(int iMetadata, boolean bUpsideDown)
      Overrides:
      setIsUpsideDown in class SlabBlock
    • getCombinedBlockID

      public int getCombinedBlockID(int iMetadata)
      Specified by:
      getCombinedBlockID in class SlabBlock
    • getCombinedMetadata

      public int getCombinedMetadata(int iMetadata)
      Overrides:
      getCombinedMetadata in class SlabBlock
    • 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
    • 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
    • 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