Class MaterialTypeChecks

java.lang.Object
com.zetaplugins.timberz.service.MaterialTypeChecks

public final class MaterialTypeChecks extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isAxe(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig)
     
    static boolean
    isLeafBlock(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig)
    Checks if a material is a leaf block based on the configuration
    static boolean
    isValidAxe(org.bukkit.inventory.ItemStack item, TimberZ plugin)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isLeafBlock

      public static boolean isLeafBlock(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig)
      Checks if a material is a leaf block based on the configuration
      Parameters:
      material - The material to check
      blocksConfig - The blocks configuration
      Returns:
      True if the material is a leaf block, false otherwise
    • isAxe

      public static boolean isAxe(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig)
    • isValidAxe

      public static boolean isValidAxe(org.bukkit.inventory.ItemStack item, TimberZ plugin)