diff options
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/model')
5 files changed, 370 insertions, 915 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java b/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java index b8e8da2..0323c1d 100644 --- a/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java +++ b/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java @@ -75,7 +75,7 @@ public class ModelBracelet extends ModelBase @Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { - GL11.glDisable(GL11.GL_LIGHTING); +// GL11.glDisable(GL11.GL_LIGHTING); if ((int)f3 != -1){ int ingotColor = (int)f3; int red = (ingotColor >> 16) & 0xff; @@ -169,7 +169,7 @@ public class ModelBracelet extends ModelBase GL11.glPopMatrix(); GL11.glDisable(GL11.GL_BLEND); } - GL11.glEnable(GL11.GL_LIGHTING); +// GL11.glEnable(GL11.GL_LIGHTING); } /** diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelEarrings.java b/src/main/java/darkknight/jewelrycraft/model/ModelEarrings.java index f983332..747117a 100644 --- a/src/main/java/darkknight/jewelrycraft/model/ModelEarrings.java +++ b/src/main/java/darkknight/jewelrycraft/model/ModelEarrings.java @@ -76,7 +76,7 @@ public class ModelEarrings extends ModelBase super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); +// GL11.glDisable(GL11.GL_LIGHTING); if ((int)f3 != -1){ int ingotColor = (int)f3; int red = ingotColor >> 16 & 0xff; @@ -102,7 +102,7 @@ public class ModelEarrings extends ModelBase Gem1.render(f5); GL11.glDisable(GL11.GL_BLEND); } - GL11.glEnable(GL11.GL_LIGHTING); +// GL11.glEnable(GL11.GL_LIGHTING); GL11.glPopMatrix(); } diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelMask.java b/src/main/java/darkknight/jewelrycraft/model/ModelMask.java index 5e5edb0..1cf6a7c 100644 --- a/src/main/java/darkknight/jewelrycraft/model/ModelMask.java +++ b/src/main/java/darkknight/jewelrycraft/model/ModelMask.java @@ -1,917 +1,75 @@ package darkknight.jewelrycraft.model; + import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; -public class ModelMask extends ModelBase -{ - ModelRenderer p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126; - public ModelMask() - { - textureWidth = 24; - textureHeight = 24; - p0 = new ModelRenderer(this, 5, 0); - p0.addBox(0F, 0F, 0F, 2, 1, 1); - p0.setRotationPoint(6F, 1F, 3F); - p0.setTextureSize(24, 24); - p0.mirror = true; - - p1 = new ModelRenderer(this, 7, 0); - p1.addBox(0F, 0F, 0F, 3, 1, 1); - p1.setRotationPoint(8F, 1F, 2F); - p1.setTextureSize(24, 24); - p1.mirror = true; - - p2 = new ModelRenderer(this, 10, 0); - p2.addBox(0F, 0F, 0F, 3, 1, 1); - p2.setRotationPoint(11F, 1F, 1F); - p2.setTextureSize(24, 24); - p2.mirror = true; - - p3 = new ModelRenderer(this, 13, 0); - p3.addBox(0F, 0F, 0F, 3, 1, 1); - p3.setRotationPoint(14F, 1F, 2F); - p3.setTextureSize(24, 24); - p3.mirror = true; - - p4 = new ModelRenderer(this, 16, 0); - p4.addBox(0F, 0F, 0F, 2, 1, 1); - p4.setRotationPoint(17F, 1F, 3F); - p4.setTextureSize(24, 24); - p4.mirror = true; - - p5 = new ModelRenderer(this, 4, 1); - p5.addBox(0F, 0F, 0F, 3, 1, 1); - p5.setRotationPoint(5F, 2F, 3F); - p5.setTextureSize(24, 24); - p5.mirror = true; - - p6 = new ModelRenderer(this, 7, 1); - p6.addBox(0F, 0F, 0F, 3, 1, 1); - p6.setRotationPoint(8F, 2F, 2F); - p6.setTextureSize(24, 24); - p6.mirror = true; - - p7 = new ModelRenderer(this, 10, 1); - p7.addBox(0F, 0F, 0F, 3, 1, 1); - p7.setRotationPoint(11F, 2F, 1F); - p7.setTextureSize(24, 24); - p7.mirror = true; - - p8 = new ModelRenderer(this, 13, 1); - p8.addBox(0F, 0F, 0F, 3, 1, 1); - p8.setRotationPoint(14F, 2F, 2F); - p8.setTextureSize(24, 24); - p8.mirror = true; - - p9 = new ModelRenderer(this, 16, 1); - p9.addBox(0F, 0F, 0F, 3, 1, 1); - p9.setRotationPoint(17F, 2F, 3F); - p9.setTextureSize(24, 24); - p9.mirror = true; - - p10 = new ModelRenderer(this, 3, 2); - p10.addBox(0F, 0F, 0F, 1, 1, 1); - p10.setRotationPoint(4F, 3F, 4F); - p10.setTextureSize(24, 24); - p10.mirror = true; - - p11 = new ModelRenderer(this, 4, 2); - p11.addBox(0F, 0F, 0F, 3, 1, 1); - p11.setRotationPoint(5F, 3F, 3F); - p11.setTextureSize(24, 24); - p11.mirror = true; - - p12 = new ModelRenderer(this, 7, 2); - p12.addBox(0F, 0F, 0F, 3, 1, 1); - p12.setRotationPoint(8F, 3F, 2F); - p12.setTextureSize(24, 24); - p12.mirror = true; - - p13 = new ModelRenderer(this, 10, 2); - p13.addBox(0F, 0F, 0F, 3, 1, 1); - p13.setRotationPoint(11F, 3F, 1F); - p13.setTextureSize(24, 24); - p13.mirror = true; - - p14 = new ModelRenderer(this, 13, 2); - p14.addBox(0F, 0F, 0F, 3, 1, 1); - p14.setRotationPoint(14F, 3F, 2F); - p14.setTextureSize(24, 24); - p14.mirror = true; - - p15 = new ModelRenderer(this, 16, 2); - p15.addBox(0F, 0F, 0F, 3, 1, 1); - p15.setRotationPoint(17F, 3F, 3F); - p15.setTextureSize(24, 24); - p15.mirror = true; - - p16 = new ModelRenderer(this, 19, 2); - p16.addBox(0F, 0F, 0F, 1, 1, 1); - p16.setRotationPoint(20F, 3F, 4F); - p16.setTextureSize(24, 24); - p16.mirror = true; - - p17 = new ModelRenderer(this, 2, 3); - p17.addBox(0F, 0F, 0F, 2, 1, 1); - p17.setRotationPoint(3F, 4F, 4F); - p17.setTextureSize(24, 24); - p17.mirror = true; - - p18 = new ModelRenderer(this, 4, 3); - p18.addBox(0F, 0F, 0F, 3, 1, 1); - p18.setRotationPoint(5F, 4F, 3F); - p18.setTextureSize(24, 24); - p18.mirror = true; - - p19 = new ModelRenderer(this, 7, 3); - p19.addBox(0F, 0F, 0F, 3, 1, 1); - p19.setRotationPoint(8F, 4F, 2F); - p19.setTextureSize(24, 24); - p19.mirror = true; - - p20 = new ModelRenderer(this, 10, 3); - p20.addBox(0F, 0F, 0F, 3, 1, 1); - p20.setRotationPoint(11F, 4F, 1F); - p20.setTextureSize(24, 24); - p20.mirror = true; - - p21 = new ModelRenderer(this, 13, 3); - p21.addBox(0F, 0F, 0F, 3, 1, 1); - p21.setRotationPoint(14F, 4F, 2F); - p21.setTextureSize(24, 24); - p21.mirror = true; - - p22 = new ModelRenderer(this, 16, 3); - p22.addBox(0F, 0F, 0F, 3, 1, 1); - p22.setRotationPoint(17F, 4F, 3F); - p22.setTextureSize(24, 24); - p22.mirror = true; - - p23 = new ModelRenderer(this, 19, 3); - p23.addBox(0F, 0F, 0F, 2, 1, 1); - p23.setRotationPoint(20F, 4F, 4F); - p23.setTextureSize(24, 24); - p23.mirror = true; - - p24 = new ModelRenderer(this, 2, 4); - p24.addBox(0F, 0F, 0F, 2, 1, 1); - p24.setRotationPoint(3F, 5F, 4F); - p24.setTextureSize(24, 24); - p24.mirror = true; - - p25 = new ModelRenderer(this, 4, 4); - p25.addBox(0F, 0F, 0F, 3, 1, 1); - p25.setRotationPoint(5F, 5F, 3F); - p25.setTextureSize(24, 24); - p25.mirror = true; - - p26 = new ModelRenderer(this, 7, 4); - p26.addBox(0F, 0F, 0F, 3, 1, 1); - p26.setRotationPoint(8F, 5F, 2F); - p26.setTextureSize(24, 24); - p26.mirror = true; - - p27 = new ModelRenderer(this, 10, 4); - p27.addBox(0F, 0F, 0F, 3, 1, 1); - p27.setRotationPoint(11F, 5F, 1F); - p27.setTextureSize(24, 24); - p27.mirror = true; - - p28 = new ModelRenderer(this, 13, 4); - p28.addBox(0F, 0F, 0F, 3, 1, 1); - p28.setRotationPoint(14F, 5F, 2F); - p28.setTextureSize(24, 24); - p28.mirror = true; - - p29 = new ModelRenderer(this, 16, 4); - p29.addBox(0F, 0F, 0F, 3, 1, 1); - p29.setRotationPoint(17F, 5F, 3F); - p29.setTextureSize(24, 24); - p29.mirror = true; - - p30 = new ModelRenderer(this, 19, 4); - p30.addBox(0F, 0F, 0F, 2, 1, 1); - p30.setRotationPoint(20F, 5F, 4F); - p30.setTextureSize(24, 24); - p30.mirror = true; - - p31 = new ModelRenderer(this, 2, 5); - p31.addBox(0F, 0F, 0F, 2, 1, 1); - p31.setRotationPoint(3F, 6F, 4F); - p31.setTextureSize(24, 24); - p31.mirror = true; - - p32 = new ModelRenderer(this, 4, 5); - p32.addBox(0F, 0F, 0F, 3, 1, 1); - p32.setRotationPoint(5F, 6F, 3F); - p32.setTextureSize(24, 24); - p32.mirror = true; - - p33 = new ModelRenderer(this, 7, 5); - p33.addBox(0F, 0F, 0F, 3, 1, 1); - p33.setRotationPoint(8F, 6F, 2F); - p33.setTextureSize(24, 24); - p33.mirror = true; - - p34 = new ModelRenderer(this, 10, 5); - p34.addBox(0F, 0F, 0F, 3, 1, 1); - p34.setRotationPoint(11F, 6F, 1F); - p34.setTextureSize(24, 24); - p34.mirror = true; - - p35 = new ModelRenderer(this, 13, 5); - p35.addBox(0F, 0F, 0F, 3, 1, 1); - p35.setRotationPoint(14F, 6F, 2F); - p35.setTextureSize(24, 24); - p35.mirror = true; - - p36 = new ModelRenderer(this, 16, 5); - p36.addBox(0F, 0F, 0F, 3, 1, 1); - p36.setRotationPoint(17F, 6F, 3F); - p36.setTextureSize(24, 24); - p36.mirror = true; - - p37 = new ModelRenderer(this, 19, 5); - p37.addBox(0F, 0F, 0F, 2, 1, 1); - p37.setRotationPoint(20F, 6F, 4F); - p37.setTextureSize(24, 24); - p37.mirror = true; - - p38 = new ModelRenderer(this, 2, 6); - p38.addBox(0F, 0F, 0F, 2, 1, 1); - p38.setRotationPoint(3F, 7F, 4F); - p38.setTextureSize(24, 24); - p38.mirror = true; - - p39 = new ModelRenderer(this, 4, 6); - p39.addBox(0F, 0F, 0F, 3, 1, 1); - p39.setRotationPoint(5F, 7F, 3F); - p39.setTextureSize(24, 24); - p39.mirror = true; - - p40 = new ModelRenderer(this, 7, 6); - p40.addBox(0F, 0F, 0F, 3, 1, 1); - p40.setRotationPoint(8F, 7F, 2F); - p40.setTextureSize(24, 24); - p40.mirror = true; - - p41 = new ModelRenderer(this, 10, 6); - p41.addBox(0F, 0F, 0F, 3, 1, 1); - p41.setRotationPoint(11F, 7F, 1F); - p41.setTextureSize(24, 24); - p41.mirror = true; - - p42 = new ModelRenderer(this, 13, 6); - p42.addBox(0F, 0F, 0F, 3, 1, 1); - p42.setRotationPoint(14F, 7F, 2F); - p42.setTextureSize(24, 24); - p42.mirror = true; - - p43 = new ModelRenderer(this, 16, 6); - p43.addBox(0F, 0F, 0F, 3, 1, 1); - p43.setRotationPoint(17F, 7F, 3F); - p43.setTextureSize(24, 24); - p43.mirror = true; - - p44 = new ModelRenderer(this, 19, 6); - p44.addBox(0F, 0F, 0F, 2, 1, 1); - p44.setRotationPoint(20F, 7F, 4F); - p44.setTextureSize(24, 24); - p44.mirror = true; - - p45 = new ModelRenderer(this, 2, 7); - p45.addBox(0F, 0F, 0F, 2, 1, 1); - p45.setRotationPoint(3F, 8F, 4F); - p45.setTextureSize(24, 24); - p45.mirror = true; - - p46 = new ModelRenderer(this, 4, 7); - p46.addBox(0F, 0F, 0F, 3, 1, 1); - p46.setRotationPoint(5F, 8F, 3F); - p46.setTextureSize(24, 24); - p46.mirror = true; - - p47 = new ModelRenderer(this, 7, 7); - p47.addBox(0F, 0F, 0F, 3, 1, 1); - p47.setRotationPoint(8F, 8F, 2F); - p47.setTextureSize(24, 24); - p47.mirror = true; - - p48 = new ModelRenderer(this, 10, 7); - p48.addBox(0F, 0F, 0F, 3, 1, 1); - p48.setRotationPoint(11F, 8F, 1F); - p48.setTextureSize(24, 24); - p48.mirror = true; - - p49 = new ModelRenderer(this, 13, 7); - p49.addBox(0F, 0F, 0F, 3, 1, 1); - p49.setRotationPoint(14F, 8F, 2F); - p49.setTextureSize(24, 24); - p49.mirror = true; - - p50 = new ModelRenderer(this, 16, 7); - p50.addBox(0F, 0F, 0F, 3, 1, 1); - p50.setRotationPoint(17F, 8F, 3F); - p50.setTextureSize(24, 24); - p50.mirror = true; - - p51 = new ModelRenderer(this, 19, 7); - p51.addBox(0F, 0F, 0F, 2, 1, 1); - p51.setRotationPoint(20F, 8F, 4F); - p51.setTextureSize(24, 24); - p51.mirror = true; - - p52 = new ModelRenderer(this, 2, 8); - p52.addBox(0F, 0F, 0F, 2, 1, 1); - p52.setRotationPoint(3F, 9F, 4F); - p52.setTextureSize(24, 24); - p52.mirror = true; - - p53 = new ModelRenderer(this, 4, 8); - p53.addBox(0F, 0F, 0F, 3, 1, 1); - p53.setRotationPoint(5F, 9F, 3F); - p53.setTextureSize(24, 24); - p53.mirror = true; - - p54 = new ModelRenderer(this, 7, 8); - p54.addBox(0F, 0F, 0F, 3, 1, 1); - p54.setRotationPoint(8F, 9F, 2F); - p54.setTextureSize(24, 24); - p54.mirror = true; - - p55 = new ModelRenderer(this, 10, 8); - p55.addBox(0F, 0F, 0F, 3, 1, 1); - p55.setRotationPoint(11F, 9F, 1F); - p55.setTextureSize(24, 24); - p55.mirror = true; - - p56 = new ModelRenderer(this, 13, 8); - p56.addBox(0F, 0F, 0F, 3, 1, 1); - p56.setRotationPoint(14F, 9F, 2F); - p56.setTextureSize(24, 24); - p56.mirror = true; - - p57 = new ModelRenderer(this, 16, 8); - p57.addBox(0F, 0F, 0F, 3, 1, 1); - p57.setRotationPoint(17F, 9F, 3F); - p57.setTextureSize(24, 24); - p57.mirror = true; - - p58 = new ModelRenderer(this, 19, 8); - p58.addBox(0F, 0F, 0F, 2, 1, 1); - p58.setRotationPoint(20F, 9F, 4F); - p58.setTextureSize(24, 24); - p58.mirror = true; - - p59 = new ModelRenderer(this, 2, 9); - p59.addBox(0F, 0F, 0F, 2, 1, 1); - p59.setRotationPoint(3F, 10F, 4F); - p59.setTextureSize(24, 24); - p59.mirror = true; - - p60 = new ModelRenderer(this, 4, 9); - p60.addBox(0F, 0F, 0F, 3, 1, 1); - p60.setRotationPoint(5F, 10F, 3F); - p60.setTextureSize(24, 24); - p60.mirror = true; - - p61 = new ModelRenderer(this, 7, 9); - p61.addBox(0F, 0F, 0F, 3, 1, 1); - p61.setRotationPoint(8F, 10F, 2F); - p61.setTextureSize(24, 24); - p61.mirror = true; - - p62 = new ModelRenderer(this, 10, 9); - p62.addBox(0F, 0F, 0F, 3, 1, 1); - p62.setRotationPoint(11F, 10F, 1F); - p62.setTextureSize(24, 24); - p62.mirror = true; - - p63 = new ModelRenderer(this, 13, 9); - p63.addBox(0F, 0F, 0F, 3, 1, 1); - p63.setRotationPoint(14F, 10F, 2F); - p63.setTextureSize(24, 24); - p63.mirror = true; - - p64 = new ModelRenderer(this, 16, 9); - p64.addBox(0F, 0F, 0F, 3, 1, 1); - p64.setRotationPoint(17F, 10F, 3F); - p64.setTextureSize(24, 24); - p64.mirror = true; - - p65 = new ModelRenderer(this, 19, 9); - p65.addBox(0F, 0F, 0F, 2, 1, 1); - p65.setRotationPoint(20F, 10F, 4F); - p65.setTextureSize(24, 24); - p65.mirror = true; - - p66 = new ModelRenderer(this, 2, 10); - p66.addBox(0F, 0F, 0F, 2, 1, 1); - p66.setRotationPoint(3F, 11F, 4F); - p66.setTextureSize(24, 24); - p66.mirror = true; - - p67 = new ModelRenderer(this, 4, 10); - p67.addBox(0F, 0F, 0F, 3, 1, 1); - p67.setRotationPoint(5F, 11F, 3F); - p67.setTextureSize(24, 24); - p67.mirror = true; - - p68 = new ModelRenderer(this, 7, 10); - p68.addBox(0F, 0F, 0F, 3, 1, 1); - p68.setRotationPoint(8F, 11F, 2F); - p68.setTextureSize(24, 24); - p68.mirror = true; - - p69 = new ModelRenderer(this, 10, 10); - p69.addBox(0F, 0F, 0F, 3, 1, 1); - p69.setRotationPoint(11F, 11F, 1F); - p69.setTextureSize(24, 24); - p69.mirror = true; - - p70 = new ModelRenderer(this, 13, 10); - p70.addBox(0F, 0F, 0F, 3, 1, 1); - p70.setRotationPoint(14F, 11F, 2F); - p70.setTextureSize(24, 24); - p70.mirror = true; - - p71 = new ModelRenderer(this, 16, 10); - p71.addBox(0F, 0F, 0F, 3, 1, 1); - p71.setRotationPoint(17F, 11F, 3F); - p71.setTextureSize(24, 24); - p71.mirror = true; - - p72 = new ModelRenderer(this, 19, 10); - p72.addBox(0F, 0F, 0F, 2, 1, 1); - p72.setRotationPoint(20F, 11F, 4F); - p72.setTextureSize(24, 24); - p72.mirror = true; - - p73 = new ModelRenderer(this, 2, 11); - p73.addBox(0F, 0F, 0F, 2, 1, 1); - p73.setRotationPoint(3F, 12F, 4F); - p73.setTextureSize(24, 24); - p73.mirror = true; - - p74 = new ModelRenderer(this, 4, 11); - p74.addBox(0F, 0F, 0F, 3, 1, 1); - p74.setRotationPoint(5F, 12F, 3F); - p74.setTextureSize(24, 24); - p74.mirror = true; - - p75 = new ModelRenderer(this, 7, 11); - p75.addBox(0F, 0F, 0F, 3, 1, 1); - p75.setRotationPoint(8F, 12F, 2F); - p75.setTextureSize(24, 24); - p75.mirror = true; - - p76 = new ModelRenderer(this, 10, 11); - p76.addBox(0F, 0F, 0F, 3, 1, 1); - p76.setRotationPoint(11F, 12F, 1F); - p76.setTextureSize(24, 24); - p76.mirror = true; - - p77 = new ModelRenderer(this, 13, 11); - p77.addBox(0F, 0F, 0F, 3, 1, 1); - p77.setRotationPoint(14F, 12F, 2F); - p77.setTextureSize(24, 24); - p77.mirror = true; - - p78 = new ModelRenderer(this, 16, 11); - p78.addBox(0F, 0F, 0F, 3, 1, 1); - p78.setRotationPoint(17F, 12F, 3F); - p78.setTextureSize(24, 24); - p78.mirror = true; - - p79 = new ModelRenderer(this, 19, 11); - p79.addBox(0F, 0F, 0F, 2, 1, 1); - p79.setRotationPoint(20F, 12F, 4F); - p79.setTextureSize(24, 24); - p79.mirror = true; - - p80 = new ModelRenderer(this, 3, 12); - p80.addBox(0F, 0F, 0F, 1, 1, 1); - p80.setRotationPoint(4F, 13F, 4F); - p80.setTextureSize(24, 24); - p80.mirror = true; - - p81 = new ModelRenderer(this, 4, 12); - p81.addBox(0F, 0F, 0F, 3, 1, 1); - p81.setRotationPoint(5F, 13F, 3F); - p81.setTextureSize(24, 24); - p81.mirror = true; - - p82 = new ModelRenderer(this, 7, 12); - p82.addBox(0F, 0F, 0F, 3, 1, 1); - p82.setRotationPoint(8F, 13F, 2F); - p82.setTextureSize(24, 24); - p82.mirror = true; - - p83 = new ModelRenderer(this, 10, 12); - p83.addBox(0F, 0F, 0F, 3, 1, 1); - p83.setRotationPoint(11F, 13F, 1F); - p83.setTextureSize(24, 24); - p83.mirror = true; - - p84 = new ModelRenderer(this, 13, 12); - p84.addBox(0F, 0F, 0F, 3, 1, 1); - p84.setRotationPoint(14F, 13F, 2F); - p84.setTextureSize(24, 24); - p84.mirror = true; - - p85 = new ModelRenderer(this, 16, 12); - p85.addBox(0F, 0F, 0F, 3, 1, 1); - p85.setRotationPoint(17F, 13F, 3F); - p85.setTextureSize(24, 24); - p85.mirror = true; - - p86 = new ModelRenderer(this, 19, 12); - p86.addBox(0F, 0F, 0F, 1, 1, 1); - p86.setRotationPoint(20F, 13F, 4F); - p86.setTextureSize(24, 24); - p86.mirror = true; - - p87 = new ModelRenderer(this, 3, 13); - p87.addBox(0F, 0F, 0F, 1, 1, 1); - p87.setRotationPoint(4F, 14F, 4F); - p87.setTextureSize(24, 24); - p87.mirror = true; - - p88 = new ModelRenderer(this, 4, 13); - p88.addBox(0F, 0F, 0F, 3, 1, 1); - p88.setRotationPoint(5F, 14F, 3F); - p88.setTextureSize(24, 24); - p88.mirror = true; - - p89 = new ModelRenderer(this, 7, 13); - p89.addBox(0F, 0F, 0F, 3, 1, 1); - p89.setRotationPoint(8F, 14F, 2F); - p89.setTextureSize(24, 24); - p89.mirror = true; - - p90 = new ModelRenderer(this, 10, 13); - p90.addBox(0F, 0F, 0F, 3, 1, 1); - p90.setRotationPoint(11F, 14F, 1F); - p90.setTextureSize(24, 24); - p90.mirror = true; - - p91 = new ModelRenderer(this, 13, 13); - p91.addBox(0F, 0F, 0F, 3, 1, 1); - p91.setRotationPoint(14F, 14F, 2F); - p91.setTextureSize(24, 24); - p91.mirror = true; - - p92 = new ModelRenderer(this, 16, 13); - p92.addBox(0F, 0F, 0F, 3, 1, 1); - p92.setRotationPoint(17F, 14F, 3F); - p92.setTextureSize(24, 24); - p92.mirror = true; - - p93 = new ModelRenderer(this, 19, 13); - p93.addBox(0F, 0F, 0F, 1, 1, 1); - p93.setRotationPoint(20F, 14F, 4F); - p93.setTextureSize(24, 24); - p93.mirror = true; - - p94 = new ModelRenderer(this, 3, 14); - p94.addBox(0F, 0F, 0F, 1, 1, 1); - p94.setRotationPoint(4F, 15F, 4F); - p94.setTextureSize(24, 24); - p94.mirror = true; - - p95 = new ModelRenderer(this, 4, 14); - p95.addBox(0F, 0F, 0F, 3, 1, 1); - p95.setRotationPoint(5F, 15F, 3F); - p95.setTextureSize(24, 24); - p95.mirror = true; - - p96 = new ModelRenderer(this, 7, 14); - p96.addBox(0F, 0F, 0F, 3, 1, 1); - p96.setRotationPoint(8F, 15F, 2F); - p96.setTextureSize(24, 24); - p96.mirror = true; - - p97 = new ModelRenderer(this, 10, 14); - p97.addBox(0F, 0F, 0F, 3, 1, 1); - p97.setRotationPoint(11F, 15F, 1F); - p97.setTextureSize(24, 24); - p97.mirror = true; - - p98 = new ModelRenderer(this, 13, 14); - p98.addBox(0F, 0F, 0F, 3, 1, 1); - p98.setRotationPoint(14F, 15F, 2F); - p98.setTextureSize(24, 24); - p98.mirror = true; - - p99 = new ModelRenderer(this, 16, 14); - p99.addBox(0F, 0F, 0F, 3, 1, 1); - p99.setRotationPoint(17F, 15F, 3F); - p99.setTextureSize(24, 24); - p99.mirror = true; - - p100 = new ModelRenderer(this, 19, 14); - p100.addBox(0F, 0F, 0F, 1, 1, 1); - p100.setRotationPoint(20F, 15F, 4F); - p100.setTextureSize(24, 24); - p100.mirror = true; - - p101 = new ModelRenderer(this, 4, 15); - p101.addBox(0F, 0F, 0F, 3, 1, 1); - p101.setRotationPoint(5F, 16F, 3F); - p101.setTextureSize(24, 24); - p101.mirror = true; - - p102 = new ModelRenderer(this, 7, 15); - p102.addBox(0F, 0F, 0F, 3, 1, 1); - p102.setRotationPoint(8F, 16F, 2F); - p102.setTextureSize(24, 24); - p102.mirror = true; - - p103 = new ModelRenderer(this, 10, 15); - p103.addBox(0F, 0F, 0F, 3, 1, 1); - p103.setRotationPoint(11F, 16F, 1F); - p103.setTextureSize(24, 24); - p103.mirror = true; - - p104 = new ModelRenderer(this, 13, 15); - p104.addBox(0F, 0F, 0F, 3, 1, 1); - p104.setRotationPoint(14F, 16F, 2F); - p104.setTextureSize(24, 24); - p104.mirror = true; - - p105 = new ModelRenderer(this, 16, 15); - p105.addBox(0F, 0F, 0F, 3, 1, 1); - p105.setRotationPoint(17F, 16F, 3F); - p105.setTextureSize(24, 24); - p105.mirror = true; - - p106 = new ModelRenderer(this, 4, 16); - p106.addBox(0F, 0F, 0F, 3, 1, 1); - p106.setRotationPoint(5F, 17F, 3F); - p106.setTextureSize(24, 24); - p106.mirror = true; - - p107 = new ModelRenderer(this, 7, 16); - p107.addBox(0F, 0F, 0F, 3, 1, 1); - p107.setRotationPoint(8F, 17F, 2F); - p107.setTextureSize(24, 24); - p107.mirror = true; - - p108 = new ModelRenderer(this, 10, 16); - p108.addBox(0F, 0F, 0F, 3, 1, 1); - p108.setRotationPoint(11F, 17F, 1F); - p108.setTextureSize(24, 24); - p108.mirror = true; - - p109 = new ModelRenderer(this, 13, 16); - p109.addBox(0F, 0F, 0F, 3, 1, 1); - p109.setRotationPoint(14F, 17F, 2F); - p109.setTextureSize(24, 24); - p109.mirror = true; - - p110 = new ModelRenderer(this, 16, 16); - p110.addBox(0F, 0F, 0F, 3, 1, 1); - p110.setRotationPoint(17F, 17F, 3F); - p110.setTextureSize(24, 24); - p110.mirror = true; - - p111 = new ModelRenderer(this, 5, 17); - p111.addBox(0F, 0F, 0F, 2, 1, 1); - p111.setRotationPoint(6F, 18F, 3F); - p111.setTextureSize(24, 24); - p111.mirror = true; - - p112 = new ModelRenderer(this, 7, 17); - p112.addBox(0F, 0F, 0F, 3, 1, 1); - p112.setRotationPoint(8F, 18F, 2F); - p112.setTextureSize(24, 24); - p112.mirror = true; - - p113 = new ModelRenderer(this, 10, 17); - p113.addBox(0F, 0F, 0F, 3, 1, 1); - p113.setRotationPoint(11F, 18F, 1F); - p113.setTextureSize(24, 24); - p113.mirror = true; - - p114 = new ModelRenderer(this, 13, 17); - p114.addBox(0F, 0F, 0F, 3, 1, 1); - p114.setRotationPoint(14F, 18F, 2F); - p114.setTextureSize(24, 24); - p114.mirror = true; - - p115 = new ModelRenderer(this, 16, 17); - p115.addBox(0F, 0F, 0F, 2, 1, 1); - p115.setRotationPoint(17F, 18F, 3F); - p115.setTextureSize(24, 24); - p115.mirror = true; - - p116 = new ModelRenderer(this, 6, 18); - p116.addBox(0F, 0F, 0F, 1, 1, 1); - p116.setRotationPoint(7F, 19F, 3F); - p116.setTextureSize(24, 24); - p116.mirror = true; - - p117 = new ModelRenderer(this, 7, 18); - p117.addBox(0F, 0F, 0F, 3, 1, 1); - p117.setRotationPoint(8F, 19F, 2F); - p117.setTextureSize(24, 24); - p117.mirror = true; - - p118 = new ModelRenderer(this, 10, 18); - p118.addBox(0F, 0F, 0F, 3, 1, 1); - p118.setRotationPoint(11F, 19F, 1F); - p118.setTextureSize(24, 24); - p118.mirror = true; - - p119 = new ModelRenderer(this, 13, 18); - p119.addBox(0F, 0F, 0F, 3, 1, 1); - p119.setRotationPoint(14F, 19F, 2F); - p119.setTextureSize(24, 24); - p119.mirror = true; - - p120 = new ModelRenderer(this, 16, 18); - p120.addBox(0F, 0F, 0F, 1, 1, 1); - p120.setRotationPoint(17F, 19F, 3F); - p120.setTextureSize(24, 24); - p120.mirror = true; - - p121 = new ModelRenderer(this, 7, 19); - p121.addBox(0F, 0F, 0F, 3, 1, 1); - p121.setRotationPoint(8F, 20F, 2F); - p121.setTextureSize(24, 24); - p121.mirror = true; - - p122 = new ModelRenderer(this, 10, 19); - p122.addBox(0F, 0F, 0F, 3, 1, 1); - p122.setRotationPoint(11F, 20F, 1F); - p122.setTextureSize(24, 24); - p122.mirror = true; - - p123 = new ModelRenderer(this, 13, 19); - p123.addBox(0F, 0F, 0F, 3, 1, 1); - p123.setRotationPoint(14F, 20F, 2F); - p123.setTextureSize(24, 24); - p123.mirror = true; - - p124 = new ModelRenderer(this, 8, 20); - p124.addBox(0F, 0F, 0F, 2, 1, 1); - p124.setRotationPoint(9F, 21F, 2F); - p124.setTextureSize(24, 24); - p124.mirror = true; - - p125 = new ModelRenderer(this, 10, 20); - p125.addBox(0F, 0F, 0F, 3, 1, 1); - p125.setRotationPoint(11F, 21F, 1F); - p125.setTextureSize(24, 24); - p125.mirror = true; - - p126 = new ModelRenderer(this, 13, 20); - p126.addBox(0F, 0F, 0F, 2, 1, 1); - p126.setRotationPoint(14F, 21F, 2F); - p126.setTextureSize(24, 24); - p126.mirror = true; - } - public void render(Entity entity, float f1, float f2, float f3, float f4, float f5, float f6) - { - super.render(entity, f1, f2, f3, f4, f5, f6); - setRotationAngles(f1, f2, f3, f4, f5, f6); - p0.render(f6); - p1.render(f6); - p2.render(f6); - p3.render(f6); - p4.render(f6); - p5.render(f6); - p6.render(f6); - p7.render(f6); - p8.render(f6); - p9.render(f6); - p10.render(f6); - p11.render(f6); - p12.render(f6); - p13.render(f6); - p14.render(f6); - p15.render(f6); - p16.render(f6); - p17.render(f6); - p18.render(f6); - p19.render(f6); - p20.render(f6); - p21.render(f6); - p22.render(f6); - p23.render(f6); - p24.render(f6); - p25.render(f6); - p26.render(f6); - p27.render(f6); - p28.render(f6); - p29.render(f6); - p30.render(f6); - p31.render(f6); - p32.render(f6); - p33.render(f6); - p34.render(f6); - p35.render(f6); - p36.render(f6); - p37.render(f6); - p38.render(f6); - p39.render(f6); - p40.render(f6); - p41.render(f6); - p42.render(f6); - p43.render(f6); - p44.render(f6); - p45.render(f6); - p46.render(f6); - p47.render(f6); - p48.render(f6); - p49.render(f6); - p50.render(f6); - p51.render(f6); - p52.render(f6); - p53.render(f6); - p54.render(f6); - p55.render(f6); - p56.render(f6); - p57.render(f6); - p58.render(f6); - p59.render(f6); - p60.render(f6); - p61.render(f6); - p62.render(f6); - p63.render(f6); - p64.render(f6); - p65.render(f6); - p66.render(f6); - p67.render(f6); - p68.render(f6); - p69.render(f6); - p70.render(f6); - p71.render(f6); - p72.render(f6); - p73.render(f6); - p74.render(f6); - p75.render(f6); - p76.render(f6); - p77.render(f6); - p78.render(f6); - p79.render(f6); - p80.render(f6); - p81.render(f6); - p82.render(f6); - p83.render(f6); - p84.render(f6); - p85.render(f6); - p86.render(f6); - p87.render(f6); - p88.render(f6); - p89.render(f6); - p90.render(f6); - p91.render(f6); - p92.render(f6); - p93.render(f6); - p94.render(f6); - p95.render(f6); - p96.render(f6); - p97.render(f6); - p98.render(f6); - p99.render(f6); - p100.render(f6); - p101.render(f6); - p102.render(f6); - p103.render(f6); - p104.render(f6); - p105.render(f6); - p106.render(f6); - p107.render(f6); - p108.render(f6); - p109.render(f6); - p110.render(f6); - p111.render(f6); - p112.render(f6); - p113.render(f6); - p114.render(f6); - p115.render(f6); - p116.render(f6); - p117.render(f6); - p118.render(f6); - p119.render(f6); - p120.render(f6); - p121.render(f6); - p122.render(f6); - p123.render(f6); - p124.render(f6); - p125.render(f6); - p126.render(f6); - } - private void setRotation(ModelRenderer model, float x, float y, float z) - { - model.rotateAngleX = x; - model.rotateAngleY = y; - model.rotateAngleZ = z; - } - public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) - { - super.setRotationAngles(f, f1, f2, f3, f4, f5, null); - } +/** + * ModelMask - OnyxDarkKnight + * Created using Tabula 4.1.1 + */ +public class ModelMask extends ModelBase { + public ModelRenderer shape1; + public ModelRenderer shape2; + public ModelRenderer shape3; + public ModelRenderer shape4; + public ModelRenderer shape5; + public ModelRenderer shape6; + public ModelRenderer shape7; + public ModelRenderer shape8; + public ModelRenderer shape9; + + public ModelMask() { + this.textureWidth = 64; + this.textureHeight = 64; + this.shape6 = new ModelRenderer(this, 41, 4); + this.shape6.setRotationPoint(11.0F, 0.0F, 3.0F); + this.shape6.addBox(0.0F, 0.0F, 0.0F, 1, 15, 1, 0.0F); + this.shape7 = new ModelRenderer(this, 41, 4); + this.shape7.setRotationPoint(-3.0F, 0.0F, 3.0F); + this.shape7.addBox(0.0F, 0.0F, 0.0F, 1, 15, 1, 0.0F); + this.shape4 = new ModelRenderer(this, 31, 2); + this.shape4.setRotationPoint(-2.0F, 0.0F, 2.0F); + this.shape4.addBox(0.0F, 0.0F, 0.0F, 1, 17, 1, 0.0F); + this.shape1 = new ModelRenderer(this, 0, 0); + this.shape1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.shape1.addBox(0.0F, 0.0F, 0.0F, 9, 19, 1, 0.0F); + this.shape9 = new ModelRenderer(this, 46, 8); + this.shape9.setRotationPoint(12.0F, 1.0F, 4.0F); + this.shape9.addBox(0.0F, 0.0F, 0.0F, 1, 11, 1, 0.0F); + this.shape5 = new ModelRenderer(this, 36, 2); + this.shape5.setRotationPoint(10.0F, 0.0F, 2.0F); + this.shape5.addBox(0.0F, 0.0F, 0.0F, 1, 17, 1, 0.0F); + this.shape8 = new ModelRenderer(this, 46, 8); + this.shape8.setRotationPoint(-4.0F, 1.0F, 4.0F); + this.shape8.addBox(0.0F, 0.0F, 0.0F, 1, 11, 1, 0.0F); + this.shape3 = new ModelRenderer(this, 26, 1); + this.shape3.setRotationPoint(9.0F, 0.0F, 1.0F); + this.shape3.addBox(0.0F, 0.0F, 0.0F, 1, 18, 1, 0.0F); + this.shape2 = new ModelRenderer(this, 21, 1); + this.shape2.setRotationPoint(-1.0F, 0.0F, 1.0F); + this.shape2.addBox(0.0F, 0.0F, 0.0F, 1, 18, 1, 0.0F); + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { + this.shape6.render(f5); + this.shape7.render(f5); + this.shape4.render(f5); + this.shape1.render(f5); + this.shape9.render(f5); + this.shape5.render(f5); + this.shape8.render(f5); + this.shape3.render(f5); + this.shape2.render(f5); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } } diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelNeckalce.java b/src/main/java/darkknight/jewelrycraft/model/ModelNeckalce.java new file mode 100644 index 0000000..ed754ef --- /dev/null +++ b/src/main/java/darkknight/jewelrycraft/model/ModelNeckalce.java @@ -0,0 +1,173 @@ +package darkknight.jewelrycraft.model; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import org.lwjgl.opengl.GL11; + +/** + * ModelNeckalce - OnyxDarkKnight Created using Tabula 4.1.1 + */ +public class ModelNeckalce extends ModelBase +{ + public ModelRenderer neck1; + public ModelRenderer neck2; + public ModelRenderer neck3; + public ModelRenderer neck4; + public ModelRenderer neck5; + public ModelRenderer neck6; + public ModelRenderer neck7; + public ModelRenderer neck8; + public ModelRenderer neck9; + public ModelRenderer gem; + + public ModelNeckalce() + { + this.textureWidth = 32; + this.textureHeight = 32; + this.neck1 = new ModelRenderer(this, 0, 0); + this.neck1.setRotationPoint(2.0F, 0.0F, -2.5F); + this.neck1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); + this.neck7 = new ModelRenderer(this, 0, 0); + this.neck7.setRotationPoint(-1.0F, 3.5F, -2.5F); + this.neck7.addBox(0.0F, 0.0F, 0.0F, 1, 2, 1, 0.0F); + this.neck8 = new ModelRenderer(this, 0, 0); + this.neck8.setRotationPoint(0.7F, 3.5F, -2.5F); + this.neck8.addBox(0.0F, 0.0F, 0.0F, 1, 2, 1, 0.0F); + this.neck3 = new ModelRenderer(this, 0, 0); + this.neck3.setRotationPoint(-2.0F, 1.5F, -2.5F); + this.neck3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F); + this.neck6 = new ModelRenderer(this, 0, 0); + this.neck6.setRotationPoint(-1.5F, 2.5F, -2.5F); + this.neck6.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F); + this.neck9 = new ModelRenderer(this, 0, 0); + this.neck9.setRotationPoint(-0.75F, 4.0F, -2.5F); + this.neck9.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1, 0.0F); + this.neck4 = new ModelRenderer(this, 0, 0); + this.neck4.setRotationPoint(1.5F, 1.5F, -2.5F); + this.neck4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F); + this.neck2 = new ModelRenderer(this, 0, 0); + this.neck2.setRotationPoint(-2.5F, 0.0F, -2.5F); + this.neck2.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); + this.gem = new ModelRenderer(this, 9, 0); + this.gem.setRotationPoint(-0.5F, 4.25F, -2.75F); + this.gem.addBox(0.0F, 0.0F, 0.0F, 4, 4, 1, 0.0F); + this.neck5 = new ModelRenderer(this, 0, 0); + this.neck5.setRotationPoint(1.0F, 2.5F, -2.5F); + this.neck5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F); + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { +// GL11.glDisable(GL11.GL_LIGHTING); + if ((int)f3 != -1){ + int ingotColor = (int)f3; + int red = (ingotColor >> 16) & 0xff; + int green = (ingotColor >> 8) & 0xff; + int blue = ingotColor & 0xff; + GL11.glColor3f((float)red / 255, (float)green / 255, (float)blue / 255); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck1.offsetX, this.neck1.offsetY, this.neck1.offsetZ); + GL11.glTranslatef(this.neck1.rotationPointX * f5, this.neck1.rotationPointY * f5, this.neck1.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck1.offsetX, -this.neck1.offsetY, -this.neck1.offsetZ); + GL11.glTranslatef(-this.neck1.rotationPointX * f5, -this.neck1.rotationPointY * f5, -this.neck1.rotationPointZ * f5); + this.neck1.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck7.offsetX, this.neck7.offsetY, this.neck7.offsetZ); + GL11.glTranslatef(this.neck7.rotationPointX * f5, this.neck7.rotationPointY * f5, this.neck7.rotationPointZ * f5); + GL11.glScaled(0.3D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck7.offsetX, -this.neck7.offsetY, -this.neck7.offsetZ); + GL11.glTranslatef(-this.neck7.rotationPointX * f5, -this.neck7.rotationPointY * f5, -this.neck7.rotationPointZ * f5); + this.neck7.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck8.offsetX, this.neck8.offsetY, this.neck8.offsetZ); + GL11.glTranslatef(this.neck8.rotationPointX * f5, this.neck8.rotationPointY * f5, this.neck8.rotationPointZ * f5); + GL11.glScaled(0.3D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck8.offsetX, -this.neck8.offsetY, -this.neck8.offsetZ); + GL11.glTranslatef(-this.neck8.rotationPointX * f5, -this.neck8.rotationPointY * f5, -this.neck8.rotationPointZ * f5); + this.neck8.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck3.offsetX, this.neck3.offsetY, this.neck3.offsetZ); + GL11.glTranslatef(this.neck3.rotationPointX * f5, this.neck3.rotationPointY * f5, this.neck3.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck3.offsetX, -this.neck3.offsetY, -this.neck3.offsetZ); + GL11.glTranslatef(-this.neck3.rotationPointX * f5, -this.neck3.rotationPointY * f5, -this.neck3.rotationPointZ * f5); + this.neck3.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck6.offsetX, this.neck6.offsetY, this.neck6.offsetZ); + GL11.glTranslatef(this.neck6.rotationPointX * f5, this.neck6.rotationPointY * f5, this.neck6.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck6.offsetX, -this.neck6.offsetY, -this.neck6.offsetZ); + GL11.glTranslatef(-this.neck6.rotationPointX * f5, -this.neck6.rotationPointY * f5, -this.neck6.rotationPointZ * f5); + this.neck6.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck9.offsetX, this.neck9.offsetY, this.neck9.offsetZ); + GL11.glTranslatef(this.neck9.rotationPointX * f5, this.neck9.rotationPointY * f5, this.neck9.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck9.offsetX, -this.neck9.offsetY, -this.neck9.offsetZ); + GL11.glTranslatef(-this.neck9.rotationPointX * f5, -this.neck9.rotationPointY * f5, -this.neck9.rotationPointZ * f5); + this.neck9.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck4.offsetX, this.neck4.offsetY, this.neck4.offsetZ); + GL11.glTranslatef(this.neck4.rotationPointX * f5, this.neck4.rotationPointY * f5, this.neck4.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck4.offsetX, -this.neck4.offsetY, -this.neck4.offsetZ); + GL11.glTranslatef(-this.neck4.rotationPointX * f5, -this.neck4.rotationPointY * f5, -this.neck4.rotationPointZ * f5); + this.neck4.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck2.offsetX, this.neck2.offsetY, this.neck2.offsetZ); + GL11.glTranslatef(this.neck2.rotationPointX * f5, this.neck2.rotationPointY * f5, this.neck2.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck2.offsetX, -this.neck2.offsetY, -this.neck2.offsetZ); + GL11.glTranslatef(-this.neck2.rotationPointX * f5, -this.neck2.rotationPointY * f5, -this.neck2.rotationPointZ * f5); + this.neck2.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.neck5.offsetX, this.neck5.offsetY, this.neck5.offsetZ); + GL11.glTranslatef(this.neck5.rotationPointX * f5, this.neck5.rotationPointY * f5, this.neck5.rotationPointZ * f5); + GL11.glScaled(0.5D, 0.5D, 0.5D); + GL11.glTranslatef(-this.neck5.offsetX, -this.neck5.offsetY, -this.neck5.offsetZ); + GL11.glTranslatef(-this.neck5.rotationPointX * f5, -this.neck5.rotationPointY * f5, -this.neck5.rotationPointZ * f5); + this.neck5.render(f5); + GL11.glPopMatrix(); + } + if ((int)f4 != -1){ + int gemColor = (int)f4; + int red = gemColor >> 16 & 0xff; + int green = gemColor >> 8 & 0xff; + int blue = gemColor & 0xff; + GL11.glColor3f((float)red / 255, (float)green / 255, (float)blue / 255); + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE_MINUS_DST_COLOR); + GL11.glPushMatrix(); + GL11.glTranslatef(this.gem.offsetX, this.gem.offsetY, this.gem.offsetZ); + GL11.glTranslatef(this.gem.rotationPointX * f5, this.gem.rotationPointY * f5, this.gem.rotationPointZ * f5); + GL11.glScaled(0.25D, 0.25D, 0.25D); + GL11.glTranslatef(-this.gem.offsetX, -this.gem.offsetY, -this.gem.offsetZ); + GL11.glTranslatef(-this.gem.rotationPointX * f5, -this.gem.rotationPointY * f5, -this.gem.rotationPointZ * f5); + this.gem.render(f5); + GL11.glPopMatrix(); + GL11.glDisable(GL11.GL_BLEND); + } +// GL11.glEnable(GL11.GL_LIGHTING); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) + { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelRing.java b/src/main/java/darkknight/jewelrycraft/model/ModelRing.java new file mode 100644 index 0000000..babb171 --- /dev/null +++ b/src/main/java/darkknight/jewelrycraft/model/ModelRing.java @@ -0,0 +1,124 @@ +package darkknight.jewelrycraft.model; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import org.lwjgl.opengl.GL11; + +/** + * ModelRing - OnyxDarkKnight Created using Tabula 4.1.1 + */ +public class ModelRing extends ModelBase +{ + public ModelRenderer ring1; + public ModelRenderer ring2; + public ModelRenderer ring3; + public ModelRenderer gem; + public ModelRenderer gem1; + public ModelRenderer gem2; + + public ModelRing() + { + this.textureWidth = 32; + this.textureHeight = 32; + this.ring1 = new ModelRenderer(this, 0, 0); + this.ring1.setRotationPoint(-8.6F, 11.4F, -2.15F); + this.ring1.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + this.ring3 = new ModelRenderer(this, 0, 0); + this.ring3.setRotationPoint(-8.5F, 11.4F, -2.15F); + this.ring3.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + this.gem = new ModelRenderer(this, 5, 0); + this.gem.setRotationPoint(-8.5F, 11.5F, -2.25F); + this.gem.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F); + this.gem1 = new ModelRenderer(this, 6, 0); + this.gem1.setRotationPoint(-8.45F, 11.45F, -2.25F); + this.gem1.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + this.ring2 = new ModelRenderer(this, 0, 0); + this.ring2.setRotationPoint(-8.3F, 11.4F, -2.15F); + this.ring2.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + this.gem2 = new ModelRenderer(this, 6, 0); + this.gem2.setRotationPoint(-8.45F, 11.6F, -2.25F); + this.gem2.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { +// GL11.glEnable(GL11.GL_LIGHTING); + if ((int)f3 != -1){ + int ingotColor = (int)f3; + int red = (ingotColor >> 16) & 0xff; + int green = (ingotColor >> 8) & 0xff; + int blue = ingotColor & 0xff; + GL11.glColor3f((float)red / 255, (float)green / 255, (float)blue / 255); + GL11.glPushMatrix(); + GL11.glTranslatef(this.ring1.offsetX, this.ring1.offsetY, this.ring1.offsetZ); + GL11.glTranslatef(this.ring1.rotationPointX * f5, this.ring1.rotationPointY * f5, this.ring1.rotationPointZ * f5); + GL11.glScaled(0.1D, 0.3D, 0.3D); + GL11.glTranslatef(-this.ring1.offsetX, -this.ring1.offsetY, -this.ring1.offsetZ); + GL11.glTranslatef(-this.ring1.rotationPointX * f5, -this.ring1.rotationPointY * f5, -this.ring1.rotationPointZ * f5); + this.ring1.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.ring2.offsetX, this.ring2.offsetY, this.ring2.offsetZ); + GL11.glTranslatef(this.ring2.rotationPointX * f5, this.ring2.rotationPointY * f5, this.ring2.rotationPointZ * f5); + GL11.glScaled(0.1D, 0.3D, 0.3D); + GL11.glTranslatef(-this.ring2.offsetX, -this.ring2.offsetY, -this.ring2.offsetZ); + GL11.glTranslatef(-this.ring2.rotationPointX * f5, -this.ring2.rotationPointY * f5, -this.ring2.rotationPointZ * f5); + this.ring2.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.ring3.offsetX, this.ring3.offsetY, this.ring3.offsetZ); + GL11.glTranslatef(this.ring3.rotationPointX * f5, this.ring3.rotationPointY * f5, this.ring3.rotationPointZ * f5); + GL11.glScaled(0.2D, 0.3D, 0.1D); + GL11.glTranslatef(-this.ring3.offsetX, -this.ring3.offsetY, -this.ring3.offsetZ); + GL11.glTranslatef(-this.ring3.rotationPointX * f5, -this.ring3.rotationPointY * f5, -this.ring3.rotationPointZ * f5); + this.ring3.render(f5); + GL11.glPopMatrix(); + } + if ((int)f4 != -1){ + int gemColor = (int)f4; + int red = gemColor >> 16 & 0xff; + int green = gemColor >> 8 & 0xff; + int blue = gemColor & 0xff; + GL11.glColor3f((float)red / 255, (float)green / 255, (float)blue / 255); + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE_MINUS_DST_COLOR); + GL11.glPushMatrix(); + GL11.glTranslatef(this.gem.offsetX, this.gem.offsetY, this.gem.offsetZ); + GL11.glTranslatef(this.gem.rotationPointX * f5, this.gem.rotationPointY * f5, this.gem.rotationPointZ * f5); + GL11.glScaled(0.1D, 0.1D, 0.1D); + GL11.glTranslatef(-this.gem.offsetX, -this.gem.offsetY, -this.gem.offsetZ); + GL11.glTranslatef(-this.gem.rotationPointX * f5, -this.gem.rotationPointY * f5, -this.gem.rotationPointZ * f5); + this.gem.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.gem1.offsetX, this.gem1.offsetY, this.gem1.offsetZ); + GL11.glTranslatef(this.gem1.rotationPointX * f5, this.gem1.rotationPointY * f5, this.gem1.rotationPointZ * f5); + GL11.glScaled(0.1D, 0.05D, 0.1D); + GL11.glTranslatef(-this.gem1.offsetX, -this.gem1.offsetY, -this.gem1.offsetZ); + GL11.glTranslatef(-this.gem1.rotationPointX * f5, -this.gem1.rotationPointY * f5, -this.gem1.rotationPointZ * f5); + this.gem1.render(f5); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glTranslatef(this.gem2.offsetX, this.gem2.offsetY, this.gem2.offsetZ); + GL11.glTranslatef(this.gem2.rotationPointX * f5, this.gem2.rotationPointY * f5, this.gem2.rotationPointZ * f5); + GL11.glScaled(0.1D, 0.05D, 0.1D); + GL11.glTranslatef(-this.gem2.offsetX, -this.gem2.offsetY, -this.gem2.offsetZ); + GL11.glTranslatef(-this.gem2.rotationPointX * f5, -this.gem2.rotationPointY * f5, -this.gem2.rotationPointZ * f5); + this.gem2.render(f5); + GL11.glPopMatrix(); + GL11.glDisable(GL11.GL_BLEND); + } + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) + { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} |
