mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-16 22:01:07 +00:00
abstract addon id
This commit is contained in:
@@ -33,7 +33,7 @@ import com.dfsek.terra.mod.config.PreLoadCompatibilityOptions;
|
||||
import com.dfsek.terra.mod.config.VanillaBiomeProperties;
|
||||
|
||||
|
||||
public final class MinecraftAddon implements BaseAddon {
|
||||
public abstract class MinecraftAddon implements BaseAddon {
|
||||
private static final Version VERSION = Versions.getVersion(1, 0, 0);
|
||||
private static final Logger logger = LoggerFactory.getLogger(MinecraftAddon.class);
|
||||
private final ModPlatform modPlatform;
|
||||
@@ -72,9 +72,4 @@ public final class MinecraftAddon implements BaseAddon {
|
||||
public Version getVersion() {
|
||||
return VERSION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getID() {
|
||||
return "terra-mod";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,9 +86,11 @@ public abstract class ModPlatform extends AbstractPlatform {
|
||||
if(BuiltinRegistries.BIOME.get(identifier) == null) throw new LoadException("Invalid Biome ID: " + identifier, tracker); // failure.
|
||||
return new ProtoPlatformBiome(identifier);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Iterable<BaseAddon> platformAddon() {
|
||||
return List.of(new MinecraftAddon(this));
|
||||
return List.of(getPlatformAddon());
|
||||
}
|
||||
|
||||
protected abstract BaseAddon getPlatformAddon();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user