Bug TileEntity serveur



  • Salut ^^ donc voila j'ai un petit problème avec un block TileEntity, en solo il fonctionne très bien aucun problème mais en multi tout fonctionne sauf une chose lorsque on est sur le block et que l'on saute on fait crash le serveur et à chaques fois que l'on veut se reconnecter on est déco t'en que l'on est sur le block.

    Voici mes class:

    BlockFireCupOn:

    package com.pottercraft.mod.blocks;
    
    import java.util.List;
    import java.util.Random;
    
    import com.pottercraft.mod.Reference;
    import com.pottercraft.mod.effect.EntityFireCupFX;
    import com.pottercraft.mod.init.ItemMod;
    import com.pottercraft.mod.proxy.ClientProxy;
    import com.pottercraft.mod.tileentity.TileEntityFireCupOn;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockBed;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.init.Blocks;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.AxisAlignedBB;
    import net.minecraft.util.IIcon;
    import net.minecraft.util.MathHelper;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.world.World;
    
    public class BlockFireCupOn extends Block
    {  
       public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z)
       {
           this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 2.0F, 1.0F);
       }
    
       public IIcon getIcon(int side, int metadata)
       {
           return Blocks.stone.getIcon(0, 0);
       }
    
       public BlockFireCupOn(Material p_i45394_1_)
       {
           super(p_i45394_1_);
       }
    
       @Override
       public TileEntity createTileEntity(World world, int metadata)
       {
           return new TileEntityFireCupOn();
       }
    
       @Override
       public boolean hasTileEntity(int metadata)
       {
           return true;
       }
    
       public boolean isOpaqueCube()
       {
           return false;
       }
    
       public boolean renderAsNormalBlock()
       {
           return false;
       }
    
       public int getRenderType()
       {
           return ClientProxy.tesrRenderId;
       }
    
       public int tickRate(World p_149738_1_)
       {
           return 30;
       }
    
       @SideOnly(Side.CLIENT)
       public void randomDisplayTick(World world, int x, int y, int z, Random random)
       {
           int l = world.getBlockMetadata(x, y, z);
           double d0 = (double)((float)x + 0.8F);
           double d1 = (double)((float)y + 2.5F);
           double d2 = (double)((float)z + 0.5F);
           double d3 = 0.2199999988079071D;
           double d4 = 0.27000001072883606D;
    
           Minecraft.getMinecraft().effectRenderer.addEffect(new EntityFireCupFX(world, d0 - d4, d1 + d3, d2, 0.0D, 0.0D, 0.0D));
           world.playSound((double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D, "pottercraft:fire_cup", 1.0F, 1.0F, blockConstructorCalled);
       }
    }
    

    TileEntityFireCupOn:

    package com.pottercraft.mod.tileentity;
    
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.tileentity.TileEntity;
    
    public class TileEntityFireCupOn extends TileEntity
    {
       @Override
       public void readFromNBT(NBTTagCompound compound)
       {
           super.readFromNBT(compound);
       }
    
       @Override
       public void writeToNBT(NBTTagCompound compound)
       {
           super.writeToNBT(compound);
       }
    }
    

    TileEntityFireCupOnSpecialRenderer:

    package com.pottercraft.mod.tileentity;
    
    import org.lwjgl.opengl.GL11;
    
    import com.pottercraft.mod.Reference;
    import com.pottercraft.mod.model.ModelFireCupOn;
    
    import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
    import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.ResourceLocation;
    
    public class TileEntityFireCupOnSpecialRenderer extends TileEntitySpecialRenderer
    {    
       public static ModelFireCupOn model = new ModelFireCupOn();
       public static ResourceLocation texture = new ResourceLocation(Reference.MOD_ID, "textures/blocks/fire_cup_on.png");
    
       public TileEntityFireCupOnSpecialRenderer()
       {
           this.func_147497_a(TileEntityRendererDispatcher.instance);
       }
    
       @Override
       public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float partialRenderTick)
       {
           this.renderTileEntityFireCupOnAt((TileEntityFireCupOn)tile, x, y, z, partialRenderTick);
       }
    
       private void renderTileEntityFireCupOnAt(TileEntityFireCupOn tile, double x, double y, double z, float partialRenderTick)
       {
           GL11.glPushMatrix();
           GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);
           GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
           this.bindTexture(texture);
           model.renderAll();
           GL11.glPopMatrix();
       }
    }
    

    ModelFireCupOn:

    package com.pottercraft.mod.model;
    
    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.model.ModelRenderer;
    
    public class ModelFireCupOn extends ModelBase
    {
       public ModelRenderer shape1;
       public ModelRenderer shape2;
       public ModelRenderer shape3;
       public ModelRenderer shape200;
       public ModelRenderer shape201;
       public ModelRenderer shape5;
       public ModelRenderer shape6;
       public ModelRenderer shape7;
       public ModelRenderer shape8;
       public ModelRenderer shape9;
       public ModelRenderer shape10;
       public ModelRenderer shape11;
       public ModelRenderer shape12;
       public ModelRenderer shape13;
       public ModelRenderer shape14;
       public ModelRenderer shape15;
       public ModelRenderer shape16;
       public ModelRenderer shape17;
       public ModelRenderer shape18;
       public ModelRenderer shape19;
       public ModelRenderer shape20;
       public ModelRenderer shape21;
       public ModelRenderer shape22;
       public ModelRenderer shape23;
       public ModelRenderer shape24;
       public ModelRenderer shape25;
       public ModelRenderer shape26;
       public ModelRenderer shape27;
       public ModelRenderer shape28;
       public ModelRenderer shape29;
       public ModelRenderer shape30;
       public ModelRenderer shape100;
       public ModelRenderer shape101;
       public ModelRenderer shape102;
       public ModelRenderer shape103;
       public ModelRenderer shape104;
       public ModelRenderer shape105;
       public ModelRenderer shape106;
       public ModelRenderer shape107;
       public ModelRenderer shape108;
       public ModelRenderer shape109;
       public ModelRenderer shape110;
       public ModelRenderer shape111;
       public ModelRenderer shape112;
       public ModelRenderer shape113;
       public ModelRenderer shape114;
       public ModelRenderer shape115;
       public ModelRenderer shape116;
       public ModelRenderer shape117;
       public ModelRenderer shape118;
       public ModelRenderer shape119;
    
     public ModelFireCupOn()
     {
         this.textureWidth = 128;
         this.textureHeight = 128;
    
         this.shape1 = new ModelRenderer(this, 64, 102);
         this.shape1.mirror = true;
         this.shape1.addBox(0F, 0F, 0F, 16, 10, 16);
         this.shape1.setRotationPoint(-8F, 14F, -8F);
         this.shape1.setTextureSize(64, 32);
         setRotation(this.shape1, 0F, 0F, 0F);
    
         this.shape2 = new ModelRenderer(this, 88, 90);
         this.shape2.mirror = true;
         this.shape2.addBox(0F, 0F, 0F, 10, 1, 10);
         this.shape2.setRotationPoint(-5F, 13F, -5F);
         this.shape2.setTextureSize(64, 32);
         setRotation(this.shape2, 0F, 0F, 0F);
    
         this.shape3 = new ModelRenderer(this, 112, 79);
         this.shape3.mirror = true;
         this.shape3.addBox(0F, 0F, 0F, 4, 6, 4);
         this.shape3.setRotationPoint(-2F, 7F, -2F);
         this.shape3.setTextureSize(64, 32);
         setRotation(this.shape3, 0F, 0F, 0F);
    
         this.shape200 = new ModelRenderer(this, 104, 68);
         this.shape200.mirror = true;
         this.shape200.addBox(-3F, 0F, -3F, 6, 4, 6);
         this.shape200.setRotationPoint(0F, 3F, 0F);
         this.shape200.setTextureSize(64, 32);
         setRotation(this.shape200, 0F, 0F, 0F);
    
         this.shape201 = new ModelRenderer(this, 104, 68);
         this.shape201.mirror = true;
         this.shape201.addBox(-3F, 0F, -3F, 6, 4, 6);
         this.shape201.setRotationPoint(0F, 3F, 0F);
         this.shape201.setTextureSize(64, 32);
         setRotation(this.shape201, 0F, 0.7853982F, 0F);
    
         this.shape5 = new ModelRenderer(this, 120, 61);
         this.shape5.mirror = true;
         this.shape5.addBox(0F, 0F, 0F, 2, 4, 2);
         this.shape5.setRotationPoint(-1F, -1F, -1F);
         this.shape5.setTextureSize(64, 32);
         setRotation(this.shape5, 0F, 0F, 0F);
    
         this.shape6 = new ModelRenderer(this, 112, 55);
         this.shape6.mirror = true;
         this.shape6.addBox(0F, 0F, 0F, 4, 1, 4);
         this.shape6.setRotationPoint(-2F, -2F, -2F);
         this.shape6.setTextureSize(64, 32);
         setRotation(this.shape6, 0F, 0F, 0F);
    
         this.shape7 = new ModelRenderer(this, 0, 123);
         this.shape7.mirror = true;
         this.shape7.addBox(0F, 0F, 0F, 1, 1, 4);
         this.shape7.setRotationPoint(-3F, -3F, -2F);
         this.shape7.setTextureSize(64, 32);
         setRotation(this.shape7, 0F, 0F, 0F);
    
         this.shape8 = new ModelRenderer(this, 11, 126);
         this.shape8.mirror = true;
         this.shape8.addBox(0F, 0F, 0F, 4, 1, 1);
         this.shape8.setRotationPoint(-2F, -3F, -3F);
         this.shape8.setTextureSize(64, 32);
         setRotation(this.shape8, 0F, 0F, 0F);
    
         this.shape9 = new ModelRenderer(this, 0, 123);
         this.shape9.mirror = true;
         this.shape9.addBox(0F, 0F, 0F, 1, 1, 4);
         this.shape9.setRotationPoint(2F, -3F, -2F);
         this.shape9.setTextureSize(64, 32);
         setRotation(this.shape9, 0F, 0F, 0F);
    
         this.shape10 = new ModelRenderer(this, 11, 126);
         this.shape10.mirror = true;
         this.shape10.addBox(0F, 0F, 0F, 4, 1, 1);
         this.shape10.setRotationPoint(-2F, -3F, 2F);
         this.shape10.setTextureSize(64, 32);
         setRotation(this.shape10, 0F, 0F, 0F);
    
         this.shape11 = new ModelRenderer(this, 0, 115);
         this.shape11.mirror = true;
         this.shape11.addBox(0F, 0F, 0F, 1, 1, 6);
         this.shape11.setRotationPoint(-4F, -4F, -3F);
         this.shape11.setTextureSize(64, 32);
         setRotation(this.shape11, 0F, 0F, 0F);
    
         this.shape12 = new ModelRenderer(this, 15, 120);
         this.shape12.mirror = true;
         this.shape12.addBox(0F, 0F, 0F, 6, 1, 1);
         this.shape12.setRotationPoint(-3F, -4F, -4F);
         this.shape12.setTextureSize(64, 32);
         setRotation(this.shape12, 0F, 0F, 0F);
    
         this.shape13 = new ModelRenderer(this, 0, 115);
         this.shape13.mirror = true;
         this.shape13.addBox(0F, 0F, 0F, 1, 1, 6);
         this.shape13.setRotationPoint(3F, -4F, -3F);
         this.shape13.setTextureSize(64, 32);
         setRotation(this.shape13, 0F, 0F, 0F);
    
         this.shape14 = new ModelRenderer(this, 15, 120);
         this.shape14.mirror = true;
         this.shape14.addBox(0F, 0F, 0F, 6, 1, 1);
         this.shape14.setRotationPoint(-3F, -4F, 3F);
         this.shape14.setTextureSize(64, 32);
         setRotation(this.shape14, 0F, 0F, 0F);
    
         this.shape15 = new ModelRenderer(this, 0, 104);
         this.shape15.mirror = true;
         this.shape15.addBox(0F, 0F, 0F, 1, 2, 8);
         this.shape15.setRotationPoint(-5F, -6F, -4F);
         this.shape15.setTextureSize(64, 32);
         setRotation(this.shape15, 0F, 0F, 0F);
    
         this.shape16 = new ModelRenderer(this, 19, 111);
         this.shape16.mirror = true;
         this.shape16.addBox(0F, 0F, 0F, 8, 2, 1);
         this.shape16.setRotationPoint(-4F, -6F, -5F);
         this.shape16.setTextureSize(64, 32);
         setRotation(this.shape16, 0F, 0F, 0F);
    
         this.shape17 = new ModelRenderer(this, 0, 104);
         this.shape17.mirror = true;
         this.shape17.addBox(0F, 0F, 0F, 1, 2, 8);
         this.shape17.setRotationPoint(4F, -6F, -4F);
         this.shape17.setTextureSize(64, 32);
         setRotation(this.shape17, 0F, 0F, 0F);
    
         this.shape18 = new ModelRenderer(this, 19, 111);
         this.shape18.mirror = true;
         this.shape18.addBox(0F, 0F, 0F, 8, 2, 1);
         this.shape18.setRotationPoint(-4F, -6F, 4F);
         this.shape18.setTextureSize(64, 32);
         setRotation(this.shape18, 0F, 0F, 0F);
    
         this.shape19 = new ModelRenderer(this, 23, 100);
         this.shape19.mirror = true;
         this.shape19.addBox(0F, 0F, 0F, 10, 2, 1);
         this.shape19.setRotationPoint(-5F, -8F, -6F);
         this.shape19.setTextureSize(64, 32);
         setRotation(this.shape19, 0F, 0F, 0F);
    
         this.shape20 = new ModelRenderer(this, 0, 91);
         this.shape20.mirror = true;
         this.shape20.addBox(0F, 0F, 0F, 1, 2, 10);
         this.shape20.setRotationPoint(5F, -8F, -5F);
         this.shape20.setTextureSize(64, 32);
         setRotation(this.shape20, 0F, 0F, 0F);
    
         this.shape21 = new ModelRenderer(this, 23, 100);
         this.shape21.mirror = true;
         this.shape21.addBox(0F, 0F, 0F, 10, 2, 1);
         this.shape21.setRotationPoint(-5F, -8F, 5F);
         this.shape21.setTextureSize(64, 32);
         setRotation(this.shape21, 0F, 0F, 0F);
    
         this.shape22 = new ModelRenderer(this, 0, 91);
         this.shape22.mirror = true;
         this.shape22.addBox(0F, 0F, 0F, 1, 2, 10);
         this.shape22.setRotationPoint(-6F, -8F, -5F);
         this.shape22.setTextureSize(64, 32);
         setRotation(this.shape22, 0F, 0F, 0F);
    
         this.shape23 = new ModelRenderer(this, 27, 85);
         this.shape23.mirror = true;
         this.shape23.addBox(0F, 0F, 0F, 12, 4, 1);
         this.shape23.setRotationPoint(-6F, -12F, -7F);
         this.shape23.setTextureSize(64, 32);
         setRotation(this.shape23, 0F, 0F, 0F);
    
         this.shape24 = new ModelRenderer(this, 0, 74);
         this.shape24.mirror = true;
         this.shape24.addBox(0F, 0F, 0F, 1, 4, 12);
         this.shape24.setRotationPoint(6F, -12F, -6F);
         this.shape24.setTextureSize(64, 32);
         setRotation(this.shape24, 0F, 0F, 0F);
    
         this.shape25 = new ModelRenderer(this, 27, 85);
         this.shape25.mirror = true;
         this.shape25.addBox(0F, 0F, 0F, 12, 4, 1);
         this.shape25.setRotationPoint(-6F, -12F, 6F);
         this.shape25.setTextureSize(64, 32);
         setRotation(this.shape25, 0F, 0F, 0F);
    
         this.shape26 = new ModelRenderer(this, 0, 74);
         this.shape26.mirror = true;
         this.shape26.addBox(0F, 0F, 0F, 1, 4, 12);
         this.shape26.setRotationPoint(-7F, -12F, -6F);
         this.shape26.setTextureSize(64, 32);
         setRotation(this.shape26, 0F, 0F, 0F);
    
         this.shape27 = new ModelRenderer(this, 31, 71);
         this.shape27.mirror = true;
         this.shape27.addBox(0F, 0F, 0F, 14, 1, 1);
         this.shape27.setRotationPoint(-7F, -13F, -8F);
         this.shape27.setTextureSize(64, 32);
         setRotation(this.shape27, 0F, 0F, 0F);
    
         this.shape28 = new ModelRenderer(this, 0, 58);
         this.shape28.mirror = true;
         this.shape28.addBox(0F, 0F, 0F, 1, 1, 14);
         this.shape28.setRotationPoint(7F, -13F, -7F);
         this.shape28.setTextureSize(64, 32);
         setRotation(this.shape28, 0F, 0F, 0F);
    
         this.shape29 = new ModelRenderer(this, 31, 71);
         this.shape29.mirror = true;
         this.shape29.addBox(0F, 0F, 0F, 14, 1, 1);
         this.shape29.setRotationPoint(-7F, -13F, 7F);
         this.shape29.setTextureSize(64, 32);
         setRotation(this.shape29, 0F, 0F, 0F);
    
         this.shape30 = new ModelRenderer(this, 0, 58);
         this.shape30.mirror = true;
         this.shape30.addBox(0F, 0F, 0F, 1, 1, 14);
         this.shape30.setRotationPoint(-8F, -13F, -7F);
         this.shape30.setTextureSize(64, 32);
         setRotation(this.shape30, 0F, 0F, 0F);
    
         this.shape100 = new ModelRenderer(this, 124, 52);
         this.shape100.mirror = true;
         this.shape100.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape100.setRotationPoint(-4F, -5F, 3F);
         this.shape100.setTextureSize(64, 32);
         setRotation(this.shape100, 0F, 0F, 0F);
    
         this.shape101 = new ModelRenderer(this, 124, 52);
         this.shape101.mirror = true;
         this.shape101.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape101.setRotationPoint(-3F, -4F, 2F);
         this.shape101.setTextureSize(64, 32);
         setRotation(this.shape101, 0F, 0F, 0F);
    
         this.shape102 = new ModelRenderer(this, 124, 52);
         this.shape102.mirror = true;
         this.shape102.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape102.setRotationPoint(-3F, -4F, -3F);
         this.shape102.setTextureSize(64, 32);
         setRotation(this.shape102, 0F, 0F, 0F);
    
         this.shape103 = new ModelRenderer(this, 124, 52);
         this.shape103.mirror = true;
         this.shape103.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape103.setRotationPoint(2F, -4F, -3F);
         this.shape103.setTextureSize(64, 32);
         setRotation(this.shape103, 0F, 0F, 0F);
    
         this.shape104 = new ModelRenderer(this, 124, 52);
         this.shape104.mirror = true;
         this.shape104.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape104.setRotationPoint(2F, -4F, 2F);
         this.shape104.setTextureSize(64, 32);
         setRotation(this.shape104, 0F, 0F, 0F);
    
         this.shape105 = new ModelRenderer(this, 124, 52);
         this.shape105.mirror = true;
         this.shape105.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape105.setRotationPoint(3F, -5F, 3F);
         this.shape105.setTextureSize(64, 32);
         setRotation(this.shape105, 0F, 0F, 0F);
    
         this.shape106 = new ModelRenderer(this, 124, 52);
         this.shape106.mirror = true;
         this.shape106.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape106.setRotationPoint(4F, -7F, 4F);
         this.shape106.setTextureSize(64, 32);
         setRotation(this.shape106, 0F, 0F, 0F);
    
         this.shape107 = new ModelRenderer(this, 124, 52);
         this.shape107.mirror = true;
         this.shape107.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape107.setRotationPoint(-4F, -5F, -4F);
         this.shape107.setTextureSize(64, 32);
         setRotation(this.shape107, 0F, 0F, 0F);
    
         this.shape108 = new ModelRenderer(this, 124, 52);
         this.shape108.mirror = true;
         this.shape108.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape108.setRotationPoint(3F, -5F, -4F);
         this.shape108.setTextureSize(64, 32);
         setRotation(this.shape108, 0F, 0F, 0F);
    
         this.shape109 = new ModelRenderer(this, 124, 52);
         this.shape109.mirror = true;
         this.shape109.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape109.setRotationPoint(4F, -7F, -5F);
         this.shape109.setTextureSize(64, 32);
         setRotation(this.shape109, 0F, 0F, 0F);
    
         this.shape110 = new ModelRenderer(this, 124, 52);
         this.shape110.mirror = true;
         this.shape110.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape110.setRotationPoint(5F, -9F, -6F);
         this.shape110.setTextureSize(64, 32);
         setRotation(this.shape110, 0F, 0F, 0F);
    
         this.shape111 = new ModelRenderer(this, 124, 52);
         this.shape111.mirror = true;
         this.shape111.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape111.setRotationPoint(-5F, -7F, 4F);
         this.shape111.setTextureSize(64, 32);
         setRotation(this.shape111, 0F, 0F, 0F);
    
         this.shape112 = new ModelRenderer(this, 124, 52);
         this.shape112.mirror = true;
         this.shape112.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape112.setRotationPoint(-5F, -7F, -5F);
         this.shape112.setTextureSize(64, 32);
         setRotation(this.shape112, 0F, 0F, 0F);
    
         this.shape113 = new ModelRenderer(this, 124, 52);
         this.shape113.mirror = true;
         this.shape113.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape113.setRotationPoint(-6F, -9F, -6F);
         this.shape113.setTextureSize(64, 32);
         setRotation(this.shape113, 0F, 0F, 0F);
    
         this.shape114 = new ModelRenderer(this, 124, 52);
         this.shape114.mirror = true;
         this.shape114.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape114.setRotationPoint(-6F, -9F, 5F);
         this.shape114.setTextureSize(64, 32);
         setRotation(this.shape114, 0F, 0F, 0F);
    
         this.shape115 = new ModelRenderer(this, 124, 52);
         this.shape115.mirror = true;
         this.shape115.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape115.setRotationPoint(6F, -13F, -7F);
         this.shape115.setTextureSize(64, 32);
         setRotation(this.shape115, 0F, 0F, 0F);
    
         this.shape116 = new ModelRenderer(this, 124, 52);
         this.shape116.mirror = true;
         this.shape116.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape116.setRotationPoint(5F, -9F, 5F);
         this.shape116.setTextureSize(64, 32);
         setRotation(this.shape116, 0F, 0F, 0F);
    
         this.shape117 = new ModelRenderer(this, 124, 52);
         this.shape117.mirror = true;
         this.shape117.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape117.setRotationPoint(6F, -13F, 6F);
         this.shape117.setTextureSize(64, 32);
         setRotation(this.shape117, 0F, 0F, 0F);
    
         this.shape118 = new ModelRenderer(this, 124, 52);
         this.shape118.mirror = true;
         this.shape118.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape118.setRotationPoint(-7F, -13F, 6F);
         this.shape118.setTextureSize(64, 32);
         setRotation(this.shape118, 0F, 0F, 0F);
    
         this.shape119 = new ModelRenderer(this, 124, 52);
         this.shape119.mirror = true;
         this.shape119.addBox(0F, 0F, 0F, 1, 1, 1);
         this.shape119.setRotationPoint(-7F, -13F, -7F);
         this.shape119.setTextureSize(64, 32);
         setRotation(this.shape119, 0F, 0F, 0F);
     }
    
     public void renderAll()
     {
       this.shape1.render(0.0625F);
       this.shape2.render(0.0625F);
       this.shape3.render(0.0625F);
       this.shape200.render(0.0625F);
       this.shape201.render(0.0625F);
       this.shape5.render(0.0625F);
       this.shape6.render(0.0625F);
       this.shape7.render(0.0625F);
       this.shape8.render(0.0625F);
       this.shape9.render(0.0625F);
       this.shape10.render(0.0625F);
       this.shape11.render(0.0625F);
       this.shape12.render(0.0625F);
       this.shape13.render(0.0625F);
       this.shape14.render(0.0625F);
       this.shape15.render(0.0625F);
       this.shape16.render(0.0625F);
       this.shape17.render(0.0625F);
       this.shape18.render(0.0625F);
       this.shape19.render(0.0625F);
       this.shape20.render(0.0625F);
       this.shape21.render(0.0625F);
       this.shape22.render(0.0625F);
       this.shape23.render(0.0625F);
       this.shape24.render(0.0625F);
       this.shape25.render(0.0625F);
       this.shape26.render(0.0625F);
       this.shape27.render(0.0625F);
       this.shape28.render(0.0625F);
       this.shape29.render(0.0625F);
       this.shape30.render(0.0625F);
       this.shape100.render(0.0625F);
       this.shape101.render(0.0625F);
       this.shape102.render(0.0625F);
       this.shape103.render(0.0625F);
       this.shape104.render(0.0625F);
       this.shape105.render(0.0625F);
       this.shape106.render(0.0625F);
       this.shape107.render(0.0625F);
       this.shape108.render(0.0625F);
       this.shape109.render(0.0625F);
       this.shape110.render(0.0625F);
       this.shape111.render(0.0625F);
       this.shape112.render(0.0625F);
       this.shape113.render(0.0625F);
       this.shape114.render(0.0625F);
       this.shape115.render(0.0625F);
       this.shape116.render(0.0625F);
       this.shape117.render(0.0625F);
       this.shape118.render(0.0625F);
       this.shape119.render(0.0625F);
     }
    
     public static void setRotation(ModelRenderer model, float x, float y, float z)
     {
       model.rotateAngleX = x;
       model.rotateAngleY = y;
       model.rotateAngleZ = z;
     }
    }
    
    

    ClientProxy:

    package com.pottercraft.mod.proxy;
    
    import com.pottercraft.mod.entity.EntityCat;
    import com.pottercraft.mod.entity.EntityFrog;
    import com.pottercraft.mod.entity.EntityOwl;
    import com.pottercraft.mod.model.ModelCat;
    import com.pottercraft.mod.model.ModelFrog;
    import com.pottercraft.mod.model.ModelOwl;
    import com.pottercraft.mod.render.RenderCat;
    import com.pottercraft.mod.render.RenderFrog;
    import com.pottercraft.mod.render.RenderOwl;
    import com.pottercraft.mod.renderer.TESRInventoryRenderer;
    import com.pottercraft.mod.tileentity.TileEntityFireCupOn;
    import com.pottercraft.mod.tileentity.TileEntityFireCupOnSpecialRenderer;
    import com.pottercraft.mod.tileentity.TileEntityGoldenEgg;
    import com.pottercraft.mod.tileentity.TileEntityGoldenEggSpecialRenderer;
    import cpw.mods.fml.client.registry.ClientRegistry;
    import cpw.mods.fml.client.registry.RenderingRegistry;
    
    public class ClientProxy extends CommonProxy
    {
       public static int tesrRenderId;
    
       @Override
       public void registerRenders()
       {
           //Entity
           RenderingRegistry.registerEntityRenderingHandler(EntityOwl.class, new RenderOwl(new ModelOwl(), 0.5F));
           RenderingRegistry.registerEntityRenderingHandler(EntityCat.class, new RenderCat(new ModelCat(), 0.5F));
           RenderingRegistry.registerEntityRenderingHandler(EntityFrog.class, new RenderFrog(new ModelFrog(), 0.5F));
    
           //TileEntity
           ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGoldenEgg.class, new TileEntityGoldenEggSpecialRenderer());
           ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFireCupOn.class, new TileEntityFireCupOnSpecialRenderer());
    
           //ISBRH
           tesrRenderId = RenderingRegistry.getNextAvailableRenderId();
           RenderingRegistry.registerBlockHandler(new TESRInventoryRenderer());
       }
    }
    
    

    TileEntity:

    package com.pottercraft.mod.init;
    
    import com.pottercraft.mod.Reference;
    import com.pottercraft.mod.tileentity.TileEntityFireCupOn;
    import com.pottercraft.mod.tileentity.TileEntityGoldenEgg;
    
    import cpw.mods.fml.common.registry.GameRegistry;
    
    public class TileEntity
    {
       public static void init()
       {
           GameRegistry.registerTileEntity(TileEntityGoldenEgg.class, Reference.MOD_ID + ":golden_egg");
           GameRegistry.registerTileEntity(TileEntityFireCupOn.class, Reference.MOD_ID + ":fire_cup_on");
       }
    }
    
    

    Merci d'avance 🙂



  • Sans le crash report, on peut pas faire grand chose


  • Administrateurs

    Je crois qu'il manque un @SideOnly au dessus de la fonction getRenderType
    Mais sans le rapport de crash je ne peux pas en être sûr.



  • Voici le crash Report:

    –-- Minecraft Crash Report ----
    // I let you down. Sorry :(
    
    Time: 08/11/15 19:42
    Description: Exception in server tick loop
    
    java.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/Render
    at com.pottercraft.mod.blocks.BlockGoldenEgg.func_149645_b(BlockGoldenEgg.java:66)
    at net.minecraft.entity.Entity.func_70091_d(Entity.java:765)
    at net.minecraft.network.NetHandlerPlayServer.func_147347_a(NetHandlerPlayServer.java:341)
    at net.minecraft.network.play.client.C03PacketPlayer.func_148833_a(SourceFile:137)
    at net.minecraft.network.play.client.C03PacketPlayer$C04PacketPlayerPosition.func_148833_a(SourceFile:63)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.entity.Render
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 12 more
    Caused by: java.lang.NullPointerException
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    ... 14 more
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_65, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 371316864 bytes (354 MB) / 473432064 bytes (451 MB) up to 1895825408 bytes (1808 MB)
    JVM Flags: 0 total;
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1517 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1517-1.7.10-universal.jar)
    UCHIJAAAA Forge{10.13.4.1517} [Minecraft Forge] (forge-1.7.10-10.13.4.1517-1.7.10-universal.jar)
    UCHIJAAAA pottercraft{1.2.0} [Potter Craft] (pottercraft-1.2.0.jar)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 20; [EntityPlayerMP['_checconio84_'/89, l='world', x=47,54, y=71,42, z=141,25]]
    Is Modded: Definitely; Server brand changed to 'fml,forge'
    Type: Dedicated Server (map_server.txt)
    

    Je teste le SideOnly sur le getRender et je vous dit ce que ça donne.



  • Le problème venait bien du SideOnly manquant donc plus de problème merci 🙂