java.lang.Object
com.moyskleytech.obsidian.material.ObsidianMaterial
com.moyskleytech.obsidian.material.implementations.BukkitMaterial
All Implemented Interfaces:
Comparable<ObsidianMaterial>

public class BukkitMaterial extends ObsidianMaterial
Special implementation that support all present and future bukkit Material values
  • Constructor Details

    • BukkitMaterial

      public BukkitMaterial(org.bukkit.Material mat, String key)
      Build a ObsidianMaterial around a bukkit material
      Parameters:
      mat - The bukkit Material to encapsulate
      key - The unique key
  • Method Details

    • toMaterial

      public org.bukkit.Material toMaterial()
      Description copied from class: ObsidianMaterial
      Obtain the bukkit material associated with this material
      Specified by:
      toMaterial in class ObsidianMaterial
      Returns:
      the enum value associated
    • toItem

      public org.bukkit.inventory.ItemStack toItem()
      Description copied from class: ObsidianMaterial
      Object a ItemStack of the desired material
      Specified by:
      toItem in class ObsidianMaterial
      Returns:
      new ItemStack