public class ModernBetaModRegistry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ModernBetaModRegistry |
INSTANCE
Singleton instance of ModernBetaModRegistry for registering addon mods.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String modId)
Gets whether the specified mod ID has been added to the registry.
|
int |
getDataVersion(java.lang.String modId)
Gets the data version for the specified mod ID.
|
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
getEntries()
Gets a list of all registry entries in the registry.
|
void |
register(java.lang.String modId,
int dataVersion)
Registers the mod to the mod registry.
|
public static final ModernBetaModRegistry INSTANCE
datafixes
to ModernBetaRegistries.MOD_DATA_FIX.public void register(java.lang.String modId,
int dataVersion)
modId - The mod identifier, which should also match the namespace used for the mod's tags.dataVersion - The current integer data version for the modpublic int getDataVersion(java.lang.String modId)
modId - The mod identifierpublic boolean contains(java.lang.String modId)
modId - The mod identifierpublic java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getEntries()