Admittedly his was a better way of doing it. Especially not that models are more hierarchical in nature

This commit is contained in:
Sollace 2018-08-17 23:18:54 +02:00
parent be96ffd894
commit 6c50f40881
8 changed files with 1 additions and 24 deletions

View file

@ -26,12 +26,11 @@ import net.minecraft.util.math.MathHelper;
import java.util.Random;
import static net.minecraft.client.renderer.GlStateManager.*;
import static com.minelittlepony.model.PonyModelConstants.*;
/**
* Foundation class for all types of ponies.
*/
public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
public abstract class AbstractPonyModel extends ModelPlayer implements IModel, PonyModelConstants {
public boolean isSleeping;
public boolean isFlying;

View file

@ -1,7 +1,5 @@
package com.minelittlepony.model;
import static com.minelittlepony.model.PonyModelConstants.PI;
import com.minelittlepony.model.player.ModelAlicorn;
import net.minecraft.client.model.ModelRenderer;

View file

@ -8,8 +8,6 @@ import com.minelittlepony.model.capabilities.IModel;
import com.minelittlepony.model.capabilities.IModelArmor;
import com.minelittlepony.render.PonyRenderer;
import static com.minelittlepony.model.PonyModelConstants.*;
public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
public PonyRenderer chestPiece;

View file

@ -9,8 +9,6 @@ import net.minecraft.util.math.MathHelper;
import com.minelittlepony.model.capabilities.IModelUnicorn;
import static com.minelittlepony.model.PonyModelConstants.*;
/**
* Used for both unicorns and alicorns since there's no logical way to keep them distinct and not duplicate stuff.
*/

View file

@ -9,14 +9,6 @@ import net.minecraft.util.math.MathHelper;
import com.minelittlepony.model.components.PonySnout;
import com.minelittlepony.render.PonyRenderer;
import static com.minelittlepony.model.PonyModelConstants.HEAD_CENTRE_X;
import static com.minelittlepony.model.PonyModelConstants.HEAD_CENTRE_Y;
import static com.minelittlepony.model.PonyModelConstants.HEAD_CENTRE_Z;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_X;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_Y;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_Z;
import static com.minelittlepony.model.PonyModelConstants.LEFT_WING_ROTATE_ANGLE_Z_SNEAK;
public class ModelEnderStallion extends ModelSkeletonPony {
public boolean isCarrying;

View file

@ -9,8 +9,6 @@ import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;
import net.minecraft.util.math.MathHelper;
import static com.minelittlepony.model.PonyModelConstants.*;
public class ModelSeapony extends ModelUnicorn {
private static final float FIN_ROTY = PI / 6;

View file

@ -4,7 +4,6 @@ import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityZombieVillager;
import net.minecraft.entity.passive.EntityVillager;
import static com.minelittlepony.model.PonyModelConstants.*;
import com.minelittlepony.model.components.SaddleBags;
import com.minelittlepony.model.player.ModelAlicorn;

View file

@ -8,11 +8,6 @@ import net.minecraft.entity.monster.EntityWitch;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_X;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_Y;
import static com.minelittlepony.model.PonyModelConstants.HEAD_RP_Z;
import static com.minelittlepony.model.PonyModelConstants.PI;
import com.minelittlepony.model.player.ModelZebra;
import com.minelittlepony.render.PonyRenderer;