Class SpigotModdingAPI
java.lang.Object
me.mythicalflame.spigotmodding.utilities.SpigotModdingAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Mod
Searches for a Mod given a namespace.static Mod
getMod
(ModdedItem moddedItem) Searches for a Mod given a ModdedItem object.static ModdedItem
getModdedItem
(String namespace, String ID) Searches for a ModdedItem given its properties.static ModdedItem
getModdedItem
(org.bukkit.inventory.ItemStack stack) Searches for a ModdedItem given its ItemStack representation.static ModdedItem
getModdedItem
(org.bukkit.inventory.ItemStack stack, List<ModdedItem> list) Searches for a ModdedItem within a list.static boolean
isWearingSet
(org.bukkit.entity.Player player, ModdedArmorSet set)
-
Constructor Details
-
SpigotModdingAPI
public SpigotModdingAPI()
-
-
Method Details
-
isWearingSet
- Parameters:
player
- The player to check.set
- The set to check for.- Returns:
- Whether the player is wearing the set.
-
getModdedItem
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
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
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
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
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.
-