From 420faddca46e70e3a70def168fb4e452ef193b0d Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Sat, 21 Feb 2015 21:31:16 +0000 Subject: Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :) --- .../jewelrycraft/model/ModelDisplayer.java | 32 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'java/darkknight/jewelrycraft/model/ModelDisplayer.java') diff --git a/java/darkknight/jewelrycraft/model/ModelDisplayer.java b/java/darkknight/jewelrycraft/model/ModelDisplayer.java index 3a45957..065b87b 100644 --- a/java/darkknight/jewelrycraft/model/ModelDisplayer.java +++ b/java/darkknight/jewelrycraft/model/ModelDisplayer.java @@ -1,10 +1,9 @@ package darkknight.jewelrycraft.model; -import org.lwjgl.opengl.GL11; - import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; +import org.lwjgl.opengl.GL11; public class ModelDisplayer extends ModelBase { @@ -35,11 +34,13 @@ public class ModelDisplayer extends ModelBase ModelRenderer Ring311; ModelRenderer Ring312; + /** + * + */ public ModelDisplayer() { textureWidth = 64; textureHeight = 32; - Base = new ModelRenderer(this, 0, 0); Base.addBox(0F, 0F, 0F, 16, 3, 16); Base.setRotationPoint(-8F, 21F, -8F); @@ -192,6 +193,16 @@ public class ModelDisplayer extends ModelBase setRotation(Ring312, 0F, 0F, 0F); } + /** + * @param entity + * @param f + * @param f1 + * @param f2 + * @param f3 + * @param f4 + * @param f5 + */ + @Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { GL11.glPushMatrix(); @@ -226,6 +237,12 @@ public class ModelDisplayer extends ModelBase GL11.glPopMatrix(); } + /** + * @param model + * @param x + * @param y + * @param z + */ private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; @@ -233,9 +250,16 @@ public class ModelDisplayer extends ModelBase model.rotateAngleZ = z; } + /** + * @param f + * @param f1 + * @param f2 + * @param f3 + * @param f4 + * @param f5 + */ public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } - } -- cgit v1.2.3