Class Mod
java.lang.Object
me.mythicalflame.spigotmodding.utilities.Mod
Represents a game modification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers an armor set with the mod.void
registerItem
(ModdedItem item) Registers a custom item with the mod.toString()
-
Constructor Details
-
Mod
Constructs a mod.- Parameters:
namespace
- The namespace that this mod belongs to.displayName
- The display name of this mod.APIVersion
- The API version that this mod is based off of.
-
-
Method Details
-
getNamespace
- Returns:
- The namespace that this mod belongs to.
-
getDisplayName
- Returns:
- The display name of this mod.
-
getAPIVersion
- Returns:
- The API version this mod is based off of.
-
getRegisteredItems
- Returns:
- An ArrayList of the ModdedItems registered in this mod.
-
getRegisteredArmor
- Returns:
- An ArrayList of the ModdedArmorSets registered in this mod.
-
toString
-
registerItem
Registers a custom item with the mod.- Parameters:
item
- The custom item to register.
-
registerArmor
Registers an armor set with the mod.- Parameters:
set
- The armor set to register.
-