List all mod versions from server and client
This commit is contained in:
parent
032b4187bd
commit
a53c503c4e
4 changed files with 81 additions and 6 deletions
|
@ -8,6 +8,7 @@ import net.minecraft.nbt.CompoundTag;
|
|||
import net.minecraft.nbt.NbtIo;
|
||||
import net.minecraft.world.level.storage.LevelStorageSource.LevelStorageAccess;
|
||||
import ru.bclib.BCLib;
|
||||
import ru.bclib.api.dataexchange.DataExchangeAPI;
|
||||
import ru.bclib.api.datafixer.DataFixerAPI;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -62,11 +63,14 @@ public class WorldDataAPI {
|
|||
|
||||
/**
|
||||
* Register mod cache, world cache is located in world data folder.
|
||||
* <p>
|
||||
* Will also register the Mod for the {@link DataExchangeAPI} using {@link DataExchangeAPI#registerMod(String)}
|
||||
*
|
||||
* @param modID - {@link String} modID.
|
||||
*/
|
||||
public static void registerModCache(String modID) {
|
||||
MODS.add(modID);
|
||||
DataExchangeAPI.registerMod(modID);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue