@ApiStatus.NonExtendable
public interface Mods
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Optional<ModContainer> |
container(@NotNull java.lang.String id)
Returns the
ModContainer for the given mod identifier. |
@NotNull java.util.Collection<ModContainer> |
containers()
Returns a collection of the resolved mod containers.
|
boolean |
loaded(@NotNull java.lang.String id)
Returns
true if the given mod is loaded, otherwise it returns
false. |
@NotNull java.util.List<ModResource> |
resources()
Returns a list of the located mod resources.
|
boolean loaded(@NotNull
@NotNull java.lang.String id)
true if the given mod is loaded, otherwise it returns
false.id - the mod identifier@NotNull @NotNull java.util.Optional<ModContainer> container(@NotNull @NotNull java.lang.String id)
ModContainer for the given mod identifier.id - the mod identifier@NotNull @NotNull java.util.List<ModResource> resources()
@NotNull @NotNull java.util.Collection<ModContainer> containers()