Class SpigotModdingAPI

java.lang.Object
me.mythicalflame.spigotmodding.utilities.SpigotModdingAPI

public class SpigotModdingAPI extends Object
  • Constructor Details

    • SpigotModdingAPI

      public SpigotModdingAPI()
  • Method Details

    • isWearingSet

      public static boolean isWearingSet(org.bukkit.entity.Player player, ModdedArmorSet set)
      Parameters:
      player - The player to check.
      set - The set to check for.
      Returns:
      Whether the player is wearing the set.
    • getModdedItem

      public static ModdedItem getModdedItem(String namespace, String ID)
      Searches for a ModdedItem given its properties.
      Parameters:
      namespace - The namespace of the item.
      ID - The ID of the item.
      Returns:
      The ModdedItem found, or null if none were found.
    • getModdedItem

      public static ModdedItem getModdedItem(org.bukkit.inventory.ItemStack stack)
      Searches for a ModdedItem given its ItemStack representation.
      Parameters:
      stack - The ItemStack representation of the ModdedItem.
      Returns:
      The ModdedItem found, or null if none were found.
    • getModdedItem

      public static ModdedItem getModdedItem(org.bukkit.inventory.ItemStack stack, List<ModdedItem> list)
      Searches for a ModdedItem within a list.
      Parameters:
      stack - The ItemStack representation of the ModdedItem.
      list - The list to search.
      Returns:
      The ModdedItem found, or null if none were found.
    • getMod

      public static Mod getMod(String namespace)
      Searches for a Mod given a namespace.
      Parameters:
      namespace - The namespace to search with.
      Returns:
      The Mod found, or null if none were found.
    • getMod

      public static Mod getMod(ModdedItem moddedItem)
      Searches for a Mod given a ModdedItem object.
      Parameters:
      moddedItem - The ModdedItem to search with.
      Returns:
      The Mod found, or null if none were found.