Package net.minecraft.modding.api
Interface ModInfo
-
public interface ModInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull @Unmodifiable java.util.List<ModDependency>
breaks()
boolean
checkDependencies()
boolean
checkDependencies(@NotNull java.util.Map<java.lang.String,ModInfo> mods)
@NotNull @Unmodifiable java.util.Map<java.lang.String,java.lang.String>
contributors()
@NotNull @Unmodifiable java.util.List<ModDependency>
dependencies()
@Nullable java.lang.String
description()
@Nullable SideEnvironment
environment()
@NotNull @Unmodifiable java.util.Map<java.lang.String,java.util.List<java.lang.String>>
eventHandlers()
@NotNull @Unmodifiable java.util.Map<java.lang.String,com.google.gson.JsonElement>
extra()
@Nullable java.nio.file.Path
getIcon(int prefSize)
@NotNull java.lang.String
id()
@Nullable java.lang.String
mainClass()
@NotNull java.lang.String
name()
@NotNull ModOrigin
origin()
@NotNull java.nio.file.Path
originPath()
@NotNull java.nio.file.Path
resourcePath()
@NotNull @Unmodifiable java.util.List<java.lang.String>
transformers()
@NotNull ModType
type()
void
verifyDependencies()
void
verifyDependencies(@NotNull java.util.Map<java.lang.String,ModInfo> mods)
@NotNull com.vdurmont.semver4j.Semver
version()
-
-
-
Method Detail
-
id
@NotNull @NotNull java.lang.String id()
-
name
@NotNull @NotNull java.lang.String name()
-
description
@Nullable @Nullable java.lang.String description()
-
version
@NotNull @NotNull com.vdurmont.semver4j.Semver version()
-
contributors
@NotNull @NotNull @Unmodifiable java.util.Map<java.lang.String,java.lang.String> contributors()
-
type
@NotNull @NotNull ModType type()
-
origin
@NotNull @NotNull ModOrigin origin()
-
environment
@Nullable @Nullable SideEnvironment environment()
-
dependencies
@NotNull @NotNull @Unmodifiable java.util.List<ModDependency> dependencies()
-
breaks
@NotNull @NotNull @Unmodifiable java.util.List<ModDependency> breaks()
-
extra
@NotNull @NotNull @Unmodifiable java.util.Map<java.lang.String,com.google.gson.JsonElement> extra()
-
mainClass
@Nullable @Nullable java.lang.String mainClass()
-
eventHandlers
@NotNull @NotNull @Unmodifiable java.util.Map<java.lang.String,java.util.List<java.lang.String>> eventHandlers()
-
transformers
@NotNull @NotNull @Unmodifiable java.util.List<java.lang.String> transformers()
-
resourcePath
@NotNull @NotNull java.nio.file.Path resourcePath()
-
originPath
@NotNull @NotNull java.nio.file.Path originPath()
-
getIcon
@Nullable @Nullable java.nio.file.Path getIcon(int prefSize)
-
verifyDependencies
void verifyDependencies(@NotNull @NotNull java.util.Map<java.lang.String,ModInfo> mods) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
verifyDependencies
void verifyDependencies() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
checkDependencies
boolean checkDependencies(@NotNull @NotNull java.util.Map<java.lang.String,ModInfo> mods)
-
checkDependencies
boolean checkDependencies()
-
-