mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-24 09:06:39 +00:00
rename TerraPlugin to Platform
This commit is contained in:
@@ -4,18 +4,18 @@ import org.spongepowered.api.Sponge;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.dfsek.terra.AbstractTerraPlugin;
|
||||
import com.dfsek.terra.AbstractPlatform;
|
||||
import com.dfsek.terra.api.util.Logger;
|
||||
import com.dfsek.terra.api.handle.ItemHandle;
|
||||
import com.dfsek.terra.api.handle.WorldHandle;
|
||||
import com.dfsek.terra.sponge.handle.SpongeWorldHandle;
|
||||
|
||||
|
||||
public class TerraPluginImpl extends AbstractTerraPlugin {
|
||||
public class PlatformImpl extends AbstractPlatform {
|
||||
private final TerraSpongePlugin plugin;
|
||||
private final SpongeWorldHandle worldHandle = new SpongeWorldHandle();
|
||||
|
||||
public TerraPluginImpl(TerraSpongePlugin plugin) {
|
||||
public PlatformImpl(TerraSpongePlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
load();
|
||||
}
|
||||
@@ -9,12 +9,12 @@ import org.spongepowered.plugin.builtin.jvm.Plugin;
|
||||
@Plugin("terra")
|
||||
public class TerraSpongePlugin {
|
||||
private final PluginContainer plugin;
|
||||
private final TerraPluginImpl terraPlugin;
|
||||
private final PlatformImpl terraPlugin;
|
||||
|
||||
@Inject
|
||||
public TerraSpongePlugin(PluginContainer plugin, Game game) {
|
||||
this.plugin = plugin;
|
||||
this.terraPlugin = new TerraPluginImpl(this);
|
||||
this.terraPlugin = new PlatformImpl(this);
|
||||
game.eventManager().registerListeners(plugin, new SpongeListener(this));
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class TerraSpongePlugin {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
public TerraPluginImpl getTerraPlugin() {
|
||||
public PlatformImpl getTerraPlugin() {
|
||||
return terraPlugin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user