Salut à tous et à toutes
J’ai aujourd’hui rencontré un problème mon mob est invisible cela m’embête car j’ai suivi le tuto voici mes class et je confirme que j’ai fait mon modèle avec Techne et que j’y ai placé la texture 64x32 dans le dossier “textures/entity/reflet.png”
Voici mes class :
| |
| |
| |
| |
| |
| |
| |
| package mods.maxiworldcraft.mineKingdomHeartsmod.client; |
| |
| import net.minecraft.client.model.ModelBase; |
| import net.minecraft.client.model.ModelRenderer; |
| |
| import com.sun.xml.internal.stream.Entity; |
| |
| public class ModelReflet extends ModelBase |
| { |
| private static final String __OBFID = "CL_00000836"; |
| |
| |
| ModelRenderer tete; |
| ModelRenderer corps; |
| ModelRenderer brasGauche; |
| ModelRenderer brasDroit; |
| ModelRenderer piedGauche; |
| ModelRenderer piedDroit; |
| |
| public ModelReflet() |
| { |
| textureWidth = 64; |
| textureHeight = 32; |
| |
| tete = new ModelRenderer(this, 0, 0); |
| tete.addBox(0F, 0F, 0F, 6, 5, 6); |
| tete.setRotationPoint(-4F, -4F, 2F); |
| tete.setTextureSize(64, 32); |
| tete.mirror = true; |
| setRotation(tete, 0.8901179F, 0F, 0F); |
| corps = new ModelRenderer(this, 26, 0); |
| corps.addBox(-6F, -2F, 4F, 9, 9, 3); |
| corps.setRotationPoint(0F, 0F, 0F); |
| corps.setTextureSize(64, 32); |
| corps.mirror = true; |
| setRotation(corps, 0F, 0F, 0F); |
| brasGauche = new ModelRenderer(this, 58, 12); |
| brasGauche.addBox(0F, 0F, 0F, 1, 18, 2); |
| brasGauche.setRotationPoint(3F, -1F, 5F); |
| brasGauche.setTextureSize(64, 32); |
| brasGauche.mirror = true; |
| setRotation(brasGauche, 0F, 0F, 0F); |
| brasDroit = new ModelRenderer(this, 50, 12); |
| brasDroit.addBox(0F, 0F, 0F, 1, 18, 2); |
| brasDroit.setRotationPoint(-7F, 0F, 5F); |
| brasDroit.setTextureSize(64, 32); |
| brasDroit.mirror = true; |
| setRotation(brasDroit, 0F, 0F, 0F); |
| piedGauche = new ModelRenderer(this, 7, 12); |
| piedGauche.addBox(0F, 0F, 0F, 2, 17, 2); |
| piedGauche.setRotationPoint(0F, 7F, 5F); |
| piedGauche.setTextureSize(64, 32); |
| piedGauche.mirror = true; |
| setRotation(piedGauche, 0F, 0F, 0F); |
| piedDroit = new ModelRenderer(this, 18, 12); |
| piedDroit.addBox(0F, 0F, 0F, 2, 17, 2); |
| piedDroit.setRotationPoint(-5F, 7F, 5F); |
| piedDroit.setTextureSize(64, 32); |
| piedDroit.mirror = true; |
| setRotation(piedDroit, 0F, 0F, 0F); |
| } |
| |
| public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) |
| { |
| |
| this.setRotationAngles(f, f1, f2, f3, f4, f5, entity); |
| tete.render(f5); |
| corps.render(f5); |
| brasGauche.render(f5); |
| brasDroit.render(f5); |
| piedGauche.render(f5); |
| piedDroit.render(f5); |
| } |
| |
| 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, Entity entity) |
| { |
| |
| } |
| |
| } |
| |
| |
| package mods.maxiworldcraft.mineKingdomHeartsmod.client; |
| |
| import cpw.mods.fml.relauncher.Side; |
| import cpw.mods.fml.relauncher.SideOnly; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityReflet; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.modMineKingdomHearts; |
| import net.minecraft.client.model.ModelBase; |
| import net.minecraft.client.renderer.entity.RenderLiving; |
| import net.minecraft.entity.Entity; |
| import net.minecraft.util.ResourceLocation; |
| |
| @SideOnly(Side.CLIENT) |
| public class RenderReflet extends RenderLiving |
| { |
| private static final ResourceLocation texture = new ResourceLocation(modMineKingdomHearts.MODID, "textures/entity/reflet.png"); |
| private static final String __OBFID = "CL_00000984"; |
| |
| public RenderReflet(ModelBase par1ModelBase, float par2) |
| { |
| super(par1ModelBase, par2); |
| } |
| |
| |
| |
| |
| protected ResourceLocation getEntityTexture(EntityReflet entityreflet) |
| { |
| return texture; |
| } |
| |
| |
| |
| |
| protected ResourceLocation getEntityTexture(Entity par1Entity) |
| { |
| return this.getEntityTexture((EntityReflet)par1Entity); |
| } |
| } |
| |
| |
| package mods.maxiworldcraft.mineKingdomHeartsmod.client; |
| |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityEffrayeur; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityFuu; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityHayner; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityOlette; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityPence; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityReflet; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityRei; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntitySeifer; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntitySetzer; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.EntityVivi; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityDingo; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityDonald; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityDuoSismique; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityHades; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityHayner; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityOlette; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityPence; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntityRoxas; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntitySetzer; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.TileEntitySora; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.common.modMineKingdomHearts; |
| import mods.maxiworldcraft.mineKingdomHeartsmod.proxy.modMineKingdomHeartsCommonProxy; |
| import net.minecraft.client.model.ModelBiped; |
| import cpw.mods.fml.client.registry.ClientRegistry; |
| import cpw.mods.fml.client.registry.RenderingRegistry; |
| |
| public class modMineKingdomHeartsClientProxy extends modMineKingdomHeartsCommonProxy |
| { |
| public static int renderInventoryTESRId;; |
| |
| @Override |
| |
| public void registerRenderer() |
| { |
| System.out.println("Salut je suis un test du client"); |
| |
| RenderingRegistry.registerEntityRenderingHandler(EntityReflet.class, new RenderReflet(new ModelReflet(), 0.2F)); |
| |
| } |
| public void registerTileEntityRender() |
| { |
| |
| } |
| |