Class BlockBookshelf

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockBookshelf

public class BlockBookshelf extends Block
  • Constructor Details

    • BlockBookshelf

      public BlockBookshelf(int blockID)
  • Method Details

    • getHarvestToolLevel

      public int getHarvestToolLevel(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getHarvestToolLevel in class Block
    • 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
    • isBookshelfValidForEnchanting

      public static boolean isBookshelfValidForEnchanting(World world, int x, int y, int z)
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int par1, int par2)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block