Time to tackle packages (phase 1: separate the data from all the other carp)

This commit is contained in:
Sollace 2018-04-25 13:02:10 +02:00
parent 5da88c8551
commit 403c195007
24 changed files with 30 additions and 35 deletions

View file

@ -4,6 +4,8 @@ import com.google.common.collect.Maps;
import com.minelittlepony.gui.PonySettingPanel;
import com.minelittlepony.hdskins.gui.GuiSkinsMineLP;
import com.minelittlepony.model.PMAPI;
import com.minelittlepony.pony.data.IPonyData;
import com.minelittlepony.pony.data.PonyDataSerialzier;
import com.minelittlepony.renderer.RenderPonyEvoker;
import com.minelittlepony.renderer.RenderPonyIllusionIllager;
import com.minelittlepony.renderer.RenderPonyPigman;

View file

@ -1,6 +1,7 @@
package com.minelittlepony;
import com.google.gson.annotations.Expose;
import com.minelittlepony.pony.data.PonyLevel;
import com.mumfrey.liteloader.modconfig.ConfigStrategy;
import com.mumfrey.liteloader.modconfig.Exposable;
import com.mumfrey.liteloader.modconfig.ExposableOptions;

View file

@ -6,6 +6,8 @@ import com.google.gson.Gson;
import com.google.gson.JsonParseException;
import com.minelittlepony.ducks.IPlayerInfo;
import com.minelittlepony.model.PMAPI;
import com.minelittlepony.pony.data.Pony;
import com.minelittlepony.pony.data.PonyLevel;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.resources.DefaultPlayerSkin;

View file

@ -1,6 +1,6 @@
package com.minelittlepony.ducks;
import com.minelittlepony.Pony;
import com.minelittlepony.pony.data.Pony;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.AbstractClientPlayer;

View file

@ -2,7 +2,7 @@ package com.minelittlepony.gui;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.PonyConfig;
import com.minelittlepony.PonyLevel;
import com.minelittlepony.pony.data.PonyLevel;
import com.mumfrey.liteloader.client.gui.GuiCheckbox;
import com.mumfrey.liteloader.core.LiteLoader;
import net.minecraft.client.gui.GuiButton;

View file

@ -1,11 +1,11 @@
package com.minelittlepony.hdskins.gui;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.Pony;
import com.minelittlepony.model.AbstractPonyModel;
import com.minelittlepony.model.BodyPart;
import com.minelittlepony.model.ModelPonyElytra;
import com.minelittlepony.model.PlayerModel;
import com.minelittlepony.pony.data.Pony;
import com.minelittlepony.renderer.layer.AbstractPonyLayer;
import com.voxelmodpack.hdskins.gui.RenderPlayerModel;
import net.minecraft.client.model.ModelPlayer;

View file

@ -7,9 +7,9 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.Pony;
import com.minelittlepony.PonyManager;
import com.minelittlepony.ducks.IPlayerInfo;
import com.minelittlepony.pony.data.Pony;
import com.mojang.authlib.GameProfile;
import net.minecraft.client.network.NetworkPlayerInfo;

View file

@ -1,6 +1,6 @@
package com.minelittlepony.model;
import com.minelittlepony.IPonyData;
import com.minelittlepony.pony.data.IPonyData;
public abstract class AbstractArmor {

View file

@ -1,9 +1,9 @@
package com.minelittlepony.model;
import com.minelittlepony.IPonyData;
import com.minelittlepony.PonyData;
import com.minelittlepony.PonySize;
import com.minelittlepony.model.pony.ModelPlayerPony;
import com.minelittlepony.pony.data.IPonyData;
import com.minelittlepony.pony.data.PonyData;
import com.minelittlepony.pony.data.PonySize;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelPlayer;

View file

@ -1,6 +1,6 @@
package com.minelittlepony.model;
import com.minelittlepony.IPonyData;
import com.minelittlepony.pony.data.IPonyData;
public class PlayerModel {

View file

@ -1,7 +1,7 @@
package com.minelittlepony.model.components;
import com.minelittlepony.PonyGender;
import com.minelittlepony.model.AbstractPonyModel;
import com.minelittlepony.pony.data.PonyGender;
import com.minelittlepony.renderer.plane.PlaneRenderer;
import static com.minelittlepony.model.PonyModelConstants.*;

View file

@ -1,6 +1,5 @@
package com.minelittlepony.model.components;
import com.minelittlepony.TailLengths;
import com.minelittlepony.renderer.plane.PlaneRenderer;
import net.minecraft.client.model.ModelBase;
@ -8,6 +7,8 @@ import net.minecraft.util.math.MathHelper;
import static com.minelittlepony.model.PonyModelConstants.*;
import com.minelittlepony.pony.data.TailLengths;
public class PonyTail extends PlaneRenderer {
private final TailSegment[] segments = new TailSegment[4];

View file

@ -1,4 +1,4 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
import net.minecraft.client.resources.data.IMetadataSection;

View file

@ -1,6 +1,7 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
import com.google.common.base.MoreObjects;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.ducks.IDownloadImageData;
import com.minelittlepony.model.PlayerModel;
import com.voxelmodpack.hdskins.DynamicTextureImage;

View file

@ -1,7 +1,7 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
import com.google.common.base.MoreObjects;
import com.minelittlepony.pony.data.TriggerPixels;
import com.minelittlepony.MineLittlePony;
import java.awt.image.BufferedImage;
import javax.annotation.concurrent.Immutable;

View file

@ -1,4 +1,4 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;

View file

@ -1,6 +1,4 @@
package com.minelittlepony;
import com.minelittlepony.pony.data.ITriggerPixelMapped;
package com.minelittlepony.pony.data;
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
MARE(0),

View file

@ -1,4 +1,4 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
public enum PonyLevel {

View file

@ -1,7 +1,6 @@
package com.minelittlepony;
package com.minelittlepony.pony.data;
import com.minelittlepony.model.PlayerModels;
import com.minelittlepony.pony.data.ITriggerPixelMapped;
public enum PonyRace implements ITriggerPixelMapped<PonyRace> {

View file

@ -1,6 +1,4 @@
package com.minelittlepony;
import com.minelittlepony.pony.data.ITriggerPixelMapped;
package com.minelittlepony.pony.data;
public enum PonySize implements ITriggerPixelMapped<PonySize> {
NORMAL(0, 0.4f, 1f),

View file

@ -1,6 +1,4 @@
package com.minelittlepony;
import com.minelittlepony.pony.data.ITriggerPixelMapped;
package com.minelittlepony.pony.data;
public enum TailLengths implements ITriggerPixelMapped<TailLengths> {

View file

@ -2,11 +2,6 @@ package com.minelittlepony.pony.data;
import java.awt.image.BufferedImage;
import com.minelittlepony.PonyGender;
import com.minelittlepony.PonyRace;
import com.minelittlepony.PonySize;
import com.minelittlepony.TailLengths;
public enum TriggerPixels {
RACE(PonyRace.HUMAN, 0, 0),
TAIL(TailLengths.FULL, 1, 0),

View file

@ -1,11 +1,11 @@
package com.minelittlepony.renderer.layer;
import com.minelittlepony.IPonyData;
import com.minelittlepony.ducks.IRenderItem;
import com.minelittlepony.ducks.IRenderPony;
import com.minelittlepony.model.AbstractPonyModel;
import com.minelittlepony.model.BodyPart;
import com.minelittlepony.model.pony.ModelPlayerPony;
import com.minelittlepony.pony.data.IPonyData;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;

View file

@ -1,12 +1,12 @@
package com.minelittlepony.renderer.player;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.Pony;
import com.minelittlepony.ducks.IRenderManager;
import com.minelittlepony.ducks.IRenderPony;
import com.minelittlepony.model.AbstractPonyModel;
import com.minelittlepony.model.PlayerModel;
import com.minelittlepony.model.pony.ModelPlayerPony;
import com.minelittlepony.pony.data.Pony;
import com.minelittlepony.renderer.layer.LayerEntityOnPonyShoulder;
import com.minelittlepony.renderer.layer.LayerHeldPonyItem;
import com.minelittlepony.renderer.layer.LayerPonyArmor;