Package com.zetaplugins.timberz.service
Class MaterialTypeChecks
java.lang.Object
com.zetaplugins.timberz.service.MaterialTypeChecks
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAxe(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig) static booleanisLeafBlock(org.bukkit.Material material, org.bukkit.configuration.file.FileConfiguration blocksConfig) Checks if a material is a leaf block based on the configurationstatic booleanisValidAxe(org.bukkit.inventory.ItemStack item, TimberZ plugin)
-
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 checkblocksConfig- 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
-