Résolu Probleme perso
-
Bonjour et merci de lire ce topic je n’est pas beaucoup de temp en ce moment je vien de changer de lycée je passe d’un proffesionnel a la général j’ai énormement a rattraper et j’aimerais que l’un de met code sois achever mais elace comme je vous les dits je manque de temp c’est pour cela que je demande si quelqu’un voudrait m’aider
Je vous entent dire mes pourquoi on l’aiderer celui la et bien si vous le souhaiter je pourrer vous rendre quelque petit service quand je pourrais en remerciment a la personne qui maidera merci
voici le but a atteindre
voila ce que je ve faire comme animation sur mon technehttps://www.youtube.com/watch?v=rkqPjEdXK-A
je voudrait quelle tourne voici mes classe je l’est donne toutes pour qui n’y est pas de probleme sachant que je ne pourrais peut etre pas repondre aussitot
package theopsisblack76.primevalcraftworld; import java.util.Random; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockAnno extends BlockContainer { int a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0; protected BlockAnno() { super(Material.ground); } @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random random) { for(int l = 0; l < 700; ++l) { } } public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity) { if(entity.ridingEntity == null && entity.riddenByEntity == null && !world.isRemote) { entity.travelToDimension(1); } } @Override public TileEntity createNewTileEntity(World world, int metadata) { return new TileEntityAnno(); } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } public int getRenderType() { return -1; } @Override public int tickRate(World world) { return 10; } public int quantityDropped(Random par1Random) { return 0; } }
package theopsisblack76.primevalcraftworld; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxyPrimevalCraftWorld extends CommonProxyPrimevalCraftWorld { @Override public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAnno.class, new TileEntityAnnoRenderer()); RenderingRegistry.registerEntityRenderingHandler(EntityGastornis.class, new RenderGastornis(new ModelGastornis())); } }
package theopsisblack76.primevalcraftworld; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelAnno extends ModelBase { //fields ModelRenderer centre; ModelRenderer centrea; ModelRenderer centreb; ModelRenderer centrec; ModelRenderer centred; ModelRenderer centree; ModelRenderer centref; ModelRenderer centreg; ModelRenderer centreh; ModelRenderer centrei; ModelRenderer centrej; ModelRenderer a; ModelRenderer b; ModelRenderer c; ModelRenderer d; ModelRenderer e; ModelRenderer fo; ModelRenderer g; ModelRenderer h; ModelRenderer i; ModelRenderer j; ModelRenderer k; ModelRenderer l; ModelRenderer m; ModelRenderer n; ModelRenderer o; ModelRenderer p; ModelRenderer q; ModelRenderer r; ModelRenderer s; ModelRenderer t; ModelRenderer u; ModelRenderer v; ModelRenderer w; ModelRenderer x; ModelRenderer y; ModelRenderer z; ModelRenderer aa; ModelRenderer ab; ModelRenderer ac; ModelRenderer ad; ModelRenderer ae; ModelRenderer af; ModelRenderer ag; ModelRenderer ah; ModelRenderer ai; ModelRenderer aj; ModelRenderer ak; ModelRenderer al; ModelRenderer am; ModelRenderer an; ModelRenderer ap; ModelRenderer aq; ModelRenderer ar; ModelRenderer as; ModelRenderer at; ModelRenderer au; ModelRenderer av; ModelRenderer aw; ModelRenderer ax; ModelRenderer ay; ModelRenderer az; ModelRenderer ba; ModelRenderer bb; ModelRenderer bc; ModelRenderer bd; ModelRenderer be; ModelRenderer bf; ModelRenderer bi; ModelRenderer bj; ModelRenderer bk; ModelRenderer bl; ModelRenderer bm; ModelRenderer mn; ModelRenderer mo; ModelRenderer mp; ModelRenderer mq; ModelRenderer mr; ModelRenderer ms; ModelRenderer mt; ModelRenderer mv; ModelRenderer mw; ModelRenderer mx; ModelRenderer my; ModelRenderer mz; ModelRenderer bs; ModelRenderer bu; ModelRenderer bv; ModelRenderer bw; public ModelAnno() { textureWidth = 256; textureHeight = 256; centre = new ModelRenderer(this, 95, 116); centre.addBox(0F, 0F, 0F, 10, 10, 8); centre.setRotationPoint(-5F, -27F, -5F); centre.setTextureSize(256, 256); centre.mirror = true; setRotation(centre, 0F, 0F, 0F); centrea = new ModelRenderer(this, 134, 115); centrea.addBox(0F, 0F, 0F, 4, 4, 4); centrea.setRotationPoint(2F, -22F, -4F); centrea.setTextureSize(256, 256); centrea.mirror = true; setRotation(centrea, 0F, 1.784573F, -2.453788F); centreb = new ModelRenderer(this, 75, 124); centreb.addBox(0F, 0F, 0F, 4, 4, 4); centreb.setRotationPoint(-6F, -15F, 3F); centreb.setTextureSize(256, 256); centreb.mirror = true; setRotation(centreb, 0F, 1.784573F, -2.082002F); centrec = new ModelRenderer(this, 114, 105); centrec.addBox(0F, 0F, 0F, 4, 4, 4); centrec.setRotationPoint(0F, -26F, 0F); centrec.setTextureSize(256, 256); centrec.mirror = true; setRotation(centrec, 0.0743572F, 1.784573F, -1.970466F); centred = new ModelRenderer(this, 114, 138); centred.addBox(0F, 0F, 0F, 4, 4, 4); centred.setRotationPoint(0F, -17F, -9F); centred.setTextureSize(256, 256); centred.mirror = true; setRotation(centred, 0F, 0.6320364F, -2.453788F); centree = new ModelRenderer(this, 76, 136); centree.addBox(-2F, 0F, 0F, 4, 4, 4); centree.setRotationPoint(-10F, -15F, -4F); centree.setTextureSize(256, 256); centree.mirror = true; setRotation(centree, 0F, 0.8922867F, -1.710216F); centref = new ModelRenderer(this, 74, 112); centref.addBox(0F, -4F, 0F, 4, 4, 4); centref.setRotationPoint(-7F, -23F, -8F); centref.setTextureSize(256, 256); centref.mirror = true; setRotation(centref, 0F, 0.8922867F, -1.710216F); centreg = new ModelRenderer(this, 135, 138); centreg.addBox(0F, 0F, 0F, 4, 4, 4); centreg.setRotationPoint(0F, -12F, 0F); centreg.setTextureSize(256, 256); centreg.mirror = true; setRotation(centreg, 0F, 0.8922867F, -1.710216F); centreh = new ModelRenderer(this, 139, 126); centreh.addBox(0F, 0F, 0F, 4, 4, 4); centreh.setRotationPoint(7F, -19F, -2F); centreh.setTextureSize(256, 256); centreh.mirror = true; setRotation(centreh, 0.6320364F, 0.0743572F, -1.710216F); centrei = new ModelRenderer(this, 92, 105); centrei.addBox(0F, 0F, 0F, 4, 4, 4); centrei.setRotationPoint(0F, -19F, 2F); centrei.setTextureSize(256, 256); centrei.mirror = true; setRotation(centrei, 0F, 0.1858931F, -1.710216F); centrej = new ModelRenderer(this, 72, 99); centrej.addBox(0F, 0F, 0F, 4, 4, 4); centrej.setRotationPoint(-5F, -29F, 3F); centrej.setTextureSize(256, 256); centrej.mirror = true; setRotation(centrej, -0.8922867F, 1.226894F, 0.1858931F); a = new ModelRenderer(this, 95, 137); a.addBox(0F, 0F, 0F, 4, 8, 4); a.setRotationPoint(0F, -13F, -4F); a.setTextureSize(256, 256); a.mirror = true; setRotation(a, 0.3346075F, -2.769806F, -0.4833219F); b = new ModelRenderer(this, 133, 149); b.addBox(0F, 0F, 0F, 4, 8, 4); b.setRotationPoint(10F, -17F, -2F); b.setTextureSize(256, 256); b.mirror = true; setRotation(b, 0.4461433F, -2.621092F, 0.4089647F); c = new ModelRenderer(this, 56, 132); c.addBox(0F, 0F, 0F, 4, 8, 4); c.setRotationPoint(-12F, -20F, -4F); c.setTextureSize(256, 256); c.mirror = true; setRotation(c, 0.3717861F, 0.1115358F, 0.1858931F); d = new ModelRenderer(this, 136, 99); d.addBox(0F, 0F, 0F, 4, 8, 4); d.setRotationPoint(8F, -34F, 0F); d.setTextureSize(256, 256); d.mirror = true; setRotation(d, -0.1115358F, 0.4089647F, 0.5762685F); e = new ModelRenderer(this, 55, 117); e.addBox(0F, 0F, -2F, 4, 8, 4); e.setRotationPoint(-13F, -28F, -3F); e.setTextureSize(256, 256); e.mirror = true; setRotation(e, -0.2602503F, 2.899932F, -2.528146F); fo = new ModelRenderer(this, 94, 89); fo.addBox(0F, 0F, 0F, 4, 8, 4); fo.setRotationPoint(0F, -35F, -2F); fo.setTextureSize(256, 256); fo.mirror = true; setRotation(fo, 0.3717861F, -1.412787F, 0.1858931F); g = new ModelRenderer(this, 112, 149); g.addBox(0F, 0F, 0F, 4, 8, 4); g.setRotationPoint(0F, -9F, -6F); g.setTextureSize(256, 256); g.mirror = true; setRotation(g, 0.3717861F, 0.1115358F, 0.1858931F); h = new ModelRenderer(this, 155, 111); h.addBox(0F, 0F, 0F, 4, 8, 4); h.setRotationPoint(9F, -20F, -5F); h.setTextureSize(256, 256); h.mirror = true; setRotation(h, 0.3717861F, 0.1115358F, -0.7435722F); i = new ModelRenderer(this, 121, 206); i.addBox(0F, 0F, 0F, 4, 8, 4); i.setRotationPoint(16F, -26F, 13F); i.setTextureSize(256, 256); i.mirror = true; setRotation(i, 0.0371786F, -0.1115358F, -0.2230717F); j = new ModelRenderer(this, 47, 188); j.addBox(0F, 0F, 0F, 4, 8, 4); j.setRotationPoint(-19F, -6F, 10F); j.setTextureSize(256, 256); j.mirror = true; setRotation(j, -0.2230717F, 1.133948F, 2.602503F); k = new ModelRenderer(this, 22, 174); k.addBox(0F, 0F, 0F, 4, 8, 4); k.setRotationPoint(-20F, -18F, 0F); k.setTextureSize(256, 256); k.mirror = true; setRotation(k, 0.0371786F, 0.2230717F, -0.3717861F); l = new ModelRenderer(this, 30, 219); l.addBox(0F, 0F, 0F, 4, 8, 4); l.setRotationPoint(-8F, -2F, -4F); l.setTextureSize(256, 256); l.mirror = true; setRotation(l, 0.0371786F, 0.4833219F, 0.1115358F); m = new ModelRenderer(this, 182, 190); m.addBox(0F, 0F, 0F, 4, 8, 4); m.setRotationPoint(14F, -7F, -4F); m.setTextureSize(256, 256); m.mirror = true; setRotation(m, 0.4461433F, 0.3717861F, -0.669215F); n = new ModelRenderer(this, 158, 149); n.addBox(0F, 0F, 0F, 4, 8, 4); n.setRotationPoint(-7F, -20F, 6F); n.setTextureSize(256, 256); n.mirror = true; setRotation(n, -0.0743572F, 0.8922867F, 1.673038F); o = new ModelRenderer(this, 162, 129); o.addBox(0F, 0F, 0F, 4, 8, 4); o.setRotationPoint(16F, -31F, -2F); o.setTextureSize(256, 256); o.mirror = true; setRotation(o, -0.2230717F, 0.2230717F, 1.003822F); p = new ModelRenderer(this, 97, 206); p.addBox(0F, 0F, 0F, 4, 8, 4); p.setRotationPoint(0F, -14F, 0F); p.setTextureSize(256, 256); p.mirror = true; setRotation(p, 0.3717861F, 0.1115358F, 0.1858931F); q = new ModelRenderer(this, 74, 150); q.addBox(0F, 0F, 0F, 4, 8, 4); q.setRotationPoint(-6F, -12F, 1.066667F); q.setTextureSize(256, 256); q.mirror = true; setRotation(q, -0.4833219F, 0.0371786F, 0.2974289F); r = new ModelRenderer(this, 199, 137); r.addBox(0F, 0F, -1F, 4, 9, 4); r.setRotationPoint(23F, -19F, 6F); r.setTextureSize(256, 256); r.mirror = true; setRotation(r, -0.1858931F, 0.4833219F, 0.1115358F); s = new ModelRenderer(this, 140, 165); s.addBox(0F, 0F, 0F, 4, 8, 4); s.setRotationPoint(11F, -12F, 4F); s.setTextureSize(256, 256); s.mirror = true; setRotation(s, 0.4461433F, -2.621092F, 0.4089647F); t = new ModelRenderer(this, 8, 198); t.addBox(0F, 0F, 0F, 4, 10, 4); t.setRotationPoint(-17F, -2F, 0F); t.setTextureSize(256, 256); t.mirror = true; setRotation(t, 0.4461433F, -3.141593F, 0.5205006F); u = new ModelRenderer(this, 70, 226); u.addBox(0F, 0F, 0F, 4, 12, 4); u.setRotationPoint(-10F, 8F, 0F); u.setTextureSize(256, 256); u.mirror = true; setRotation(u, 0.4461433F, -3.141593F, 1.578955F); v = new ModelRenderer(this, 156, 197); v.addBox(0F, 0F, 0F, 4, 12, 4); v.setRotationPoint(7F, 6F, 0F); v.setTextureSize(256, 256); v.mirror = true; setRotation(v, 0.4461433F, -3.141593F, 2.359706F); w = new ModelRenderer(this, 201, 213); w.addBox(0F, 0F, 0F, 4, 10, 4); w.setRotationPoint(27F, -3F, 0F); w.setTextureSize(256, 256); w.mirror = true; setRotation(w, 0.4461433F, -2.695449F, -0.0371786F); x = new ModelRenderer(this, 6, 150); x.addBox(0F, 0F, 0F, 4, 10, 4); x.setRotationPoint(-13F, -9F, 0F); x.setTextureSize(256, 256); x.mirror = true; setRotation(x, 0.0743572F, -3.141593F, -1.07818F); y = new ModelRenderer(this, 226, 200); y.addBox(0F, 0F, 0F, 4, 10, 4); y.setRotationPoint(30F, -19.33333F, -6F); y.setTextureSize(256, 256); y.mirror = true; setRotation(y, -0.0371786F, -2.100591F, -0.0743572F); z = new ModelRenderer(this, 5, 118); z.addBox(0F, 0F, 0F, 4, 10, 4); z.setRotationPoint(-24F, -35F, 0F); z.setTextureSize(256, 256); z.mirror = true; setRotation(z, -1.041001F, -2.806985F, -0.4833219F); aa = new ModelRenderer(this, 44, 60); aa.addBox(0F, 0F, 0F, 4, 10, 4); aa.setRotationPoint(-10F, -42F, 0F); aa.setTextureSize(256, 256); aa.mirror = true; setRotation(aa, 0.4461433F, 2.472378F, 0.2230717F); ab = new ModelRenderer(this, 128, 32); ab.addBox(0F, 0F, 0F, 4, 10, 4); ab.setRotationPoint(8F, -44F, 0F); ab.setTextureSize(256, 256); ab.mirror = true; setRotation(ab, -0.2602503F, -3.141593F, 0.0371786F); ac = new ModelRenderer(this, 213, 75); ac.addBox(0F, 0F, 0F, 4, 10, 4); ac.setRotationPoint(18F, -41F, -9F); ac.setTextureSize(256, 256); ac.mirror = true; setRotation(ac, 0.4461433F, 0.1301251F, 0.8551081F); ad = new ModelRenderer(this, 216, 104); ad.addBox(0F, 0F, 0F, 4, 8, 4); ad.setRotationPoint(23F, -31F, -5.666667F); ad.setTextureSize(256, 256); ad.mirror = true; setRotation(ad, -0.0743572F, 1.171126F, -0.1115358F); ae = new ModelRenderer(this, 2, 175); ae.addBox(0F, 0F, 0F, 4, 10, 4); ae.setRotationPoint(-24F, -25.53333F, -1.733333F); ae.setTextureSize(256, 256); ae.mirror = true; setRotation(ae, 0.2230717F, -2.100591F, 0.3717861F); af = new ModelRenderer(this, 10, 101); af.addBox(0F, 0F, 0F, 4, 8, 4); af.setRotationPoint(-22F, -25F, 0F); af.setTextureSize(256, 256); af.mirror = true; setRotation(af, 0.0371786F, 0.2974289F, -1.041001F); ag = new ModelRenderer(this, 15, 71); ag.addBox(0F, 0F, 0F, 4, 10, 4); ag.setRotationPoint(-12F, -43F, 0F); ag.setTextureSize(256, 256); ag.mirror = true; setRotation(ag, 0.7435722F, -2.249306F, -0.4089647F); ah = new ModelRenderer(this, 212, 154); ah.addBox(0F, 0F, 0F, 4, 11, 4); ah.setRotationPoint(21F, -15F, -6F); ah.setTextureSize(256, 256); ah.mirror = true; setRotation(ah, 1.226894F, -1.951877F, -1.003822F); ai = new ModelRenderer(this, 89, 30); ai.addBox(0F, 0F, 0F, 4, 10, 4); ai.setRotationPoint(-6F, -47F, 0F); ai.setTextureSize(256, 256); ai.mirror = true; setRotation(ai, 0.4461433F, 0.9852332F, -0.0371786F); aj = new ModelRenderer(this, 158, 46); aj.addBox(0F, 0F, 0F, 4, 10, 4); aj.setRotationPoint(6F, -50F, 0F); aj.setTextureSize(256, 256); aj.mirror = true; setRotation(aj, -1.115358F, -1.542912F, 0.2230717F); ak = new ModelRenderer(this, 155, 111); ak.addBox(0F, 0F, 0F, 4, 8, 4); ak.setRotationPoint(-1F, -11F, 8F); ak.setTextureSize(256, 256); ak.mirror = true; setRotation(ak, 2.007645F, 0.1289891F, -0.0371786F); al = new ModelRenderer(this, 155, 111); al.addBox(0F, 0F, 0F, 4, 8, 4); al.setRotationPoint(0F, -21F, 14F); al.setTextureSize(256, 256); al.mirror = true; setRotation(al, -2.044824F, 0.1289891F, -0.0371786F); am = new ModelRenderer(this, 97, 206); am.addBox(0F, 0F, 0F, 4, 8, 4); am.setRotationPoint(0F, -8F, 0F); am.setTextureSize(256, 256); am.mirror = true; setRotation(am, 0.3717861F, 0.1115358F, 0.1858931F); an = new ModelRenderer(this, 158, 149); an.addBox(0F, 0F, 0F, 4, 8, 4); an.setRotationPoint(9F, -22F, 6F); an.setTextureSize(256, 256); an.mirror = true; setRotation(an, 1.487144F, 0.8922867F, 1.673038F); ap = new ModelRenderer(this, 47, 188); ap.addBox(0F, 0F, 0F, 4, 4, 4); ap.setRotationPoint(-15F, -32F, 22F); ap.setTextureSize(256, 256); ap.mirror = true; setRotation(ap, 0.4461433F, -3.141593F, 2.602503F); aq = new ModelRenderer(this, 121, 206); aq.addBox(0F, 0F, 0F, 4, 8, 4); aq.setRotationPoint(7F, -12F, 9F); aq.setTextureSize(256, 256); aq.mirror = true; setRotation(aq, 1.152537F, 0.6866683F, -0.3717861F); ar = new ModelRenderer(this, 156, 197); ar.addBox(0F, 0F, 0F, 4, 12, 4); ar.setRotationPoint(2F, 3F, 14F); ar.setTextureSize(256, 256); ar.mirror = true; setRotation(ar, 0.2974289F, -0.241661F, 1.876384F); as = new ModelRenderer(this, 136, 99); as.addBox(0F, 0F, 0F, 4, 8, 4); as.setRotationPoint(6F, -23F, 10F); as.setTextureSize(256, 256); as.mirror = true; setRotation(as, 2.565324F, 0.4089647F, 0.5762685F); at = new ModelRenderer(this, 156, 197); at.addBox(0F, 0F, 0F, 4, 12, 4); at.setRotationPoint(19F, -5F, 8F); at.setTextureSize(256, 256); at.mirror = true; setRotation(at, 0.2974289F, -0.241661F, 0.8725614F); au = new ModelRenderer(this, 226, 200); au.addBox(0F, 0F, 0F, 4, 10, 4); au.setRotationPoint(5F, -7F, 8F); au.setTextureSize(256, 256); au.mirror = true; setRotation(au, 0.9666439F, -0.427554F, -0.4833219F); av = new ModelRenderer(this, 216, 104); av.addBox(0F, 0F, 0F, 4, 8, 4); av.setRotationPoint(-11F, 0F, 7F); av.setTextureSize(256, 256); av.mirror = true; setRotation(av, -0.5948578F, 3.141593F, -0.5576792F); aw = new ModelRenderer(this, 121, 206); aw.addBox(0F, 0F, 0F, 4, 8, 4); aw.setRotationPoint(6F, 9F, 0F); aw.setTextureSize(256, 256); aw.mirror = true; setRotation(aw, 1.152537F, -1.469691F, -0.3717861F); ax = new ModelRenderer(this, 72, 99); ax.addBox(0F, 0F, 0F, 4, 4, 4); ax.setRotationPoint(2F, -31F, 5F); ax.setTextureSize(256, 256); ax.mirror = true; setRotation(ax, -0.8922867F, 1.226894F, 0.1858931F); ay = new ModelRenderer(this, 6, 150); ay.addBox(0F, 0F, -6F, 4, 10, 4); ay.setRotationPoint(1F, -20F, 25F); ay.setTextureSize(256, 256); ay.mirror = true; setRotation(ay, 0.0371786F, 0.1301251F, -0.8551081F); az = new ModelRenderer(this, 136, 99); az.addBox(0F, 0F, 0F, 4, 8, 4); az.setRotationPoint(-5F, -25F, 8F); az.setTextureSize(256, 256); az.mirror = true; setRotation(az, 3.141593F, -2.044824F, 0.5390899F); ba = new ModelRenderer(this, 136, 99); ba.addBox(0F, 0F, 0F, 4, 8, 4); ba.setRotationPoint(-3F, -33F, 10F); ba.setTextureSize(256, 256); ba.mirror = true; setRotation(ba, -0.1115358F, 0.2230717F, -1.319841F); bb = new ModelRenderer(this, 15, 71); bb.addBox(0F, 0F, 0F, 4, 10, 4); bb.setRotationPoint(18F, -30F, 13F); bb.setTextureSize(256, 256); bb.mirror = true; setRotation(bb, -0.5576792F, 0.7621615F, -3.141593F); bc = new ModelRenderer(this, 199, 137); bc.addBox(0F, 0F, 0F, 4, 9, 4); bc.setRotationPoint(18F, -33F, 5F); bc.setTextureSize(256, 256); bc.mirror = true; setRotation(bc, 0.0371786F, 0.4833219F, -0.5576792F); bd = new ModelRenderer(this, 44, 60); bd.addBox(0F, 0F, 0F, 4, 10, 4); bd.setRotationPoint(6F, -35F, 19F); bd.setTextureSize(256, 256); bd.mirror = true; setRotation(bd, 0.1487144F, 1.914698F, -0.1115358F); be = new ModelRenderer(this, 6, 150); be.addBox(0F, 0F, 0F, 4, 10, 4); be.setRotationPoint(2F, -40F, 18F); be.setTextureSize(256, 256); be.mirror = true; setRotation(be, 0.2602503F, -3.141593F, -1.375609F); bf = new ModelRenderer(this, 47, 188); bf.addBox(0F, 0F, 0F, 4, 8, 4); bf.setRotationPoint(-7F, -13F, 25F); bf.setTextureSize(256, 256); bf.mirror = true; setRotation(bf, -0.0743572F, 1.542912F, -0.1858931F); bi = new ModelRenderer(this, 22, 174); bi.addBox(0F, 0F, 0F, 4, 8, 4); bi.setRotationPoint(-19F, -23F, 14F); bi.setTextureSize(256, 256); bi.mirror = true; setRotation(bi, 0.1115358F, 0.0371786F, -0.1115358F); bj = new ModelRenderer(this, 47, 188); bj.addBox(0F, 0F, 0F, 4, 4, 4); bj.setRotationPoint(3F, -35F, -13F); bj.setTextureSize(256, 256); bj.mirror = true; setRotation(bj, 0.4461433F, -3.141593F, 2.602503F); bk = new ModelRenderer(this, 47, 188); bk.addBox(0F, 0F, 0F, 4, 8, 4); bk.setRotationPoint(-3F, -36F, 20F); bk.setTextureSize(256, 256); bk.mirror = true; setRotation(bk, -0.0743572F, -1.171126F, -0.1858931F); bl = new ModelRenderer(this, 47, 188); bl.addBox(0F, 0F, 0F, 4, 4, 4); bl.setRotationPoint(-18F, -40F, 15F); bl.setTextureSize(256, 256); bl.mirror = true; setRotation(bl, -1.33843F, -0.2788396F, -0.2974289F); bm = new ModelRenderer(this, 94, 89); bm.addBox(0F, 0F, 0F, 4, 8, 4); bm.setRotationPoint(0F, -20F, -13F); bm.setTextureSize(256, 256); bm.mirror = true; setRotation(bm, -0.669215F, -0.1115358F, 0.1858931F); mn = new ModelRenderer(this, 94, 89); mn.addBox(0F, 0F, 0F, 4, 8, 4); mn.setRotationPoint(0F, -23F, -12F); mn.setTextureSize(256, 256); mn.mirror = true; setRotation(mn, -0.1115358F, 0.1115358F, -3.141593F); mo = new ModelRenderer(this, 94, 89); mo.addBox(0F, 0F, 0F, 4, 8, 4); mo.setRotationPoint(-9F, -25F, -10F); mo.setTextureSize(256, 256); mo.mirror = true; setRotation(mo, -0.669215F, 0.2974289F, 1.041001F); mp = new ModelRenderer(this, 94, 89); mp.addBox(0F, 0F, 0F, 4, 8, 4); mp.setRotationPoint(3F, -26F, -11F); mp.setTextureSize(256, 256); mp.mirror = true; setRotation(mp, -1.524323F, -1.115358F, 0.4461433F); mq = new ModelRenderer(this, 30, 219); mq.addBox(0F, 0F, 0F, 4, 8, 4); mq.setRotationPoint(-9F, -6F, -10F); mq.setTextureSize(256, 256); mq.mirror = true; setRotation(mq, -2.565324F, 0.4089647F, 0.2974289F); mr = new ModelRenderer(this, 156, 197); mr.addBox(0F, 0F, 0F, 4, 12, 4); mr.setRotationPoint(-22F, -12F, -10F); mr.setTextureSize(256, 256); mr.mirror = true; setRotation(mr, 0.4461433F, -2.695449F, 2.285349F); ms = new ModelRenderer(this, 44, 60); ms.addBox(0F, 0F, 0F, 4, 10, 4); ms.setRotationPoint(-14F, -31F, -15F); ms.setTextureSize(256, 256); ms.mirror = true; setRotation(ms, 0.3717861F, -1.728805F, 0.0743572F); mt = new ModelRenderer(this, 30, 219); mt.addBox(0F, 0F, 0F, 4, 8, 4); mt.setRotationPoint(2F, -8F, -11F); mt.setTextureSize(256, 256); mt.mirror = true; setRotation(mt, -0.1487144F, -2.41661F, 0.5205006F); mv = new ModelRenderer(this, 44, 60); mv.addBox(0F, 0F, 0F, 4, 10, 4); mv.setRotationPoint(-5F, -28F, -20F); mv.setTextureSize(256, 256); mv.mirror = true; setRotation(mv, 0.2602503F, -1.542912F, 0.2230717F); mw = new ModelRenderer(this, 30, 219); mw.addBox(0F, 0F, 0F, 4, 8, 4); mw.setRotationPoint(-2F, -42F, -15F); mw.setTextureSize(256, 256); mw.mirror = true; setRotation(mw, -0.4833219F, 0.7063936F, 1.07818F); mx = new ModelRenderer(this, 212, 154); mx.addBox(0F, 0F, 0F, 4, 11, 4); mx.setRotationPoint(8F, -26F, -16F); mx.setTextureSize(256, 256); mx.mirror = true; setRotation(mx, 0.2230717F, 3.141593F, -0.5205006F); my = new ModelRenderer(this, 30, 219); my.addBox(0F, 0F, 0F, 4, 8, 4); my.setRotationPoint(9F, -7F, -20F); my.setTextureSize(256, 256); my.mirror = true; setRotation(my, 0.0371786F, -0.2974289F, -0.5576792F); mz = new ModelRenderer(this, 121, 206); mz.addBox(0F, 0F, 0F, 4, 8, 4); mz.setRotationPoint(11F, -31F, -14F); mz.setTextureSize(256, 256); mz.mirror = true; setRotation(mz, 0.2974289F, 1.467419F, -0.3717861F); bs = new ModelRenderer(this, 47, 188); bs.addBox(0F, 0F, 0F, 4, 4, 4); bs.setRotationPoint(0F, 0F, 0F); bs.setTextureSize(256, 256); bs.mirror = true; setRotation(bs, 0.4461433F, -3.141593F, 2.602503F); bu = new ModelRenderer(this, 47, 188); bu.addBox(0F, 0F, 0F, 4, 8, 4); bu.setRotationPoint(-8F, -26F, 20F); bu.setTextureSize(256, 256); bu.mirror = true; setRotation(bu, 0.0743572F, -0.8365188F, 0.0743572F); bv = new ModelRenderer(this, 15, 71); bv.addBox(0F, 0F, 0F, 4, 10, 4); bv.setRotationPoint(-5F, -43F, 7F); bv.setTextureSize(256, 256); bv.mirror = true; setRotation(bv, 0.4833219F, -2.249306F, -0.5205006F); bw = new ModelRenderer(this, 22, 174); bw.addBox(0F, 0F, 0F, 4, 8, 4); bw.setRotationPoint(-20F, -36F, 10F); bw.setTextureSize(256, 256); bw.mirror = true; setRotation(bw, 0.4461433F, -0.1487144F, 0.3717861F); } public void renderAll() { centre.render(0.0625F); centrea.render(0.0625F); centreb.render(0.0625F); centrec.render(0.0625F); centred.render(0.0625F); centree.render(0.0625F); centref.render(0.0625F); centreg.render(0.0625F); centreh.render(0.0625F); centrei.render(0.0625F); centrej.render(0.0625F); a.render(0.0625F); b.render(0.0625F); c.render(0.0625F); d.render(0.0625F); e.render(0.0625F); fo.render(0.0625F); g.render(0.0625F); h.render(0.0625F); i.render(0.0625F); j.render(0.0625F); k.render(0.0625F); l.render(0.0625F); m.render(0.0625F); n.render(0.0625F); o.render(0.0625F); p.render(0.0625F); q.render(0.0625F); r.render(0.0625F); s.render(0.0625F); t.render(0.0625F); u.render(0.0625F); v.render(0.0625F); w.render(0.0625F); x.render(0.0625F); y.render(0.0625F); z.render(0.0625F); aa.render(0.0625F); ab.render(0.0625F); ac.render(0.0625F); ad.render(0.0625F); ae.render(0.0625F); af.render(0.0625F); ag.render(0.0625F); ah.render(0.0625F); ai.render(0.0625F); aj.render(0.0625F); ak.render(0.0625F); al.render(0.0625F); am.render(0.0625F); an.render(0.0625F); ap.render(0.0625F); aq.render(0.0625F); ar.render(0.0625F); as.render(0.0625F); at.render(0.0625F); au.render(0.0625F); av.render(0.0625F); aw.render(0.0625F); ax.render(0.0625F); ay.render(0.0625F); az.render(0.0625F); ba.render(0.0625F); bb.render(0.0625F); bc.render(0.0625F); bd.render(0.0625F); be.render(0.0625F); bf.render(0.0625F); bi.render(0.0625F); bj.render(0.0625F); bk.render(0.0625F); bl.render(0.0625F); bm.render(0.0625F); mn.render(0.0625F); mo.render(0.0625F); mp.render(0.0625F); mq.render(0.0625F); mr.render(0.0625F); ms.render(0.0625F); mt.render(0.0625F); mv.render(0.0625F); mw.render(0.0625F); mx.render(0.0625F); my.render(0.0625F); mz.render(0.0625F); bs.render(0.0625F); bu.render(0.0625F); bv.render(0.0625F); bw.render(0.0625F); } 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); } }
package theopsisblack76.primevalcraftworld; import org.lwjgl.util.Color; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraft.world.gen.structure.StructureMineshaftPieces.Stairs; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import com.sun.prism.Material; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = PrimevalCraftWorld.MODID, version = PrimevalCraftWorld.VERSION) public class PrimevalCraftWorld { public static final String MODID = "primevalcraftworld"; public static final String VERSION = "1.0.0"; @SidedProxy(clientSide = "theopsisblack76.primevalcraftworld.ClientProxyPrimevalCraftWorld", serverSide = "theopsisblack76.primevalcraftworld.CommonProxyPrimevalCraftWorld") public static CommonProxyPrimevalCraftWorld proxy; @Instance(MODID) public static PrimevalCraftWorld instance; public static Block annoBlock; public static ModelAnno model = new ModelAnno(); public static ResourceLocation texture = new ResourceLocation(PrimevalCraftWorld.MODID, "textures/models/blocks/Anomaly.png"); /*Block */ public static Block meteore_taille, blockdemeteore, meteore_brick, escalier, meteore_block, blockdos; /*Item */ public static Item debruitdemeteore, lingotdemeteore, epeeenmeteore, piocheenmeteore, hacheenmeteore, pelleenmeteore, houeenmeteore, helmetmeteore, chestplatemeteore, leggingsmeteore, bootsmeteore, ancienartefact, carcassededetecteur, itemdetecteur, cartemere, fussil, steakdegastorniscrue, steakdegastorniscuit, swordmolly, createurdanomalie, chargeurelectromagnetique; /*CreativeTab */ public static CreativeTabs PrimevalCraftWorldTabs = new PrimevalCraftWorldTabs("PrimevalCraftWorldTabs"); /*Material */ public static ToolMaterial toolmeteore = EnumHelper.addToolMaterial("toolmeteore", 3, 1899, 7.0F, 2.5F, 25); public static ToolMaterial toolmolly = EnumHelper.addToolMaterial("toolmolly", 2, 299, 2.0F, 3.0F, 27); /*Armor */ public static ArmorMaterial armormeteore = EnumHelper.addArmorMaterial("armormeteore", 41, new int[] {3, 8, 6, 3}, 21); @EventHandler public void preInit(FMLPreInitializationEvent event) { annoBlock = new BlockAnno().setHardness(2.0F).setResistance(35.0F).setLightLevel(1.0F).setBlockName("Anno").setBlockTextureName(MODID + ":item_createur").setLightOpacity(0).setStepSound(Block.soundTypeGlass).setCreativeTab(PrimevalCraftWorldTabs); annoBlock.setBlockBounds(0.0F, 2.0F, 2.0F, 2.0F, 2.0F, 2.0F); GameRegistry.registerBlock(annoBlock, "Anno"); proxy.registerRenderers(); } { /*Block */ meteore_block = new meteore_block(net.minecraft.block.material.Material.rock).setBlockName("meteore_block").setHardness(4.5F).setResistance(30.0F).setBlockTextureName("primevalcraftworld:meteore_block").setCreativeTab(PrimevalCraftWorldTabs); meteore_taille = new meteore_taille(net.minecraft.block.material.Material.rock).setBlockName("meteore_taille").setHardness(1.5F).setResistance(10.0F).setBlockTextureName("primevalcraftworld:meteore_taille").setCreativeTab(PrimevalCraftWorldTabs); blockdemeteore = new blockdemeteore(net.minecraft.block.material.Material.rock).setBlockName("blockdemeteore").setHardness(30.0F).setResistance(2000.0F).setBlockTextureName("primevalcraftworld:blockdemeteore").setCreativeTab(PrimevalCraftWorldTabs); meteore_brick = new meteore_brick(net.minecraft.block.material.Material.rock).setBlockName("meteore_brick").setHardness(1.5F).setResistance(10.0F).setBlockTextureName("primevalcraftworld:meteore_brick").setCreativeTab(PrimevalCraftWorldTabs); escalier = new escalier(meteore_brick,0).setBlockName("escalier").setCreativeTab(PrimevalCraftWorldTabs); blockdos = new blockdos(net.minecraft.block.material.Material.rock).setBlockName("blockdos").setHardness(5.0F).setResistance(20.0F).setBlockTextureName("primevalcraftworld:blockdos").setCreativeTab(PrimevalCraftWorldTabs); /*Item */ chargeurelectromagnetique= new chargeurelectromagnetique().setUnlocalizedName("chargeurelectromagnetique").setTextureName("primevalcraftworld:chargeurelectromagnetique").setCreativeTab(PrimevalCraftWorldTabs); debruitdemeteore = new debruitdemeteore().setUnlocalizedName("debruitdemeteore").setTextureName("primevalcraftworld:debruitdemeteore").setCreativeTab(PrimevalCraftWorldTabs); lingotdemeteore = new lingotdemeteore().setUnlocalizedName("lingotdemeteore").setTextureName("primevalcraftworld:lingotdemeteore").setCreativeTab(PrimevalCraftWorldTabs); epeeenmeteore = new epeemeteore(toolmeteore).setUnlocalizedName("epeeenmeteore").setTextureName("primevalcraftworld:epeeenmeteore").setCreativeTab(PrimevalCraftWorldTabs); piocheenmeteore = new piocheenmeteore(toolmeteore).setUnlocalizedName("piocheenmeteore").setTextureName("primevalcraftworld:piocheenmeteore").setCreativeTab(PrimevalCraftWorldTabs); hacheenmeteore = new hacheenmeteore(toolmeteore).setUnlocalizedName("hacheenmeteore").setTextureName("primevalcraftworld:hacheenmeteore").setCreativeTab(PrimevalCraftWorldTabs); pelleenmeteore = new pelleenmeteore(toolmeteore).setUnlocalizedName("pelleenmeteore").setTextureName("primevalcraftworld:pelleenmeteore").setCreativeTab(PrimevalCraftWorldTabs); houeenmeteore = new houeenmeteore(toolmeteore).setUnlocalizedName("houeenmeteore").setTextureName("primevalcraftworld:houeenmeteore").setCreativeTab(PrimevalCraftWorldTabs); helmetmeteore = new ItemmeteoreArmor(armormeteore, 0).setUnlocalizedName("helmetmeteore").setTextureName("primevalcraftworld:helmetmeteore").setCreativeTab(PrimevalCraftWorldTabs); chestplatemeteore = new ItemmeteoreArmor(armormeteore, 1).setUnlocalizedName("chestplatemeteore").setTextureName("primevalcraftworld:chestplatemeteore").setCreativeTab(PrimevalCraftWorldTabs); leggingsmeteore = new ItemmeteoreArmor(armormeteore ,2).setUnlocalizedName("leggingsmeteore").setTextureName("primevalcraftworld:leggingsmeteore").setCreativeTab(PrimevalCraftWorldTabs); bootsmeteore = new ItemmeteoreArmor(armormeteore ,3).setUnlocalizedName("bootsmeteore").setTextureName("primevalcraftworld:bootsmeteore").setCreativeTab(PrimevalCraftWorldTabs); ancienartefact = new ancienartefact().setUnlocalizedName("ancienartefact").setTextureName("primevalcraftworld:ancienartefact").setCreativeTab(PrimevalCraftWorldTabs); carcassededetecteur = new carcassededetecteur().setUnlocalizedName("carcassededetecteur").setTextureName("primevalcraftworld:carcassededetecteur").setCreativeTab(PrimevalCraftWorldTabs); itemdetecteur = new itemdetecteur().setUnlocalizedName("itemdetecteur").setTextureName("primevalcraftworld:itemdetecteur").setCreativeTab(PrimevalCraftWorldTabs); cartemere = new cartemere().setUnlocalizedName("cartemere").setTextureName("primevalcraftworld:cartemere").setCreativeTab(PrimevalCraftWorldTabs); fussil = new fussil().setUnlocalizedName("fussil").setTextureName("primevalcraftworld:fussil").setCreativeTab(PrimevalCraftWorldTabs); steakdegastorniscrue = new steakdegastorniscrue(3,0.3F,false).setUnlocalizedName("steakdegastorniscrue").setTextureName("primevalcraftworld:steakdegastorniscrue").setCreativeTab(PrimevalCraftWorldTabs); steakdegastorniscuit = new steakdegastorniscuit(6,0.8F,false).setUnlocalizedName("steakdegastorniscuit").setTextureName("primevalcraftworld:steakdegastorniscuit").setCreativeTab(PrimevalCraftWorldTabs); swordmolly = new swordmolly(toolmolly).setUnlocalizedName("swordmolly").setTextureName("primevalcraftworld:swordmolly").setCreativeTab(PrimevalCraftWorldTabs); createurdanomalie = new createurdanomalie().setUnlocalizedName("createurdanomalie").setTextureName("primevalcraftworld:createurdanomalie").setCreativeTab(PrimevalCraftWorldTabs); } { /* RegisterBlock */ GameRegistry.registerBlock(meteore_taille, "meteore_taille"); GameRegistry.registerBlock(blockdemeteore, "blockdemeteore"); GameRegistry.registerBlock(meteore_brick, "meteore_brick"); GameRegistry.registerBlock(escalier, "escalier"); GameRegistry.registerBlock(meteore_block, "meteore_block"); GameRegistry.registerBlock(blockdos, "blockdos"); /*RegisterItem */ GameRegistry.registerItem(chargeurelectromagnetique, "chargeurelectromagnetique"); GameRegistry.registerItem(createurdanomalie, "createurdanomalie"); GameRegistry.registerItem(debruitdemeteore, "debruitdemeteore"); GameRegistry.registerItem(lingotdemeteore, "lingotdemeteore"); GameRegistry.registerItem(epeeenmeteore, "epeeenmeteore"); GameRegistry.registerItem(piocheenmeteore, "piocheenmeteore"); GameRegistry.registerItem(hacheenmeteore, "hacheenmeteore"); GameRegistry.registerItem(pelleenmeteore, "pelleenmeteore"); GameRegistry.registerItem(houeenmeteore, "houeenmeteore"); GameRegistry.registerItem(helmetmeteore, "helmetmeteore"); GameRegistry.registerItem(chestplatemeteore, "chestplatemeteore"); GameRegistry.registerItem(leggingsmeteore, "leggingsmeteore"); GameRegistry.registerItem(bootsmeteore, "bootsmeteore"); GameRegistry.registerItem(ancienartefact, "ancienartefact"); GameRegistry.registerItem(carcassededetecteur, "carcassededetecteur"); GameRegistry.registerItem(itemdetecteur, "itemdetecteur"); GameRegistry.registerItem(cartemere, "cartemere"); GameRegistry.registerItem(fussil, "fussil"); //GameRegistry.registerItem(steakdegastorniscrue, "steakdegastorniscrue"); //GameRegistry.registerItem(steakdegastorniscuit, "steakdegastorniscuit"); GameRegistry.registerItem(swordmolly, "swordmolly"); } @EventHandler public void load(FMLInitializationEvent event) { /*Entity */ GameRegistry.registerTileEntity(TileEntityAnno.class, "tileEntityAnno"); /*Craft */ GameRegistry.addRecipe(new ItemStack(annoBlock, 1), new Object[] {"012", "345", "678", Character.valueOf('0'), new ItemStack(Blocks.glass, 1), Character.valueOf('1'), new ItemStack(Blocks.glass, 1), Character.valueOf('2'), new ItemStack(Blocks.glass, 1), Character.valueOf('3'), new ItemStack(Blocks.glass, 1), Character.valueOf('4'), new ItemStack(Blocks.diamond_block, 1), Character.valueOf('5'), new ItemStack(Blocks.glass, 1), Character.valueOf('6'), new ItemStack(Blocks.redstone_lamp, 1), Character.valueOf('7'), new ItemStack(Blocks.beacon, 1), Character.valueOf('8'), new ItemStack(Blocks.redstone_lamp, 1),}); GameRegistry.addRecipe(new ItemStack(meteore_brick), new Object[] {"XX","XX", 'X', blockdemeteore}); GameRegistry.addRecipe(new ItemStack(meteore_brick), new Object[] {"XX","XX", 'X', blockdemeteore}); GameRegistry.addRecipe(new ItemStack(meteore_taille), new Object[] {"XX","XX", 'X', meteore_brick}); GameRegistry.addRecipe(new ItemStack(piocheenmeteore), new Object[] {"XXX"," Y "," Y ", 'X', lingotdemeteore,'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack (epeeenmeteore), new Object[] {"X", "X", "Y", 'X', lingotdemeteore, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(hacheenmeteore), new Object[] {"XX ", "XY ", " Y ", 'X', lingotdemeteore, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(pelleenmeteore), new Object[] {"X", "Y", "Y", 'X', lingotdemeteore, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(houeenmeteore), new Object[] {"XX ", " Y ", " Y ", 'X', lingotdemeteore, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(meteore_block), new Object[] {"XXX", "XXX", "XXX", 'X', lingotdemeteore}); GameRegistry.addRecipe(new ItemStack(helmetmeteore), new Object[] {"XXX","X X", 'X', lingotdemeteore}); GameRegistry.addRecipe(new ItemStack(chestplatemeteore), new Object[] {"X X", "XXX", "XXX", 'X', lingotdemeteore}); GameRegistry.addRecipe(new ItemStack(leggingsmeteore), new Object[] {"XXX", "X X", "X X", 'X', lingotdemeteore}); GameRegistry.addRecipe(new ItemStack(bootsmeteore), new Object[] {"X X", "X X", 'X', lingotdemeteore}); GameRegistry.addRecipe(new ItemStack(cartemere), new Object[] {"YZY", "YXY", "YZY", 'X', Items.diamond, 'Y', new ItemStack(Items.gold_ingot), 'Z', new ItemStack(Items.redstone)}); GameRegistry.addRecipe(new ItemStack(carcassededetecteur),new Object[] {"XXX", "YYX", "XXX", 'X', Items.iron_ingot, 'Y', new ItemStack(Blocks.glass)}); GameRegistry.addRecipe(new ItemStack(itemdetecteur),new Object[] {"X", "Y", 'X', carcassededetecteur, 'Y', new ItemStack(cartemere)}); GameRegistry.addRecipe(new ItemStack(blockdos), new Object [] {"XXX", "XXX", "XXX", 'X', Items.bone}); /*Smelting */ GameRegistry.addSmelting(debruitdemeteore, new ItemStack (lingotdemeteore, 1), 0.4F); GameRegistry.addSmelting(steakdegastorniscrue, new ItemStack (steakdegastorniscuit, 1), 0.6F); } }
package theopsisblack76.primevalcraftworld; import net.minecraft.tileentity.TileEntity; public class TileEntityAnno extends TileEntity { }
package theopsisblack76.primevalcraftworld; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import org.lwjgl.opengl.GL11; public class TileEntityAnnoRenderer extends TileEntitySpecialRenderer { private final ModelAnno model; private static ResourceLocation textures = new ResourceLocation(PrimevalCraftWorld.MODID, "textures/models/Anomaly.png"); public TileEntityAnnoRenderer() { this.model = new ModelAnno(); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) { GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5F, (float)y + 1.0F, (float)z + 0.5F); Minecraft.getMinecraft().renderEngine.bindTexture(textures); GL11.glPushMatrix(); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.renderAll(); GL11.glPopMatrix(); GL11.glPopMatrix(); } }
-
Mauvaise section + http://www.minecraftforgefrance.fr/showthread.php?tid=1510