summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/model/ModelDisplayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/darkknight/jewelrycraft/model/ModelDisplayer.java')
-rw-r--r--java/darkknight/jewelrycraft/model/ModelDisplayer.java32
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);
}
-
}