mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Admittedly his was a better way of doing it. Especially not that models are more hierarchical in nature
This commit is contained in:
parent
be96ffd894
commit
6c50f40881
8 changed files with 1 additions and 24 deletions
|
@ -26,12 +26,11 @@ import net.minecraft.util.math.MathHelper;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import static net.minecraft.client.renderer.GlStateManager.*;
|
import static net.minecraft.client.renderer.GlStateManager.*;
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Foundation class for all types of ponies.
|
* 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 isSleeping;
|
||||||
public boolean isFlying;
|
public boolean isFlying;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package com.minelittlepony.model;
|
package com.minelittlepony.model;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.PI;
|
|
||||||
|
|
||||||
import com.minelittlepony.model.player.ModelAlicorn;
|
import com.minelittlepony.model.player.ModelAlicorn;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
|
|
|
@ -8,8 +8,6 @@ import com.minelittlepony.model.capabilities.IModel;
|
||||||
import com.minelittlepony.model.capabilities.IModelArmor;
|
import com.minelittlepony.model.capabilities.IModelArmor;
|
||||||
import com.minelittlepony.render.PonyRenderer;
|
import com.minelittlepony.render.PonyRenderer;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
|
||||||
|
|
||||||
public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
|
public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
|
||||||
|
|
||||||
public PonyRenderer chestPiece;
|
public PonyRenderer chestPiece;
|
||||||
|
|
|
@ -9,8 +9,6 @@ import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.model.capabilities.IModelUnicorn;
|
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.
|
* Used for both unicorns and alicorns since there's no logical way to keep them distinct and not duplicate stuff.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -9,14 +9,6 @@ import net.minecraft.util.math.MathHelper;
|
||||||
import com.minelittlepony.model.components.PonySnout;
|
import com.minelittlepony.model.components.PonySnout;
|
||||||
import com.minelittlepony.render.PonyRenderer;
|
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 class ModelEnderStallion extends ModelSkeletonPony {
|
||||||
|
|
||||||
public boolean isCarrying;
|
public boolean isCarrying;
|
||||||
|
|
|
@ -9,8 +9,6 @@ import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
|
||||||
|
|
||||||
public class ModelSeapony extends ModelUnicorn {
|
public class ModelSeapony extends ModelUnicorn {
|
||||||
|
|
||||||
private static final float FIN_ROTY = PI / 6;
|
private static final float FIN_ROTY = PI / 6;
|
||||||
|
|
|
@ -4,7 +4,6 @@ import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.monster.EntityZombieVillager;
|
import net.minecraft.entity.monster.EntityZombieVillager;
|
||||||
import net.minecraft.entity.passive.EntityVillager;
|
import net.minecraft.entity.passive.EntityVillager;
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
|
||||||
|
|
||||||
import com.minelittlepony.model.components.SaddleBags;
|
import com.minelittlepony.model.components.SaddleBags;
|
||||||
import com.minelittlepony.model.player.ModelAlicorn;
|
import com.minelittlepony.model.player.ModelAlicorn;
|
||||||
|
|
|
@ -8,11 +8,6 @@ import net.minecraft.entity.monster.EntityWitch;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.util.math.MathHelper;
|
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.model.player.ModelZebra;
|
||||||
import com.minelittlepony.render.PonyRenderer;
|
import com.minelittlepony.render.PonyRenderer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue