Résolu Rendu TESR
-
coucou tout le monde j’ai un petit problème avec mon rendu TESR:
@Override public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) { // TODO Auto-generated method stub this.renderTileEntitySculptureAt((TileEntityCopper)te, x, y, z, tick); }
te, x, y, z, tick est souligné en rouge.
public class ModelCoppermineral extends ModelBase { //fields ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3;
tous mes Shape sont souligné en rouge.
Pour le premier code: je créer les variable?
pour le second: je sais pas du tout.
-
public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
->
public void renderTileEntityAt(TileEntity te, double x, double y, double z, float tick) {
Ce sont juste des noms de paramètre, il faut adapter.
Pour le deuxième, ctrl + shift + o, ça devrait fonctionner.
-
oki c’est bon, mais pour les fields du modele je fait comment?
-
Ctrl + shift + o ne change rien ?
Envoie le code entier, et l’erreur qu’eclipse affiche. -
package Mineralherb.Blocks; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; public class ModelCoppermineral extends ModelBase { //fields ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape1; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape4; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; ModelRenderer Shape3; public ModelCoppermineral() { textureWidth = 170; textureHeight = 113; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 8, 3, 6); Shape1.setRotationPoint(-4F, 12F, -3F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 6, 3, 8); Shape1.setRotationPoint(-3F, 12F, -4F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 1, 3, 1); Shape2.setRotationPoint(3F, 15F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 3, 1); Shape3.setRotationPoint(4F, 15F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 1F, 1, 3, 2); Shape3.setRotationPoint(3F, 15F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 1); Shape3.setRotationPoint(4F, 15F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 1, 3, 1); Shape2.setRotationPoint(-4F, 15F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 3, 1); Shape3.setRotationPoint(-6F, 15F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 2); Shape3.setRotationPoint(-4F, 15F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 1); Shape3.setRotationPoint(-5F, 15F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 1, 3, 1); Shape2.setRotationPoint(-4F, 15F, -4F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 3, 1); Shape3.setRotationPoint(-6F, 15F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 2); Shape3.setRotationPoint(-4F, 15F, -6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 1); Shape3.setRotationPoint(-5F, 15F, -5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 3, 2); Shape2.setRotationPoint(3F, 15F, -5F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 1); Shape3.setRotationPoint(5F, 15F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 3, 1); Shape3.setRotationPoint(3F, 15F, -6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 12, 3, 6); Shape1.setRotationPoint(-6F, 15F, -3F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 6, 3, 12); Shape1.setRotationPoint(-3F, 15F, -6F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 5, 2); Shape2.setRotationPoint(3F, 18F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 5, 1); Shape3.setRotationPoint(5F, 18F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 1F, 1, 5, 2); Shape3.setRotationPoint(3F, 18F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(5F, 18F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(4F, 18F, 5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 5, 2); Shape2.setRotationPoint(-5F, 18F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 5, 1); Shape3.setRotationPoint(-7F, 18F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 2); Shape3.setRotationPoint(-4F, 18F, 5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(-6F, 18F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(-5F, 18F, 5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 5, 2); Shape2.setRotationPoint(-5F, 18F, -5F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 5, 1); Shape3.setRotationPoint(-7F, 18F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 2); Shape3.setRotationPoint(-4F, 18F, -7F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(-6F, 18F, -5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(-5F, 18F, -6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 5, 2); Shape2.setRotationPoint(3F, 18F, -5F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 5, 1); Shape3.setRotationPoint(5F, 18F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 2); Shape3.setRotationPoint(3F, 18F, -7F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(5F, 18F, -5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 5, 1); Shape3.setRotationPoint(4F, 18F, -6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 14, 5, 6); Shape1.setRotationPoint(-7F, 18F, -3F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 6, 5, 14); Shape1.setRotationPoint(-3F, 18F, -7F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 16, 1, 6); Shape1.setRotationPoint(-8F, 23F, -3F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 6, 1, 16); Shape1.setRotationPoint(-3F, 23F, -8F); Shape1.setTextureSize(170, 113); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(-3F, 11F, 0F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(3F, 11F, 0F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(0F, 11F, 2F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(0F, 13F, 4F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(0F, 13F, -4F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(-6F, 16F, 0F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(6F, 16F, -2F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 20, 61); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(-1F, 20F, 7F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape4 = new ModelRenderer(this, 60, 30); Shape4.addBox(0F, 0F, 0F, 1, 1, 1); Shape4.setRotationPoint(-2F, 19F, -7F); Shape4.setTextureSize(170, 113); Shape4.mirror = true; setRotation(Shape4, -1.041001F, 1.543326F, 0.5948578F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 3, 1, 3); Shape2.setRotationPoint(3F, 23F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 1, 1); Shape3.setRotationPoint(6F, 23F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 2); Shape3.setRotationPoint(3F, 23F, 6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(6F, 23F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(4F, 23F, 6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 3, 1, 3); Shape2.setRotationPoint(-6F, 23F, 3F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 1, 1); Shape3.setRotationPoint(-8F, 23F, 3F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 2); Shape3.setRotationPoint(-4F, 23F, 6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(-7F, 23F, 4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(-5F, 23F, 6F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 3, 1, 3); Shape2.setRotationPoint(-6F, 23F, -6F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 1, 1); Shape3.setRotationPoint(-8F, 23F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 2); Shape3.setRotationPoint(-4F, 23F, -8F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(-7F, 23F, -5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(-5F, 23F, -7F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 3, 1, 3); Shape2.setRotationPoint(3F, 23F, -6F); Shape2.setTextureSize(170, 113); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 2, 1, 1); Shape3.setRotationPoint(6F, 23F, -4F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 2); Shape3.setRotationPoint(3F, 23F, -8F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(6F, 23F, -5F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 1); Shape3.setRotationPoint(4F, 23F, -7F); Shape3.setTextureSize(170, 113); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); } public void render(float f) { super.render(null, f, f, f, f, f, f); setRotationAngles(f, f, f, f, f, f); Shape1.render(f); Shape1.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape1.render(f); Shape1.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape1.render(f); Shape1.render(f); Shape1.render(f); Shape1.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape4.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape2.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); Shape3.render(f); } 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); } }
erreur: Duplicate field ModelCoppermineral.Shape2
-
Ha, oui, j’avais pas fait gaffe x)
On peut pas avoir deux field du même nom. Retourne sur techne, en bas à droite renomme les morceaux, ils doivent tous avoir un nom différent, ensuite exporte à nouveau. -
oki merci
EDIT:
problème:@Override public void registerRenderers(){ //Ici les futurs registrys renderInventoryTESRId = ((cpw.mods.fml.client.registry.RenderingRegistry) RenderingRegistry).getNextAvailableRenderId(); ((cpw.mods.fml.client.registry.RenderingRegistry) RenderingRegistry).registerBlockHandler(new TESRInventoryRenderer()); }
.registerBlockHandler est souligné: The method registerBlockHandler(ISimpleBlockRenderingHandler) in the type RenderingRegistry is not applicable for the arguments (TESRInventoryRenderer)
tous mes code:
classe main:package Mineralherb; import Mineralherb.Blocks.TileEntityCopper; import net.minecraft.block.Block; 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.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="MH", name="Mineralherb", version="1.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false) //NE JAMAIS MODIFIER public class MineralherbMain { @SidedProxy(clientSide = "Mineralherb.ClientProxy", serverSide = "Mineralherb.CommonProxy") public static Mineralherb.CommonProxy proxy; @Instance("MH") public static MineralherbMain instance; private Block coppermineral; @EventHandler public void PreInit(FMLPreInitializationEvent event){ //Configuration //tutomain.Blocks coppermineral = new Mineralherb.Blocks.coppermineral(3000).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("coppermineral"); //tutomain.Items //Registers.Blocks GameRegistry.registerBlock(coppermineral, "coppermineral"); LanguageRegistry.addName(coppermineral, "coppermineral"); GameRegistry.registerTileEntity(TileEntityCopper.class, "TileEntityCopper"); //Registers.Items } @EventHandler public void PreInit(FMLInitializationEvent Event){ //Render proxy.registerRenderers(); proxy.registerTileEntityRender(); //Recipe //Smelting } @EventHandler public void PostInit(FMLInitializationEvent event){ } }
clientproxy:
package Mineralherb; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; import Mineralherb.Blocks.TileEntityCopper; public class ClientProxy extends CommonProxy{ public static int renderInventoryTESRId; @Override public void registerRenderers(){ //Ici les futurs registrys renderInventoryTESRId = ((cpw.mods.fml.client.registry.RenderingRegistry) RenderingRegistry).getNextAvailableRenderId(); ((cpw.mods.fml.client.registry.RenderingRegistry) RenderingRegistry).registerBlockHandler(new TESRInventoryRenderer()); } @Override public void registerTileEntityRender() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCopper.class, new TileEntityCopperSpecialRender()); } }
commonproxy:
package Mineralherb; public class CommonProxy { public Object RenderingRegistry; public void registerRenderers(){ } public void registerRenderEntity(){ } public void registerTileEntityRender() { } }
TESRinventoryrender:
package Mineralherb; import java.util.HashMap; import Mineralherb.client.IInventoryRenderer; import net.minecraft.block.Block; import net.minecraft.world.IBlockAccess; public class TESRInventoryRenderer { public static class TESRIndex { Block block; int metadata; public TESRIndex(Block block, int metadata) { this.block = block; this.metadata = metadata; } @Override public int hashCode() { return block.hashCode() + metadata; } @Override public boolean equals(Object o) { if(!(o instanceof TESRIndex)) return false; TESRIndex tesr = (TESRIndex)o; return tesr.block == block && tesr.metadata == metadata; } } public static HashMap <tesrindex, iinventoryrenderer="">blockByTESR = new HashMap<tesrindex, iinventoryrenderer="">(); @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { return true; } @Override public boolean shouldRender3DInInventory() { return true; } @Override public int getRenderId() { return ClientProxy.renderInventoryTESRId; } }
TileEntityCopperSpecialRender:
package Mineralherb; import net.minecraft.client.renderer.tileentity.TileEntityRenderer; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import Mineralherb.Blocks.ModelCoppermineral; import Mineralherb.Blocks.TileEntityCopper; import Mineralherb.client.IInventoryRenderer; public class TileEntityCopperSpecialRender extends TileEntitySpecialRenderer implements IInventoryRenderer { private final ModelCoppermineral model = new ModelCoppermineral(); public static final ResourceLocation textureLocation = new ResourceLocation("Mineralherb", "textures/blocks/modelTutoriel.png"); public TileEntityCopperSpecialRender() { this.setTileEntityRenderer(TileEntityRenderer.instance); } public void renderTileEntityCopperAt(TileEntityCopper te, double x, double y, double z, float tick) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); this.bindTexture(textureLocation); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(0.0625F); GL11.glPopMatrix(); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float tick) { // TODO Auto-generated method stub this.renderTileEntityCopperAt((TileEntityCopper)te, x, y, z, tick); } @Override public void renderInventory(double x, double y, double z) { // TODO Auto-generated method stub this.renderTileEntityCopperAt(null, x, y, z, 0.0F); } }
block coppermineral:
package Mineralherb.Blocks; import Mineralherb.ClientProxy; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class coppermineral extends BlockContainer { public coppermineral(int id) { super(id, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); } public TileEntity createTileEntity(World world, int metadata) { return new TileEntityCopper(); } public boolean hasTileEntity(int metadata) { return true; } public boolean renderAsNormalBlock() { return false; } public boolean isOpaqueCube() { return false; } @SideOnly(Side.CLIENT) public int getRenderType() { return ClientProxy.renderInventoryTESRId; } @Override public TileEntity createNewTileEntity(World world) { // TODO Auto-generated method stub return new TileEntityCopper(); } }
modelcopper:
package Mineralherb.Blocks; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelCoppermineral extends ModelBase { //fields ModelRenderer Shape1gtrg4; ModelRenderer Shape1dfgf; ModelRenderer Shape2rtrtr; ModelRenderer Shape3rte; ModelRenderer Shape3nb; ModelRenderer Shape3az; ModelRenderer Shape2ertyu; ModelRenderer Shape3tretre; ModelRenderer Shape3tretrrete; ModelRenderer Shape3zevbyt; ModelRenderer Shape2vbive; ModelRenderer Shape3by15; ModelRenderer Shape3fr6516e; ModelRenderer Shape3rte885496gre; ModelRenderer Shape2tre9685bg4h9t7h48tr; ModelRenderer Shape3rygtr79r4gf45rg4hg5h; ModelRenderer Shape3gfret7878retyr; ModelRenderer Shape1ytr596tr; ModelRenderer Shape1ytr54954gtr; ModelRenderer Shapezertyuibfvdgtr5; ModelRenderer Shape3refgtretf45r6g4re; ModelRenderer Shape3trefre8ftretrg9t8s; ModelRenderer Shape3grertyuikjhgfde; ModelRenderer Shape3refrefr4efrerefrg5; ModelRenderer Shape2tref789regfregr4; ModelRenderer Shape3tgretgre456re; ModelRenderer Shape3tre4ergre5retgre4; ModelRenderer Shape3tre4retgre7; ModelRenderer Shape3tre8ertgrev7reg; ModelRenderer Shape2greger87erger87re; ModelRenderer Shape3grt752514grv7gfb; ModelRenderer Shape3ret4etfre41856reg4re5; ModelRenderer Shape3gregr56gt59ghtrgtr; ModelRenderer Shape3tgre45retg4545545rgrtedfg; ModelRenderer Shape2gtrgrt546; ModelRenderer Shape3tretgre788574re; ModelRenderer Shape3tertre7856er; ModelRenderer Shape3ttgr785r; ModelRenderer Shape3tfrgrefr4f5refgre; ModelRenderer Shape10248541frgretfre; ModelRenderer Shape1tre152154r; ModelRenderer Shape1gfr5163203; ModelRenderer Shape1fgre46546245; ModelRenderer Shape454654964regregre; ModelRenderer Shape4568956124dgre; ModelRenderer Shape4gr5g9645gd6fgre; ModelRenderer Shape4grg74gr5gfdgd; ModelRenderer Shape4rfgdg4756g4re5gre; ModelRenderer Shape4gre496r4g5re; ModelRenderer Shape4greg4694g16re; ModelRenderer Shape4greg49674g65re; ModelRenderer Shape4gregr57g496r5e; ModelRenderer Shape2grgr87gr74ger; ModelRenderer Shape3grg47t85g74rtre; ModelRenderer Shape3grtg8r58g96re546ffgtrhtrgerg; ModelRenderer Shape3hftg4h5t7g85rt74g695rt; ModelRenderer Shape3hthgrt897gh4t965hg8rt; ModelRenderer Shape2htr7hg9tr6h4t6r74h8tr74h56tr; ModelRenderer Shape3hth8t7gf65g84tr687hgt9r; ModelRenderer Shape3ht7g8f57g4r87g85hjrt; ModelRenderer Shape3ht789748548410t8htr; ModelRenderer Shape3htfrg74b9654g98t7ht47tr; ModelRenderer Shape2htrfht86h4tr5h1t4h5h45gfhrt; ModelRenderer Shape3thrht465h4t5h4t5htr; ModelRenderer Shape3hth7t54tgf98h7tr498h5tr4; ModelRenderer Shape3trh4t6fg4b85tr74hgtr; ModelRenderer Shape3trg4rtf51v8tr4g1t52fgtr; ModelRenderer Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541; ModelRenderer Shape3trgf52v4g81vtret4re54gre65ter; ModelRenderer Shape3retr7grg7regre7g8er74re654f6re41g5re4; ModelRenderer Shape3tre74df857gf4re98g7er49gre; ModelRenderer Shape3rteg47g7rg987re97re9re97ger7g4re5gre; public ModelCoppermineral() { textureWidth = 170; textureHeight = 113; Shape1gtrg4 = new ModelRenderer(this, 0, 0); Shape1gtrg4.addBox(0F, 0F, 0F, 8, 3, 6); Shape1gtrg4.setRotationPoint(-4F, 12F, -3F); Shape1gtrg4.setTextureSize(170, 113); Shape1gtrg4.mirror = true; setRotation(Shape1gtrg4, 0F, 0F, 0F); Shape1dfgf = new ModelRenderer(this, 0, 0); Shape1dfgf.addBox(0F, 0F, 0F, 6, 3, 8); Shape1dfgf.setRotationPoint(-3F, 12F, -4F); Shape1dfgf.setTextureSize(170, 113); Shape1dfgf.mirror = true; setRotation(Shape1dfgf, 0F, 0F, 0F); Shape2rtrtr = new ModelRenderer(this, 0, 0); Shape2rtrtr.addBox(0F, 0F, 0F, 1, 3, 1); Shape2rtrtr.setRotationPoint(3F, 15F, 3F); Shape2rtrtr.setTextureSize(170, 113); Shape2rtrtr.mirror = true; setRotation(Shape2rtrtr, 0F, 0F, 0F); Shape3rte = new ModelRenderer(this, 0, 0); Shape3rte.addBox(0F, 0F, 0F, 2, 3, 1); Shape3rte.setRotationPoint(4F, 15F, 3F); Shape3rte.setTextureSize(170, 113); Shape3rte.mirror = true; setRotation(Shape3rte, 0F, 0F, 0F); Shape3nb = new ModelRenderer(this, 0, 0); Shape3nb.addBox(0F, 0F, 1F, 1, 3, 2); Shape3nb.setRotationPoint(3F, 15F, 3F); Shape3nb.setTextureSize(170, 113); Shape3nb.mirror = true; setRotation(Shape3nb, 0F, 0F, 0F); Shape3az = new ModelRenderer(this, 0, 0); Shape3az.addBox(0F, 0F, 0F, 1, 3, 1); Shape3az.setRotationPoint(4F, 15F, 4F); Shape3az.setTextureSize(170, 113); Shape3az.mirror = true; setRotation(Shape3az, 0F, 0F, 0F); Shape2ertyu = new ModelRenderer(this, 0, 0); Shape2ertyu.addBox(0F, 0F, 0F, 1, 3, 1); Shape2ertyu.setRotationPoint(-4F, 15F, 3F); Shape2ertyu.setTextureSize(170, 113); Shape2ertyu.mirror = true; setRotation(Shape2ertyu, 0F, 0F, 0F); Shape3tretre = new ModelRenderer(this, 0, 0); Shape3tretre.addBox(0F, 0F, 0F, 2, 3, 1); Shape3tretre.setRotationPoint(-6F, 15F, 3F); Shape3tretre.setTextureSize(170, 113); Shape3tretre.mirror = true; setRotation(Shape3tretre, 0F, 0F, 0F); Shape3tretrrete = new ModelRenderer(this, 0, 0); Shape3tretrrete.addBox(0F, 0F, 0F, 1, 3, 2); Shape3tretrrete.setRotationPoint(-4F, 15F, 4F); Shape3tretrrete.setTextureSize(170, 113); Shape3tretrrete.mirror = true; setRotation(Shape3tretrrete, 0F, 0F, 0F); Shape3zevbyt = new ModelRenderer(this, 0, 0); Shape3zevbyt.addBox(0F, 0F, 0F, 1, 3, 1); Shape3zevbyt.setRotationPoint(-5F, 15F, 4F); Shape3zevbyt.setTextureSize(170, 113); Shape3zevbyt.mirror = true; setRotation(Shape3zevbyt, 0F, 0F, 0F); Shape2vbive = new ModelRenderer(this, 0, 0); Shape2vbive.addBox(0F, 0F, 0F, 1, 3, 1); Shape2vbive.setRotationPoint(-4F, 15F, -4F); Shape2vbive.setTextureSize(170, 113); Shape2vbive.mirror = true; setRotation(Shape2vbive, 0F, 0F, 0F); Shape3by15 = new ModelRenderer(this, 0, 0); Shape3by15.addBox(0F, 0F, 0F, 2, 3, 1); Shape3by15.setRotationPoint(-6F, 15F, -4F); Shape3by15.setTextureSize(170, 113); Shape3by15.mirror = true; setRotation(Shape3by15, 0F, 0F, 0F); Shape3fr6516e = new ModelRenderer(this, 0, 0); Shape3fr6516e.addBox(0F, 0F, 0F, 1, 3, 2); Shape3fr6516e.setRotationPoint(-4F, 15F, -6F); Shape3fr6516e.setTextureSize(170, 113); Shape3fr6516e.mirror = true; setRotation(Shape3fr6516e, 0F, 0F, 0F); Shape3rte885496gre = new ModelRenderer(this, 0, 0); Shape3rte885496gre.addBox(0F, 0F, 0F, 1, 3, 1); Shape3rte885496gre.setRotationPoint(-5F, 15F, -5F); Shape3rte885496gre.setTextureSize(170, 113); Shape3rte885496gre.mirror = true; setRotation(Shape3rte885496gre, 0F, 0F, 0F); Shape2tre9685bg4h9t7h48tr = new ModelRenderer(this, 0, 0); Shape2tre9685bg4h9t7h48tr.addBox(0F, 0F, 0F, 2, 3, 2); Shape2tre9685bg4h9t7h48tr.setRotationPoint(3F, 15F, -5F); Shape2tre9685bg4h9t7h48tr.setTextureSize(170, 113); Shape2tre9685bg4h9t7h48tr.mirror = true; setRotation(Shape2tre9685bg4h9t7h48tr, 0F, 0F, 0F); Shape3rygtr79r4gf45rg4hg5h = new ModelRenderer(this, 0, 0); Shape3rygtr79r4gf45rg4hg5h.addBox(0F, 0F, 0F, 1, 3, 1); Shape3rygtr79r4gf45rg4hg5h.setRotationPoint(5F, 15F, -4F); Shape3rygtr79r4gf45rg4hg5h.setTextureSize(170, 113); Shape3rygtr79r4gf45rg4hg5h.mirror = true; setRotation(Shape3rygtr79r4gf45rg4hg5h, 0F, 0F, 0F); Shape3gfret7878retyr = new ModelRenderer(this, 0, 0); Shape3gfret7878retyr.addBox(0F, 0F, 0F, 1, 3, 1); Shape3gfret7878retyr.setRotationPoint(3F, 15F, -6F); Shape3gfret7878retyr.setTextureSize(170, 113); Shape3gfret7878retyr.mirror = true; setRotation(Shape3gfret7878retyr, 0F, 0F, 0F); Shape1ytr596tr = new ModelRenderer(this, 0, 0); Shape1ytr596tr.addBox(0F, 0F, 0F, 12, 3, 6); Shape1ytr596tr.setRotationPoint(-6F, 15F, -3F); Shape1ytr596tr.setTextureSize(170, 113); Shape1ytr596tr.mirror = true; setRotation(Shape1ytr596tr, 0F, 0F, 0F); Shape1ytr54954gtr = new ModelRenderer(this, 0, 0); Shape1ytr54954gtr.addBox(0F, 0F, 0F, 6, 3, 12); Shape1ytr54954gtr.setRotationPoint(-3F, 15F, -6F); Shape1ytr54954gtr.setTextureSize(170, 113); Shape1ytr54954gtr.mirror = true; setRotation(Shape1ytr54954gtr, 0F, 0F, 0F); Shapezertyuibfvdgtr5 = new ModelRenderer(this, 0, 0); Shapezertyuibfvdgtr5.addBox(0F, 0F, 0F, 2, 5, 2); Shapezertyuibfvdgtr5.setRotationPoint(3F, 18F, 3F); Shapezertyuibfvdgtr5.setTextureSize(170, 113); Shapezertyuibfvdgtr5.mirror = true; setRotation(Shapezertyuibfvdgtr5, 0F, 0F, 0F); Shape3refgtretf45r6g4re = new ModelRenderer(this, 0, 0); Shape3refgtretf45r6g4re.addBox(0F, 0F, 0F, 2, 5, 1); Shape3refgtretf45r6g4re.setRotationPoint(5F, 18F, 3F); Shape3refgtretf45r6g4re.setTextureSize(170, 113); Shape3refgtretf45r6g4re.mirror = true; setRotation(Shape3refgtretf45r6g4re, 0F, 0F, 0F); Shape3trefre8ftretrg9t8s = new ModelRenderer(this, 0, 0); Shape3trefre8ftretrg9t8s.addBox(0F, 0F, 1F, 1, 5, 2); Shape3trefre8ftretrg9t8s.setRotationPoint(3F, 18F, 4F); Shape3trefre8ftretrg9t8s.setTextureSize(170, 113); Shape3trefre8ftretrg9t8s.mirror = true; setRotation(Shape3trefre8ftretrg9t8s, 0F, 0F, 0F); Shape3grertyuikjhgfde = new ModelRenderer(this, 0, 0); Shape3grertyuikjhgfde.addBox(0F, 0F, 0F, 1, 5, 1); Shape3grertyuikjhgfde.setRotationPoint(5F, 18F, 4F); Shape3grertyuikjhgfde.setTextureSize(170, 113); Shape3grertyuikjhgfde.mirror = true; setRotation(Shape3grertyuikjhgfde, 0F, 0F, 0F); Shape3refrefr4efrerefrg5 = new ModelRenderer(this, 0, 0); Shape3refrefr4efrerefrg5.addBox(0F, 0F, 0F, 1, 5, 1); Shape3refrefr4efrerefrg5.setRotationPoint(4F, 18F, 5F); Shape3refrefr4efrerefrg5.setTextureSize(170, 113); Shape3refrefr4efrerefrg5.mirror = true; setRotation(Shape3refrefr4efrerefrg5, 0F, 0F, 0F); Shape2tref789regfregr4 = new ModelRenderer(this, 0, 0); Shape2tref789regfregr4.addBox(0F, 0F, 0F, 2, 5, 2); Shape2tref789regfregr4.setRotationPoint(-5F, 18F, 3F); Shape2tref789regfregr4.setTextureSize(170, 113); Shape2tref789regfregr4.mirror = true; setRotation(Shape2tref789regfregr4, 0F, 0F, 0F); Shape3tgretgre456re = new ModelRenderer(this, 0, 0); Shape3tgretgre456re.addBox(0F, 0F, 0F, 2, 5, 1); Shape3tgretgre456re.setRotationPoint(-7F, 18F, 3F); Shape3tgretgre456re.setTextureSize(170, 113); Shape3tgretgre456re.mirror = true; setRotation(Shape3tgretgre456re, 0F, 0F, 0F); Shape3tre4ergre5retgre4 = new ModelRenderer(this, 0, 0); Shape3tre4ergre5retgre4.addBox(0F, 0F, 0F, 1, 5, 2); Shape3tre4ergre5retgre4.setRotationPoint(-4F, 18F, 5F); Shape3tre4ergre5retgre4.setTextureSize(170, 113); Shape3tre4ergre5retgre4.mirror = true; setRotation(Shape3tre4ergre5retgre4, 0F, 0F, 0F); Shape3tre4retgre7 = new ModelRenderer(this, 0, 0); Shape3tre4retgre7.addBox(0F, 0F, 0F, 1, 5, 1); Shape3tre4retgre7.setRotationPoint(-6F, 18F, 4F); Shape3tre4retgre7.setTextureSize(170, 113); Shape3tre4retgre7.mirror = true; setRotation(Shape3tre4retgre7, 0F, 0F, 0F); Shape3tre8ertgrev7reg = new ModelRenderer(this, 0, 0); Shape3tre8ertgrev7reg.addBox(0F, 0F, 0F, 1, 5, 1); Shape3tre8ertgrev7reg.setRotationPoint(-5F, 18F, 5F); Shape3tre8ertgrev7reg.setTextureSize(170, 113); Shape3tre8ertgrev7reg.mirror = true; setRotation(Shape3tre8ertgrev7reg, 0F, 0F, 0F); Shape2greger87erger87re = new ModelRenderer(this, 0, 0); Shape2greger87erger87re.addBox(0F, 0F, 0F, 2, 5, 2); Shape2greger87erger87re.setRotationPoint(-5F, 18F, -5F); Shape2greger87erger87re.setTextureSize(170, 113); Shape2greger87erger87re.mirror = true; setRotation(Shape2greger87erger87re, 0F, 0F, 0F); Shape3grt752514grv7gfb = new ModelRenderer(this, 0, 0); Shape3grt752514grv7gfb.addBox(0F, 0F, 0F, 2, 5, 1); Shape3grt752514grv7gfb.setRotationPoint(-7F, 18F, -4F); Shape3grt752514grv7gfb.setTextureSize(170, 113); Shape3grt752514grv7gfb.mirror = true; setRotation(Shape3grt752514grv7gfb, 0F, 0F, 0F); Shape3ret4etfre41856reg4re5 = new ModelRenderer(this, 0, 0); Shape3ret4etfre41856reg4re5.addBox(0F, 0F, 0F, 1, 5, 2); Shape3ret4etfre41856reg4re5.setRotationPoint(-4F, 18F, -7F); Shape3ret4etfre41856reg4re5.setTextureSize(170, 113); Shape3ret4etfre41856reg4re5.mirror = true; setRotation(Shape3ret4etfre41856reg4re5, 0F, 0F, 0F); Shape3gregr56gt59ghtrgtr = new ModelRenderer(this, 0, 0); Shape3gregr56gt59ghtrgtr.addBox(0F, 0F, 0F, 1, 5, 1); Shape3gregr56gt59ghtrgtr.setRotationPoint(-6F, 18F, -5F); Shape3gregr56gt59ghtrgtr.setTextureSize(170, 113); Shape3gregr56gt59ghtrgtr.mirror = true; setRotation(Shape3gregr56gt59ghtrgtr, 0F, 0F, 0F); Shape3tgre45retg4545545rgrtedfg = new ModelRenderer(this, 0, 0); Shape3tgre45retg4545545rgrtedfg.addBox(0F, 0F, 0F, 1, 5, 1); Shape3tgre45retg4545545rgrtedfg.setRotationPoint(-5F, 18F, -6F); Shape3tgre45retg4545545rgrtedfg.setTextureSize(170, 113); Shape3tgre45retg4545545rgrtedfg.mirror = true; setRotation(Shape3tgre45retg4545545rgrtedfg, 0F, 0F, 0F); Shape2gtrgrt546 = new ModelRenderer(this, 0, 0); Shape2gtrgrt546.addBox(0F, 0F, 0F, 2, 5, 2); Shape2gtrgrt546.setRotationPoint(3F, 18F, -5F); Shape2gtrgrt546.setTextureSize(170, 113); Shape2gtrgrt546.mirror = true; setRotation(Shape2gtrgrt546, 0F, 0F, 0F); Shape3tretgre788574re = new ModelRenderer(this, 0, 0); Shape3tretgre788574re.addBox(0F, 0F, 0F, 2, 5, 1); Shape3tretgre788574re.setRotationPoint(5F, 18F, -4F); Shape3tretgre788574re.setTextureSize(170, 113); Shape3tretgre788574re.mirror = true; setRotation(Shape3tretgre788574re, 0F, 0F, 0F); Shape3tertre7856er = new ModelRenderer(this, 0, 0); Shape3tertre7856er.addBox(0F, 0F, 0F, 1, 5, 2); Shape3tertre7856er.setRotationPoint(3F, 18F, -7F); Shape3tertre7856er.setTextureSize(170, 113); Shape3tertre7856er.mirror = true; setRotation(Shape3tertre7856er, 0F, 0F, 0F); Shape3ttgr785r = new ModelRenderer(this, 0, 0); Shape3ttgr785r.addBox(0F, 0F, 0F, 1, 5, 1); Shape3ttgr785r.setRotationPoint(5F, 18F, -5F); Shape3ttgr785r.setTextureSize(170, 113); Shape3ttgr785r.mirror = true; setRotation(Shape3ttgr785r, 0F, 0F, 0F); Shape3tfrgrefr4f5refgre = new ModelRenderer(this, 0, 0); Shape3tfrgrefr4f5refgre.addBox(0F, 0F, 0F, 1, 5, 1); Shape3tfrgrefr4f5refgre.setRotationPoint(4F, 18F, -6F); Shape3tfrgrefr4f5refgre.setTextureSize(170, 113); Shape3tfrgrefr4f5refgre.mirror = true; setRotation(Shape3tfrgrefr4f5refgre, 0F, 0F, 0F); Shape10248541frgretfre = new ModelRenderer(this, 0, 0); Shape10248541frgretfre.addBox(0F, 0F, 0F, 14, 5, 6); Shape10248541frgretfre.setRotationPoint(-7F, 18F, -3F); Shape10248541frgretfre.setTextureSize(170, 113); Shape10248541frgretfre.mirror = true; setRotation(Shape10248541frgretfre, 0F, 0F, 0F); Shape1tre152154r = new ModelRenderer(this, 0, 0); Shape1tre152154r.addBox(0F, 0F, 0F, 6, 5, 14); Shape1tre152154r.setRotationPoint(-3F, 18F, -7F); Shape1tre152154r.setTextureSize(170, 113); Shape1tre152154r.mirror = true; setRotation(Shape1tre152154r, 0F, 0F, 0F); Shape1gfr5163203 = new ModelRenderer(this, 0, 0); Shape1gfr5163203.addBox(0F, 0F, 0F, 16, 1, 6); Shape1gfr5163203.setRotationPoint(-8F, 23F, -3F); Shape1gfr5163203.setTextureSize(170, 113); Shape1gfr5163203.mirror = true; setRotation(Shape1gfr5163203, 0F, 0F, 0F); Shape1fgre46546245 = new ModelRenderer(this, 0, 0); Shape1fgre46546245.addBox(0F, 0F, 0F, 6, 1, 16); Shape1fgre46546245.setRotationPoint(-3F, 23F, -8F); Shape1fgre46546245.setTextureSize(170, 113); Shape1fgre46546245.mirror = true; setRotation(Shape1fgre46546245, 0F, 0F, 0F); Shape454654964regregre = new ModelRenderer(this, 60, 30); Shape454654964regregre.addBox(0F, 0F, 0F, 1, 1, 1); Shape454654964regregre.setRotationPoint(-3F, 11F, 0F); Shape454654964regregre.setTextureSize(170, 113); Shape454654964regregre.mirror = true; setRotation(Shape454654964regregre, -1.041001F, 1.543326F, 0.5948578F); Shape4568956124dgre = new ModelRenderer(this, 60, 30); Shape4568956124dgre.addBox(0F, 0F, 0F, 1, 1, 1); Shape4568956124dgre.setRotationPoint(3F, 11F, 0F); Shape4568956124dgre.setTextureSize(170, 113); Shape4568956124dgre.mirror = true; setRotation(Shape4568956124dgre, -1.041001F, 1.543326F, 0.5948578F); Shape4gr5g9645gd6fgre = new ModelRenderer(this, 60, 30); Shape4gr5g9645gd6fgre.addBox(0F, 0F, 0F, 1, 1, 1); Shape4gr5g9645gd6fgre.setRotationPoint(0F, 11F, 2F); Shape4gr5g9645gd6fgre.setTextureSize(170, 113); Shape4gr5g9645gd6fgre.mirror = true; setRotation(Shape4gr5g9645gd6fgre, -1.041001F, 1.543326F, 0.5948578F); Shape4grg74gr5gfdgd = new ModelRenderer(this, 60, 30); Shape4grg74gr5gfdgd.addBox(0F, 0F, 0F, 1, 1, 1); Shape4grg74gr5gfdgd.setRotationPoint(0F, 13F, 4F); Shape4grg74gr5gfdgd.setTextureSize(170, 113); Shape4grg74gr5gfdgd.mirror = true; setRotation(Shape4grg74gr5gfdgd, -1.041001F, 1.543326F, 0.5948578F); Shape4rfgdg4756g4re5gre = new ModelRenderer(this, 60, 30); Shape4rfgdg4756g4re5gre.addBox(0F, 0F, 0F, 1, 1, 1); Shape4rfgdg4756g4re5gre.setRotationPoint(0F, 13F, -4F); Shape4rfgdg4756g4re5gre.setTextureSize(170, 113); Shape4rfgdg4756g4re5gre.mirror = true; setRotation(Shape4rfgdg4756g4re5gre, -1.041001F, 1.543326F, 0.5948578F); Shape4gre496r4g5re = new ModelRenderer(this, 60, 30); Shape4gre496r4g5re.addBox(0F, 0F, 0F, 1, 1, 1); Shape4gre496r4g5re.setRotationPoint(-6F, 16F, 0F); Shape4gre496r4g5re.setTextureSize(170, 113); Shape4gre496r4g5re.mirror = true; setRotation(Shape4gre496r4g5re, -1.041001F, 1.543326F, 0.5948578F); Shape4greg4694g16re = new ModelRenderer(this, 60, 30); Shape4greg4694g16re.addBox(0F, 0F, 0F, 1, 1, 1); Shape4greg4694g16re.setRotationPoint(6F, 16F, -2F); Shape4greg4694g16re.setTextureSize(170, 113); Shape4greg4694g16re.mirror = true; setRotation(Shape4greg4694g16re, -1.041001F, 1.543326F, 0.5948578F); Shape4greg49674g65re = new ModelRenderer(this, 20, 61); Shape4greg49674g65re.addBox(0F, 0F, 0F, 1, 1, 1); Shape4greg49674g65re.setRotationPoint(-1F, 20F, 7F); Shape4greg49674g65re.setTextureSize(170, 113); Shape4greg49674g65re.mirror = true; setRotation(Shape4greg49674g65re, -1.041001F, 1.543326F, 0.5948578F); Shape4gregr57g496r5e = new ModelRenderer(this, 60, 30); Shape4gregr57g496r5e.addBox(0F, 0F, 0F, 1, 1, 1); Shape4gregr57g496r5e.setRotationPoint(-2F, 19F, -7F); Shape4gregr57g496r5e.setTextureSize(170, 113); Shape4gregr57g496r5e.mirror = true; setRotation(Shape4gregr57g496r5e, -1.041001F, 1.543326F, 0.5948578F); Shape2grgr87gr74ger = new ModelRenderer(this, 0, 0); Shape2grgr87gr74ger.addBox(0F, 0F, 0F, 3, 1, 3); Shape2grgr87gr74ger.setRotationPoint(3F, 23F, 3F); Shape2grgr87gr74ger.setTextureSize(170, 113); Shape2grgr87gr74ger.mirror = true; setRotation(Shape2grgr87gr74ger, 0F, 0F, 0F); Shape3grg47t85g74rtre = new ModelRenderer(this, 0, 0); Shape3grg47t85g74rtre.addBox(0F, 0F, 0F, 2, 1, 1); Shape3grg47t85g74rtre.setRotationPoint(6F, 23F, 3F); Shape3grg47t85g74rtre.setTextureSize(170, 113); Shape3grg47t85g74rtre.mirror = true; setRotation(Shape3grg47t85g74rtre, 0F, 0F, 0F); Shape3grtg8r58g96re546ffgtrhtrgerg = new ModelRenderer(this, 0, 0); Shape3grtg8r58g96re546ffgtrhtrgerg.addBox(0F, 0F, 0F, 1, 1, 2); Shape3grtg8r58g96re546ffgtrhtrgerg.setRotationPoint(3F, 23F, 6F); Shape3grtg8r58g96re546ffgtrhtrgerg.setTextureSize(170, 113); Shape3grtg8r58g96re546ffgtrhtrgerg.mirror = true; setRotation(Shape3grtg8r58g96re546ffgtrhtrgerg, 0F, 0F, 0F); Shape3hftg4h5t7g85rt74g695rt = new ModelRenderer(this, 0, 0); Shape3hftg4h5t7g85rt74g695rt.addBox(0F, 0F, 0F, 1, 1, 1); Shape3hftg4h5t7g85rt74g695rt.setRotationPoint(6F, 23F, 4F); Shape3hftg4h5t7g85rt74g695rt.setTextureSize(170, 113); Shape3hftg4h5t7g85rt74g695rt.mirror = true; setRotation(Shape3hftg4h5t7g85rt74g695rt, 0F, 0F, 0F); Shape3hthgrt897gh4t965hg8rt = new ModelRenderer(this, 0, 0); Shape3hthgrt897gh4t965hg8rt.addBox(0F, 0F, 0F, 1, 1, 1); Shape3hthgrt897gh4t965hg8rt.setRotationPoint(4F, 23F, 6F); Shape3hthgrt897gh4t965hg8rt.setTextureSize(170, 113); Shape3hthgrt897gh4t965hg8rt.mirror = true; setRotation(Shape3hthgrt897gh4t965hg8rt, 0F, 0F, 0F); Shape2htr7hg9tr6h4t6r74h8tr74h56tr = new ModelRenderer(this, 0, 0); Shape2htr7hg9tr6h4t6r74h8tr74h56tr.addBox(0F, 0F, 0F, 3, 1, 3); Shape2htr7hg9tr6h4t6r74h8tr74h56tr.setRotationPoint(-6F, 23F, 3F); Shape2htr7hg9tr6h4t6r74h8tr74h56tr.setTextureSize(170, 113); Shape2htr7hg9tr6h4t6r74h8tr74h56tr.mirror = true; setRotation(Shape2htr7hg9tr6h4t6r74h8tr74h56tr, 0F, 0F, 0F); Shape3hth8t7gf65g84tr687hgt9r = new ModelRenderer(this, 0, 0); Shape3hth8t7gf65g84tr687hgt9r.addBox(0F, 0F, 0F, 2, 1, 1); Shape3hth8t7gf65g84tr687hgt9r.setRotationPoint(-8F, 23F, 3F); Shape3hth8t7gf65g84tr687hgt9r.setTextureSize(170, 113); Shape3hth8t7gf65g84tr687hgt9r.mirror = true; setRotation(Shape3hth8t7gf65g84tr687hgt9r, 0F, 0F, 0F); Shape3ht7g8f57g4r87g85hjrt = new ModelRenderer(this, 0, 0); Shape3ht7g8f57g4r87g85hjrt.addBox(0F, 0F, 0F, 1, 1, 2); Shape3ht7g8f57g4r87g85hjrt.setRotationPoint(-4F, 23F, 6F); Shape3ht7g8f57g4r87g85hjrt.setTextureSize(170, 113); Shape3ht7g8f57g4r87g85hjrt.mirror = true; setRotation(Shape3ht7g8f57g4r87g85hjrt, 0F, 0F, 0F); Shape3ht789748548410t8htr = new ModelRenderer(this, 0, 0); Shape3ht789748548410t8htr.addBox(0F, 0F, 0F, 1, 1, 1); Shape3ht789748548410t8htr.setRotationPoint(-7F, 23F, 4F); Shape3ht789748548410t8htr.setTextureSize(170, 113); Shape3ht789748548410t8htr.mirror = true; setRotation(Shape3ht789748548410t8htr, 0F, 0F, 0F); Shape3htfrg74b9654g98t7ht47tr = new ModelRenderer(this, 0, 0); Shape3htfrg74b9654g98t7ht47tr.addBox(0F, 0F, 0F, 1, 1, 1); Shape3htfrg74b9654g98t7ht47tr.setRotationPoint(-5F, 23F, 6F); Shape3htfrg74b9654g98t7ht47tr.setTextureSize(170, 113); Shape3htfrg74b9654g98t7ht47tr.mirror = true; setRotation(Shape3htfrg74b9654g98t7ht47tr, 0F, 0F, 0F); Shape2htrfht86h4tr5h1t4h5h45gfhrt = new ModelRenderer(this, 0, 0); Shape2htrfht86h4tr5h1t4h5h45gfhrt.addBox(0F, 0F, 0F, 3, 1, 3); Shape2htrfht86h4tr5h1t4h5h45gfhrt.setRotationPoint(-6F, 23F, -6F); Shape2htrfht86h4tr5h1t4h5h45gfhrt.setTextureSize(170, 113); Shape2htrfht86h4tr5h1t4h5h45gfhrt.mirror = true; setRotation(Shape2htrfht86h4tr5h1t4h5h45gfhrt, 0F, 0F, 0F); Shape3thrht465h4t5h4t5htr = new ModelRenderer(this, 0, 0); Shape3thrht465h4t5h4t5htr.addBox(0F, 0F, 0F, 2, 1, 1); Shape3thrht465h4t5h4t5htr.setRotationPoint(-8F, 23F, -4F); Shape3thrht465h4t5h4t5htr.setTextureSize(170, 113); Shape3thrht465h4t5h4t5htr.mirror = true; setRotation(Shape3thrht465h4t5h4t5htr, 0F, 0F, 0F); Shape3hth7t54tgf98h7tr498h5tr4 = new ModelRenderer(this, 0, 0); Shape3hth7t54tgf98h7tr498h5tr4.addBox(0F, 0F, 0F, 1, 1, 2); Shape3hth7t54tgf98h7tr498h5tr4.setRotationPoint(-4F, 23F, -8F); Shape3hth7t54tgf98h7tr498h5tr4.setTextureSize(170, 113); Shape3hth7t54tgf98h7tr498h5tr4.mirror = true; setRotation(Shape3hth7t54tgf98h7tr498h5tr4, 0F, 0F, 0F); Shape3trh4t6fg4b85tr74hgtr = new ModelRenderer(this, 0, 0); Shape3trh4t6fg4b85tr74hgtr.addBox(0F, 0F, 0F, 1, 1, 1); Shape3trh4t6fg4b85tr74hgtr.setRotationPoint(-7F, 23F, -5F); Shape3trh4t6fg4b85tr74hgtr.setTextureSize(170, 113); Shape3trh4t6fg4b85tr74hgtr.mirror = true; setRotation(Shape3trh4t6fg4b85tr74hgtr, 0F, 0F, 0F); Shape3trg4rtf51v8tr4g1t52fgtr = new ModelRenderer(this, 0, 0); Shape3trg4rtf51v8tr4g1t52fgtr.addBox(0F, 0F, 0F, 1, 1, 1); Shape3trg4rtf51v8tr4g1t52fgtr.setRotationPoint(-5F, 23F, -7F); Shape3trg4rtf51v8tr4g1t52fgtr.setTextureSize(170, 113); Shape3trg4rtf51v8tr4g1t52fgtr.mirror = true; setRotation(Shape3trg4rtf51v8tr4g1t52fgtr, 0F, 0F, 0F); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541 = new ModelRenderer(this, 0, 0); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541.addBox(0F, 0F, 0F, 3, 1, 3); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541.setRotationPoint(3F, 23F, -6F); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541.setTextureSize(170, 113); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541.mirror = true; setRotation(Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541, 0F, 0F, 0F); Shape3trgf52v4g81vtret4re54gre65ter = new ModelRenderer(this, 0, 0); Shape3trgf52v4g81vtret4re54gre65ter.addBox(0F, 0F, 0F, 2, 1, 1); Shape3trgf52v4g81vtret4re54gre65ter.setRotationPoint(6F, 23F, -4F); Shape3trgf52v4g81vtret4re54gre65ter.setTextureSize(170, 113); Shape3trgf52v4g81vtret4re54gre65ter.mirror = true; setRotation(Shape3trgf52v4g81vtret4re54gre65ter, 0F, 0F, 0F); Shape3retr7grg7regre7g8er74re654f6re41g5re4 = new ModelRenderer(this, 0, 0); Shape3retr7grg7regre7g8er74re654f6re41g5re4.addBox(0F, 0F, 0F, 1, 1, 2); Shape3retr7grg7regre7g8er74re654f6re41g5re4.setRotationPoint(3F, 23F, -8F); Shape3retr7grg7regre7g8er74re654f6re41g5re4.setTextureSize(170, 113); Shape3retr7grg7regre7g8er74re654f6re41g5re4.mirror = true; setRotation(Shape3retr7grg7regre7g8er74re654f6re41g5re4, 0F, 0F, 0F); Shape3tre74df857gf4re98g7er49gre = new ModelRenderer(this, 0, 0); Shape3tre74df857gf4re98g7er49gre.addBox(0F, 0F, 0F, 1, 1, 1); Shape3tre74df857gf4re98g7er49gre.setRotationPoint(6F, 23F, -5F); Shape3tre74df857gf4re98g7er49gre.setTextureSize(170, 113); Shape3tre74df857gf4re98g7er49gre.mirror = true; setRotation(Shape3tre74df857gf4re98g7er49gre, 0F, 0F, 0F); Shape3rteg47g7rg987re97re9re97ger7g4re5gre = new ModelRenderer(this, 0, 0); Shape3rteg47g7rg987re97re9re97ger7g4re5gre.addBox(0F, 0F, 0F, 1, 1, 1); Shape3rteg47g7rg987re97re9re97ger7g4re5gre.setRotationPoint(4F, 23F, -7F); Shape3rteg47g7rg987re97re9re97ger7g4re5gre.setTextureSize(170, 113); Shape3rteg47g7rg987re97re9re97ger7g4re5gre.mirror = true; setRotation(Shape3rteg47g7rg987re97re9re97ger7g4re5gre, 0F, 0F, 0F); } public void render(float f) { super.render(null, f, f, f, f, f, f); setRotationAngles(f, f, f, f, f, f); Shape1gtrg4.render(f); Shape1dfgf.render(f); Shape2rtrtr.render(f); Shape3rte.render(f); Shape3nb.render(f); Shape3az.render(f); Shape2ertyu.render(f); Shape3tretre.render(f); Shape3tretrrete.render(f); Shape3zevbyt.render(f); Shape2vbive.render(f); Shape3by15.render(f); Shape3fr6516e.render(f); Shape3rte885496gre.render(f); Shape2tre9685bg4h9t7h48tr.render(f); Shape3rygtr79r4gf45rg4hg5h.render(f); Shape3gfret7878retyr.render(f); Shape1ytr596tr.render(f); Shape1ytr54954gtr.render(f); Shapezertyuibfvdgtr5.render(f); Shape3refgtretf45r6g4re.render(f); Shape3trefre8ftretrg9t8s.render(f); Shape3grertyuikjhgfde.render(f); Shape3refrefr4efrerefrg5.render(f); Shape2tref789regfregr4.render(f); Shape3tgretgre456re.render(f); Shape3tre4ergre5retgre4.render(f); Shape3tre4retgre7.render(f); Shape3tre8ertgrev7reg.render(f); Shape2greger87erger87re.render(f); Shape3grt752514grv7gfb.render(f); Shape3ret4etfre41856reg4re5.render(f); Shape3gregr56gt59ghtrgtr.render(f); Shape3tgre45retg4545545rgrtedfg.render(f); Shape2gtrgrt546.render(f); Shape3tretgre788574re.render(f); Shape3tertre7856er.render(f); Shape3ttgr785r.render(f); Shape3tfrgrefr4f5refgre.render(f); Shape10248541frgretfre.render(f); Shape1tre152154r.render(f); Shape1gfr5163203.render(f); Shape1fgre46546245.render(f); Shape454654964regregre.render(f); Shape4568956124dgre.render(f); Shape4gr5g9645gd6fgre.render(f); Shape4grg74gr5gfdgd.render(f); Shape4rfgdg4756g4re5gre.render(f); Shape4gre496r4g5re.render(f); Shape4greg4694g16re.render(f); Shape4greg49674g65re.render(f); Shape4gregr57g496r5e.render(f); Shape2grgr87gr74ger.render(f); Shape3grg47t85g74rtre.render(f); Shape3grtg8r58g96re546ffgtrhtrgerg.render(f); Shape3hftg4h5t7g85rt74g695rt.render(f); Shape3hthgrt897gh4t965hg8rt.render(f); Shape2htr7hg9tr6h4t6r74h8tr74h56tr.render(f); Shape3hth8t7gf65g84tr687hgt9r.render(f); Shape3ht7g8f57g4r87g85hjrt.render(f); Shape3ht789748548410t8htr.render(f); Shape3htfrg74b9654g98t7ht47tr.render(f); Shape2htrfht86h4tr5h1t4h5h45gfhrt.render(f); Shape3thrht465h4t5h4t5htr.render(f); Shape3hth7t54tgf98h7tr498h5tr4.render(f); Shape3trh4t6fg4b85tr74hgtr.render(f); Shape3trg4rtf51v8tr4g1t52fgtr.render(f); Shape2ytrg54t6g1tr4vb5trferfgbghtr54648541.render(f); Shape3trgf52v4g81vtret4re54gre65ter.render(f); Shape3retr7grg7regre7g8er74re654f6re41g5re4.render(f); Shape3tre74df857gf4re98g7er49gre.render(f); Shape3rteg47g7rg987re97re9re97ger7g4re5gre.render(f); } 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); } }
TileEntityCopper:
package Mineralherb.Blocks; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; public class TileEntityCopper extends TileEntity { public String visiteur[] = new String[]{"visiteur0", "visiteur1", "visiteur2", "visiteur3", "visiteur4"}; public void readFromNBT(NBTTagCompound nbtTag) { boolean copperboolean = nbtTag.getBoolean("exemple"); super.readFromNBT(nbtTag); for(int i = 0; i < 5; i++) { visiteur* = nbtTag.getString("visiteur" + i); } } public void writeToNBT(NBTTagCompound nbtTag) { boolean copperboolean = false; nbtTag.setBoolean("exemple", copperboolean); super.writeToNBT(nbtTag); for(int i = 0; i < 5; i++) { nbtTag.setString("visiteur" + i, visiteur*); } } public String getPlayerList() { return visiteur[0] + ", " + visiteur[1] + ", " + visiteur[2] + ", " + visiteur[3] + ", " + visiteur[4] + ", "; } public void addplayertolist(String playerName) { if(!visiteur[0].equals(playerName)) { for(int i = 3; i >= 0; i–) { visiteur _= visiteur*; } visiteur[0] = playerName; } worldObj.notifyBlockChange(xCoord, yCoord, zCoord, 2); } }
IInventoryRender:
package Mineralherb.client; public interface IInventoryRenderer { public void renderInventory(double x, double y, double z); } ```_</tesrindex,></tesrindex,>
-
D’apres ce que j’ai vue, t’a classe IinventoryRender est pas complète ^^’
Mais sinon y’a rien je crois… Peut être un problème d’import
-
que rajouter
-
Regarde vers la fin du tuto ^^
-
public class TESRInventoryRenderer {
???
public class TESRInventoryRenderer implements ISimpleBlockRenderingHandler{
D’ailleurs dans ton CommonProxy enlève ça :
public Object RenderingRegistry;
Ducoup ton client prxy pourra être comme ça :
package Mineralherb; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; import Mineralherb.Blocks.TileEntityCopper; public class ClientProxy extends CommonProxy{ public static int renderInventoryTESRId; @Override public void registerRenderers(){ //Ici les futurs registrys renderInventoryTESRId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new TESRInventoryRenderer()); } @Override public void registerTileEntityRender() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCopper.class, new TileEntityCopperSpecialRender()); } }
-
oki merci
par contre il trouve pas la texture pourtaint j’ai bien mis: assets/Mineralherb/textures/blocks/coppermineral.pnj
EDIT: quand je pose mon bloc voici l’érreur dans la console éclipse:
2014-02-12 15:10:11 [Avertissement] [Minecraft-Client] Failed to load texture: Mineralherb:textures/blocks/coppermineral.png java.io.FileNotFoundException: Mineralherb:textures/blocks/coppermineral.png at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:31) at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:84) at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:41) at net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:27) at Mineralherb.TileEntityCopperSpecialRender.renderTileEntityCopperAt(TileEntityCopperSpecialRender.java:29) at Mineralherb.TileEntityCopperSpecialRender.renderTileEntityAt(TileEntityCopperSpecialRender.java:39) at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntityAt(TileEntityRenderer.java:176) at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntity(TileEntityRenderer.java:161) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:536) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1002) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) at net.minecraft.client.Minecraft.run(Minecraft.java:838) at net.minecraft.client.main.Main.main(Main.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
-
le chemin complet est forge\mcp\src\minecraft\assets\mineralherb\textures\blocks
ton modid=“MH”, aucune majuscule dans le modid (je crois) mais quoi qu’il arrive, ton chemin n’est pas bon, car ce serai assets\MH\textures\blocks ^^
at Mineralherb.TileEntityCopperSpecialRender.renderTileEntityCopperAt(TileEntityCop?perSpecialRender.java:29) at Mineralherb.TileEntityCopperSpecialRender.renderTileEntityAt(TileEntityCopperSpe?cialRender.java:39)
Probleme ligne 29 et 39 de TileEntityCopperSpe?cialRender
-
ok merci je regarde tout ca
et vivement le tuto pour apprendre les débug
EDIT:
ligne 29: this.bindTexture(textureLocation);
ligne 39:this.renderTileEntityCopperAt((TileEntityCopper)te, x, y, z, tick);pour le bind texture c’est surement car le chemin était mal déclaré mais pour la ligne 39…. ca je sais pas
-
en effet, pas de majuscule dans le chemin des textures.
ÉDIT : la ligne 39 est indiqué car le stacktrace remonte toutes les fonctions.
-
par contre c’est des / ou des \ dans le chemin d’accès, car moi pour les \ j’ai une erreur
-
un slash : /
-
assets/mineralherb/textures/blocks/coppermineral.png ne marche pas
-
new ResourceLocation(“mineralherb”, “textures/blocks/coppermineral.png”);
-
je t’aime
et je n’ai plus aucune erreur