update minecraft data config templates

This commit is contained in:
dfsek
2022-12-18 22:39:18 -07:00
committed by Astrash
parent 228b26f7c4
commit 4e4627d11d
18 changed files with 74 additions and 63 deletions

View File

@@ -4,8 +4,6 @@ import ca.solostudios.strata.Versions;
import ca.solostudios.strata.parser.tokenizer.ParseException;
import net.minecraft.MinecraftVersion;
import net.minecraft.registry.DynamicRegistryManager;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.server.MinecraftServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -99,8 +97,8 @@ public abstract class LifecyclePlatform extends ModPlatform {
}
@Override
public <T> Registry<T> getMinecraftRegistry(RegistryKey<? extends Registry<? extends T>> key) {
return DYNAMIC_REGISTRY_MANAGER.get().get(key);
public DynamicRegistryManager getMinecraftRegistry() {
return DYNAMIC_REGISTRY_MANAGER.get();
}
protected abstract Collection<BaseAddon> getPlatformMods();