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

public class SkriptMaterial extends ObsidianMaterial
Special implementation of ObsidianMaterial for Skript
  • Constructor Details

    • SkriptMaterial

      public SkriptMaterial(ch.njol.skript.aliases.ItemType effects, String key)
      Create a book material from a list of enchant with associated level
      Parameters:
      effects - Enchants and level
      key - The string representing the material
  • Method Details

    • isSupported

      public static boolean isSupported()
      Validate that the enchant meta data exists on the version of bukkit used
      Returns:
      If Book materials can be used
    • 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