Class SlimefunMaterial

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

public class SlimefunMaterial extends ObsidianMaterial
Slimefun4 support material
  • Constructor Details

    • SlimefunMaterial

      public SlimefunMaterial(io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem item)
      Construct a slimefun4 support material
      Parameters:
      item - Slimefun format
  • 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