mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 05:50:08 +00:00
rename TerraPlugin to Platform
This commit is contained in:
1 parent
e7b13d2063
commit
3de02c5d63
124 files changed
+314
-315
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.dfsek.terra.addons.feature;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.addon.TerraAddon;
|
||||
import com.dfsek.terra.api.addon.annotations.Addon;
|
||||
import com.dfsek.terra.api.addon.annotations.Author;
|
||||
@@ -15,7 +15,7 @@ import com.dfsek.terra.api.inject.annotations.Inject;
|
||||
@Author("Terra")
|
||||
public class FeatureAddon extends TerraAddon {
|
||||
@Inject
|
||||
private TerraPlugin main;
|
||||
private Platform main;
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ package com.dfsek.terra.addons.feature;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.config.ConfigFactory;
|
||||
import com.dfsek.terra.api.config.ConfigPack;
|
||||
import com.dfsek.terra.api.config.ConfigType;
|
||||
@@ -23,7 +23,7 @@ public class FeatureConfigType implements ConfigType<FeatureTemplate, Feature> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureTemplate getTemplate(ConfigPack pack, TerraPlugin main) {
|
||||
public FeatureTemplate getTemplate(ConfigPack pack, Platform main) {
|
||||
return new FeatureTemplate();
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -2,14 +2,14 @@ package com.dfsek.terra.addons.feature;
|
||||
|
||||
import com.dfsek.tectonic.exception.LoadException;
|
||||
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.Platform;
|
||||
import com.dfsek.terra.api.config.ConfigFactory;
|
||||
import com.dfsek.terra.api.structure.feature.Feature;
|
||||
|
||||
|
||||
public class FeatureFactory implements ConfigFactory<FeatureTemplate, Feature> {
|
||||
@Override
|
||||
public Feature build(FeatureTemplate config, TerraPlugin main) throws LoadException {
|
||||
public Feature build(FeatureTemplate config, Platform main) throws LoadException {
|
||||
return new ConfiguredFeature(config.getStructures(), config.getStructureNoise(), config.getDistributor(), config.getLocator());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user