diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
| commit | 420faddca46e70e3a70def168fb4e452ef193b0d (patch) | |
| tree | 247e334012e4bf9e4fa6d42718bf601ce6bd42d9 /java/darkknight/jewelrycraft/model/ModelDisplayer.java | |
| parent | 3f4c717de5ebc9b942d65ae45ac87c43bdf8a31b (diff) | |
Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :)
Diffstat (limited to 'java/darkknight/jewelrycraft/model/ModelDisplayer.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/model/ModelDisplayer.java | 32 |
1 files changed, 28 insertions, 4 deletions
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); } - } |
