mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-16 21:30:08 +00:00
rename TerraPlugin to Platform
This commit is contained in:
@@ -19,7 +19,7 @@ import com.dfsek.terra.api.util.Logger;
|
||||
/**
|
||||
* Represents a Terra mod/plugin instance.
|
||||
*/
|
||||
public interface TerraPlugin extends LoaderRegistrar {
|
||||
public interface Platform extends LoaderRegistrar {
|
||||
Logger logger();
|
||||
|
||||
boolean reload();
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.dfsek.terra.api.addon;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.registry.CheckedRegistry;
|
||||
|
||||
|
||||
@@ -9,5 +9,5 @@ public interface AddonLoader {
|
||||
* Load all addons.
|
||||
* @param main TerraPlugin instance.
|
||||
*/
|
||||
void load(TerraPlugin main, CheckedRegistry<Addon> addons);
|
||||
void load(Platform main, CheckedRegistry<Addon> addons);
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@ package com.dfsek.terra.api.config;
|
||||
import com.dfsek.tectonic.config.ConfigTemplate;
|
||||
import com.dfsek.tectonic.exception.LoadException;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
|
||||
|
||||
public interface ConfigFactory<C extends ConfigTemplate, O> {
|
||||
O build(C config, TerraPlugin main) throws LoadException;
|
||||
O build(C config, Platform main) throws LoadException;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.dfsek.terra.api.config;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.registry.OpenRegistry;
|
||||
import com.dfsek.terra.api.util.reflection.TypeKey;
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.dfsek.terra.api.util.reflection.TypeKey;
|
||||
public interface ConfigType<T extends AbstractableTemplate, R> {
|
||||
Supplier<OpenRegistry<R>> registrySupplier(ConfigPack pack);
|
||||
|
||||
T getTemplate(ConfigPack pack, TerraPlugin main);
|
||||
T getTemplate(ConfigPack pack, Platform main);
|
||||
|
||||
ConfigFactory<T, R> getFactory();
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.dfsek.terra.api.config;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
|
||||
|
||||
public interface PluginConfig {
|
||||
void load(TerraPlugin main);
|
||||
void load(Platform main);
|
||||
|
||||
boolean dumpDefaultConfig();
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.block.state.BlockState;
|
||||
import com.dfsek.terra.api.config.ConfigPack;
|
||||
import com.dfsek.terra.api.util.vector.Vector3;
|
||||
@@ -24,7 +24,7 @@ public interface ChunkGenerator {
|
||||
|
||||
ConfigPack getConfigPack();
|
||||
|
||||
TerraPlugin getMain();
|
||||
Platform getMain();
|
||||
|
||||
List<GenerationStage> getGenerationStages();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user