mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Move skin server definition to be resource based instead of config.
This commit is contained in:
parent
ec34f58d3d
commit
be263eec85
7 changed files with 9 additions and 24 deletions
|
@ -11,32 +11,15 @@ import net.minecraft.client.MinecraftClient;
|
|||
|
||||
import com.minelittlepony.client.pony.PonyManager;
|
||||
import com.minelittlepony.hdskins.HDSkins;
|
||||
import com.minelittlepony.hdskins.net.LegacySkinServer;
|
||||
import com.minelittlepony.hdskins.net.SkinServer;
|
||||
import com.minelittlepony.hdskins.net.ValhallaSkinServer;
|
||||
|
||||
/**
|
||||
* All the interactions with HD Skins.
|
||||
*/
|
||||
class MineLPHDSkins {
|
||||
private static final String MINELP_VALHALLA_SERVER = "http://skins.minelittlepony-mod.com";
|
||||
|
||||
private static final String MINELP_LEGACY_SERVER = "http://minelpskins.voxelmodpack.com";
|
||||
private static final String MINELP_LEGACY_GATEWAY = "http://minelpskinmanager.voxelmodpack.com";
|
||||
|
||||
public MineLPHDSkins() {
|
||||
MineLPHDSkins() {
|
||||
SkinsProxy.instance = new HDSkinsProxy();
|
||||
|
||||
SkinServer legacy = new LegacySkinServer(MINELP_LEGACY_SERVER, MINELP_LEGACY_GATEWAY);
|
||||
SkinServer valhalla = new ValhallaSkinServer(MINELP_VALHALLA_SERVER);
|
||||
// Register pony servers
|
||||
HDSkins.getInstance().addSkinServer(legacy);
|
||||
HDSkins.getInstance().addSkinServer(valhalla);
|
||||
|
||||
SkinServer.defaultServers.add(legacy);
|
||||
// And make valhalla the default
|
||||
SkinServer.defaultServers.add(0, valhalla);
|
||||
|
||||
ClientReadyCallback.EVENT.register(this::postInit);
|
||||
|
||||
// Preview on the select skin gui
|
||||
|
@ -51,6 +34,6 @@ class MineLPHDSkins {
|
|||
manager.addClearListener(ponyManager::onSkinCacheCleared);
|
||||
|
||||
// Ponify the skins GUI.
|
||||
manager.setSkinsGui(GuiSkinsMineLP::new);
|
||||
manager.getSkinServerList().setSkinsGui(GuiSkinsMineLP::new);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ import com.minelittlepony.settings.Config.Setting;
|
|||
public enum PonySettings implements Setting<Boolean> {
|
||||
SIZES,
|
||||
SNUZZLES,
|
||||
HD,
|
||||
FILLYCAM,
|
||||
SHOWSCALE,
|
||||
FPSMAGIC,
|
||||
|
|
7
src/main/resources/assets/hdskins/skins/servers.json
Normal file
7
src/main/resources/assets/hdskins/skins/servers.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"servers": [{
|
||||
"type": "legacy",
|
||||
"address": "http://minelpskins.voxelmodpack.com",
|
||||
"gateway": "http://minelpskinmanager.voxelmodpack.com"
|
||||
}]
|
||||
}
|
|
@ -5,7 +5,6 @@
|
|||
"minelp.options.ponylevel.humans": "Nur Menschen",
|
||||
"minelp.options.ponylevel.both": "Beides",
|
||||
"minelp.options.options": "Pony Einstellungen",
|
||||
"minelp.options.hd": "Enable MineLP skin server",
|
||||
"minelp.options.sizes": "Alle größen erlauben",
|
||||
"minelp.options.snuzzles": "Zeige Schnauze auf Pony's",
|
||||
"minelp.options.showscale": "Nutze Größe aus der Serie",
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
"minelp.options.ponylevel.humans": "Humans Only",
|
||||
"minelp.options.ponylevel.both": "Both",
|
||||
"minelp.options.options": "Pony Options",
|
||||
"minelp.options.hd": "Enable MineLP skin server",
|
||||
"minelp.options.sizes": "Allow all different sizes of pony",
|
||||
"minelp.options.snuzzles": "Display snuzzles on ponies",
|
||||
"minelp.options.fillycam": "Enable Filly Cam",
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
"minelp.options.ponylevel.humans": "Seuls Humains",
|
||||
"minelp.options.ponylevel.both": "Deux",
|
||||
"minelp.options.options": "Options Poney",
|
||||
"minelp.options.hd": "Activer MineLP serveur de skin",
|
||||
"minelp.options.sizes": "Autoriser tous les différentes tailles de poney",
|
||||
"minelp.options.snuzzles": "Afficher museau sur les poneys",
|
||||
"minelp.options.showscale": "Utiliser échelle fidéle á MLP",
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
"minelp.options.ponylevel.humans": "Только люди",
|
||||
"minelp.options.ponylevel.both": "И то и другое",
|
||||
"minelp.options.options": "Опции",
|
||||
"minelp.options.hd": "Включить скин-сервер Mine Little Pony",
|
||||
"minelp.options.sizes": "Разрешить пони разных размеров и рас",
|
||||
"minelp.options.snuzzles": "Показывать объёмные мордочки",
|
||||
"minelp.options.showscale": "Более каноничные размеры пони",
|
||||
|
|
Loading…
Reference in a new issue