Package dev.yumi.mc.core.api
Interface ModContainer
public interface ModContainer
Represents a mod.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionFinds a resource path inside this mod.@Unmodifiable Collection<ModContainer> Returns the collection of mods contained within this mod.@NotNull Optional<ModContainer> Returns the mod which contains this mod, if any.Returns the custom properties of this mod.@NotNull StringgetName()Returns the name of this mod.@Unmodifiable Collection<String> Returns a collection of mod identifiers provided by this mod.@NotNull StringReturns the string representation of the version of this mod.@NotNull Stringid()Returns the identifier of this mod.
-
Method Details
-
id
Returns the identifier of this mod.- Returns:
- the identifier of this mod
-
getName
Returns the name of this mod.- Returns:
- the name of this mod
-
getVersionString
Returns the string representation of the version of this mod.- Returns:
- the string representation of the version of this mod
-
findPath
Finds a resource path inside this mod.- Parameters:
first- the path string or initial part of the path stringmore- additional strings to be joined to form the path string- Returns:
- the path if it exists, or
Optional.empty()otherwise
-
getContainingMod
Returns the mod which contains this mod, if any.- Returns:
- the mod which contains this mod, if any
-
getContainedMods
@Unmodifiable Collection<ModContainer> getContainedMods()Returns the collection of mods contained within this mod.- Returns:
- the collection of mods contained within this mod
-
getProvidedIds
@Unmodifiable Collection<String> getProvidedIds()Returns a collection of mod identifiers provided by this mod.- Returns:
- a collection of mod identifiers provided by this mod
-
getCustomProperties
ManifestCustomValue.ObjectValue getCustomProperties()Returns the custom properties of this mod.- Returns:
- the custom properties of this mod
-