mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 12:58:01 +01:00
Time to tackle packages (phase 1: separate the data from all the other carp)
This commit is contained in:
parent
5da88c8551
commit
403c195007
24 changed files with 30 additions and 35 deletions
|
@ -4,6 +4,8 @@ import com.google.common.collect.Maps;
|
||||||
import com.minelittlepony.gui.PonySettingPanel;
|
import com.minelittlepony.gui.PonySettingPanel;
|
||||||
import com.minelittlepony.hdskins.gui.GuiSkinsMineLP;
|
import com.minelittlepony.hdskins.gui.GuiSkinsMineLP;
|
||||||
import com.minelittlepony.model.PMAPI;
|
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.RenderPonyEvoker;
|
||||||
import com.minelittlepony.renderer.RenderPonyIllusionIllager;
|
import com.minelittlepony.renderer.RenderPonyIllusionIllager;
|
||||||
import com.minelittlepony.renderer.RenderPonyPigman;
|
import com.minelittlepony.renderer.RenderPonyPigman;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony;
|
||||||
|
|
||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
|
import com.minelittlepony.pony.data.PonyLevel;
|
||||||
import com.mumfrey.liteloader.modconfig.ConfigStrategy;
|
import com.mumfrey.liteloader.modconfig.ConfigStrategy;
|
||||||
import com.mumfrey.liteloader.modconfig.Exposable;
|
import com.mumfrey.liteloader.modconfig.Exposable;
|
||||||
import com.mumfrey.liteloader.modconfig.ExposableOptions;
|
import com.mumfrey.liteloader.modconfig.ExposableOptions;
|
||||||
|
|
|
@ -6,6 +6,8 @@ import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonParseException;
|
import com.google.gson.JsonParseException;
|
||||||
import com.minelittlepony.ducks.IPlayerInfo;
|
import com.minelittlepony.ducks.IPlayerInfo;
|
||||||
import com.minelittlepony.model.PMAPI;
|
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.entity.AbstractClientPlayer;
|
||||||
import net.minecraft.client.resources.DefaultPlayerSkin;
|
import net.minecraft.client.resources.DefaultPlayerSkin;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.minelittlepony.ducks;
|
package com.minelittlepony.ducks;
|
||||||
|
|
||||||
import com.minelittlepony.Pony;
|
import com.minelittlepony.pony.data.Pony;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||||
|
|
|
@ -2,7 +2,7 @@ package com.minelittlepony.gui;
|
||||||
|
|
||||||
import com.minelittlepony.MineLittlePony;
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.PonyConfig;
|
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.client.gui.GuiCheckbox;
|
||||||
import com.mumfrey.liteloader.core.LiteLoader;
|
import com.mumfrey.liteloader.core.LiteLoader;
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package com.minelittlepony.hdskins.gui;
|
package com.minelittlepony.hdskins.gui;
|
||||||
|
|
||||||
import com.minelittlepony.MineLittlePony;
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.Pony;
|
|
||||||
import com.minelittlepony.model.AbstractPonyModel;
|
import com.minelittlepony.model.AbstractPonyModel;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
import com.minelittlepony.model.ModelPonyElytra;
|
import com.minelittlepony.model.ModelPonyElytra;
|
||||||
import com.minelittlepony.model.PlayerModel;
|
import com.minelittlepony.model.PlayerModel;
|
||||||
|
import com.minelittlepony.pony.data.Pony;
|
||||||
import com.minelittlepony.renderer.layer.AbstractPonyLayer;
|
import com.minelittlepony.renderer.layer.AbstractPonyLayer;
|
||||||
import com.voxelmodpack.hdskins.gui.RenderPlayerModel;
|
import com.voxelmodpack.hdskins.gui.RenderPlayerModel;
|
||||||
import net.minecraft.client.model.ModelPlayer;
|
import net.minecraft.client.model.ModelPlayer;
|
||||||
|
|
|
@ -7,9 +7,9 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
import com.minelittlepony.MineLittlePony;
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.Pony;
|
|
||||||
import com.minelittlepony.PonyManager;
|
import com.minelittlepony.PonyManager;
|
||||||
import com.minelittlepony.ducks.IPlayerInfo;
|
import com.minelittlepony.ducks.IPlayerInfo;
|
||||||
|
import com.minelittlepony.pony.data.Pony;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
|
|
||||||
import net.minecraft.client.network.NetworkPlayerInfo;
|
import net.minecraft.client.network.NetworkPlayerInfo;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.minelittlepony.model;
|
package com.minelittlepony.model;
|
||||||
|
|
||||||
import com.minelittlepony.IPonyData;
|
import com.minelittlepony.pony.data.IPonyData;
|
||||||
|
|
||||||
public abstract class AbstractArmor {
|
public abstract class AbstractArmor {
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.minelittlepony.model;
|
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.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.ModelBase;
|
||||||
import net.minecraft.client.model.ModelPlayer;
|
import net.minecraft.client.model.ModelPlayer;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.minelittlepony.model;
|
package com.minelittlepony.model;
|
||||||
|
|
||||||
import com.minelittlepony.IPonyData;
|
import com.minelittlepony.pony.data.IPonyData;
|
||||||
|
|
||||||
public class PlayerModel {
|
public class PlayerModel {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony.model.components;
|
package com.minelittlepony.model.components;
|
||||||
|
|
||||||
import com.minelittlepony.PonyGender;
|
|
||||||
import com.minelittlepony.model.AbstractPonyModel;
|
import com.minelittlepony.model.AbstractPonyModel;
|
||||||
|
import com.minelittlepony.pony.data.PonyGender;
|
||||||
import com.minelittlepony.renderer.plane.PlaneRenderer;
|
import com.minelittlepony.renderer.plane.PlaneRenderer;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
import static com.minelittlepony.model.PonyModelConstants.*;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.minelittlepony.model.components;
|
package com.minelittlepony.model.components;
|
||||||
|
|
||||||
import com.minelittlepony.TailLengths;
|
|
||||||
import com.minelittlepony.renderer.plane.PlaneRenderer;
|
import com.minelittlepony.renderer.plane.PlaneRenderer;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
|
@ -8,6 +7,8 @@ import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
import static com.minelittlepony.model.PonyModelConstants.*;
|
||||||
|
|
||||||
|
import com.minelittlepony.pony.data.TailLengths;
|
||||||
|
|
||||||
public class PonyTail extends PlaneRenderer {
|
public class PonyTail extends PlaneRenderer {
|
||||||
|
|
||||||
private final TailSegment[] segments = new TailSegment[4];
|
private final TailSegment[] segments = new TailSegment[4];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import net.minecraft.client.resources.data.IMetadataSection;
|
import net.minecraft.client.resources.data.IMetadataSection;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.ducks.IDownloadImageData;
|
import com.minelittlepony.ducks.IDownloadImageData;
|
||||||
import com.minelittlepony.model.PlayerModel;
|
import com.minelittlepony.model.PlayerModel;
|
||||||
import com.voxelmodpack.hdskins.DynamicTextureImage;
|
import com.voxelmodpack.hdskins.DynamicTextureImage;
|
|
@ -1,7 +1,7 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.minelittlepony.pony.data.TriggerPixels;
|
import com.minelittlepony.MineLittlePony;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import javax.annotation.concurrent.Immutable;
|
import javax.annotation.concurrent.Immutable;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.google.gson.JsonDeserializationContext;
|
import com.google.gson.JsonDeserializationContext;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
|
@ -1,6 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.minelittlepony.pony.data.ITriggerPixelMapped;
|
|
||||||
|
|
||||||
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
|
public enum PonyGender implements ITriggerPixelMapped<PonyGender> {
|
||||||
MARE(0),
|
MARE(0),
|
|
@ -1,4 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
public enum PonyLevel {
|
public enum PonyLevel {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.minelittlepony.model.PlayerModels;
|
import com.minelittlepony.model.PlayerModels;
|
||||||
import com.minelittlepony.pony.data.ITriggerPixelMapped;
|
|
||||||
|
|
||||||
public enum PonyRace implements ITriggerPixelMapped<PonyRace> {
|
public enum PonyRace implements ITriggerPixelMapped<PonyRace> {
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.minelittlepony.pony.data.ITriggerPixelMapped;
|
|
||||||
|
|
||||||
public enum PonySize implements ITriggerPixelMapped<PonySize> {
|
public enum PonySize implements ITriggerPixelMapped<PonySize> {
|
||||||
NORMAL(0, 0.4f, 1f),
|
NORMAL(0, 0.4f, 1f),
|
|
@ -1,6 +1,4 @@
|
||||||
package com.minelittlepony;
|
package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import com.minelittlepony.pony.data.ITriggerPixelMapped;
|
|
||||||
|
|
||||||
public enum TailLengths implements ITriggerPixelMapped<TailLengths> {
|
public enum TailLengths implements ITriggerPixelMapped<TailLengths> {
|
||||||
|
|
|
@ -2,11 +2,6 @@ package com.minelittlepony.pony.data;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
|
|
||||||
import com.minelittlepony.PonyGender;
|
|
||||||
import com.minelittlepony.PonyRace;
|
|
||||||
import com.minelittlepony.PonySize;
|
|
||||||
import com.minelittlepony.TailLengths;
|
|
||||||
|
|
||||||
public enum TriggerPixels {
|
public enum TriggerPixels {
|
||||||
RACE(PonyRace.HUMAN, 0, 0),
|
RACE(PonyRace.HUMAN, 0, 0),
|
||||||
TAIL(TailLengths.FULL, 1, 0),
|
TAIL(TailLengths.FULL, 1, 0),
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package com.minelittlepony.renderer.layer;
|
package com.minelittlepony.renderer.layer;
|
||||||
|
|
||||||
import com.minelittlepony.IPonyData;
|
|
||||||
import com.minelittlepony.ducks.IRenderItem;
|
import com.minelittlepony.ducks.IRenderItem;
|
||||||
import com.minelittlepony.ducks.IRenderPony;
|
import com.minelittlepony.ducks.IRenderPony;
|
||||||
import com.minelittlepony.model.AbstractPonyModel;
|
import com.minelittlepony.model.AbstractPonyModel;
|
||||||
import com.minelittlepony.model.BodyPart;
|
import com.minelittlepony.model.BodyPart;
|
||||||
import com.minelittlepony.model.pony.ModelPlayerPony;
|
import com.minelittlepony.model.pony.ModelPlayerPony;
|
||||||
|
import com.minelittlepony.pony.data.IPonyData;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package com.minelittlepony.renderer.player;
|
package com.minelittlepony.renderer.player;
|
||||||
|
|
||||||
import com.minelittlepony.MineLittlePony;
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.Pony;
|
|
||||||
import com.minelittlepony.ducks.IRenderManager;
|
import com.minelittlepony.ducks.IRenderManager;
|
||||||
import com.minelittlepony.ducks.IRenderPony;
|
import com.minelittlepony.ducks.IRenderPony;
|
||||||
import com.minelittlepony.model.AbstractPonyModel;
|
import com.minelittlepony.model.AbstractPonyModel;
|
||||||
import com.minelittlepony.model.PlayerModel;
|
import com.minelittlepony.model.PlayerModel;
|
||||||
import com.minelittlepony.model.pony.ModelPlayerPony;
|
import com.minelittlepony.model.pony.ModelPlayerPony;
|
||||||
|
import com.minelittlepony.pony.data.Pony;
|
||||||
import com.minelittlepony.renderer.layer.LayerEntityOnPonyShoulder;
|
import com.minelittlepony.renderer.layer.LayerEntityOnPonyShoulder;
|
||||||
import com.minelittlepony.renderer.layer.LayerHeldPonyItem;
|
import com.minelittlepony.renderer.layer.LayerHeldPonyItem;
|
||||||
import com.minelittlepony.renderer.layer.LayerPonyArmor;
|
import com.minelittlepony.renderer.layer.LayerPonyArmor;
|
||||||
|
|
Loading…
Reference in a new issue