<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problème de render avec un dragon]]></title><description><![CDATA[<p dir="auto">Bonjour,<br />
J’ai voulu faire un render de dragon (je précise que je me sert du render de l’enderdragon), mais quand je lance une map Minecraft,<br />
2-3 sec après le spawn de l’entité, j’ai un black screen et Minecraft crash.</p>
<p dir="auto">J’utilise la build 953 de Forge.</p>
<p dir="auto">Le rapport d’erreur :</p>
<pre><code>2013-11-30 13:53:10 [Infos] [STDERR] net.minecraft.util.ReportedException: Rendering entity in world
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:339)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:281)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:524)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-30 13:53:10 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-30 13:53:10 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-30 13:53:10 [Infos] [STDERR] Caused by: java.lang.ClassCastException: fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon cannot be cast to net.minecraft.entity.boss.EntityDragon
2013-11-30 13:53:10 [Infos] [STDERR] at fr.MrBlockTNT.Dragons.render.RenderFireDragon.doRender(RenderFireDragon.java:305)
2013-11-30 13:53:10 [Infos] [STDERR] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312)
2013-11-30 13:53:10 [Infos] [STDERR] … 13 more
2013-11-30 13:53:10 [Infos] [STDOUT] –-- Minecraft Crash Report ----
2013-11-30 13:53:10 [Infos] [STDOUT] // Ouch. That hurt :(
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] Time: 30/11/13 13:53
2013-11-30 13:53:10 [Infos] [STDOUT] Description: Rendering entity in world
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] java.lang.ClassCastException: fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon cannot be cast to net.minecraft.entity.boss.EntityDragon
2013-11-30 13:53:10 [Infos] [STDOUT] at fr.MrBlockTNT.Dragons.render.RenderFireDragon.doRender(RenderFireDragon.java:305)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:281)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:524)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-11-30 13:53:10 [Infos] [STDOUT] –-------------------------------------------------------------------------------------
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] – Head --
2013-11-30 13:53:10 [Infos] [STDOUT] Stacktrace:
2013-11-30 13:53:10 [Infos] [STDOUT] at fr.MrBlockTNT.Dragons.render.RenderFireDragon.doRender(RenderFireDragon.java:305)
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] – Entity being rendered --
2013-11-30 13:53:10 [Infos] [STDOUT] Details:
2013-11-30 13:53:10 [Infos] [STDOUT] Entity Type: Fire Dragon (fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon)
2013-11-30 13:53:10 [Infos] [STDOUT] Entity ID: 367
2013-11-30 13:53:10 [Infos] [STDOUT] Entity Name: Fire Dragon
2013-11-30 13:53:10 [Infos] [STDOUT] Entity's Exact location: 249,50, 62,14, 12,64
2013-11-30 13:53:10 [Infos] [STDOUT] Entity's Block location: World: (249,62,12), Chunk: (at 9,3,12 in 15,0; contains blocks 240,0,0 to 255,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
2013-11-30 13:53:10 [Infos] [STDOUT] Entity's Momentum: -0,00, -0,12, -0,10
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] – Renderer details --
2013-11-30 13:53:10 [Infos] [STDOUT] Details:
2013-11-30 13:53:10 [Infos] [STDOUT] Assigned renderer: fr.MrBlockTNT.Dragons.render.RenderFireDragon@16fe573
2013-11-30 13:53:10 [Infos] [STDOUT] Location: -5,06,-2,67,9,10 - World: (-6,-3,9), Chunk: (at 10,-1,9 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-30 13:53:10 [Infos] [STDOUT] Rotation: -162.14708
2013-11-30 13:53:10 [Infos] [STDOUT] Delta: 0.10569942
2013-11-30 13:53:10 [Infos] [STDOUT] Stacktrace:
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:281)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:524)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160)
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] – Affected level --
2013-11-30 13:53:10 [Infos] [STDOUT] Details:
2013-11-30 13:53:10 [Infos] [STDOUT] Level name: MpServer
2013-11-30 13:53:10 [Infos] [STDOUT] All players: 1 total; [EntityClientPlayerMP['Player400'/299, l='MpServer', x=254,56, y=64,92, z=3,66]]
2013-11-30 13:53:10 [Infos] [STDOUT] Chunk stats: MultiplayerChunkCache: 441
2013-11-30 13:53:10 [Infos] [STDOUT] Level seed: 0
2013-11-30 13:53:10 [Infos] [STDOUT] Level generator: ID 00 - default, ver 1\. Features enabled: false
2013-11-30 13:53:10 [Infos] [STDOUT] Level generator options:
2013-11-30 13:53:10 [Infos] [STDOUT] Level spawn location: World: (172,64,256), Chunk: (at 12,4,0 in 10,16; contains blocks 160,0,256 to 175,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
2013-11-30 13:53:10 [Infos] [STDOUT] Level time: 12021 game time, 20497 day time
2013-11-30 13:53:10 [Infos] [STDOUT] Level dimension: 0
2013-11-30 13:53:10 [Infos] [STDOUT] Level storage version: 0x00000 - Unknown?
2013-11-30 13:53:10 [Infos] [STDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
2013-11-30 13:53:10 [Infos] [STDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
2013-11-30 13:53:10 [Infos] [STDOUT] Forced entities: 87 total; [EntitySpider['Spider'/410, l='MpServer', x=316,66, y=42,00, z=39,28], EntityCreeper['Creeper'/408, l='MpServer', x=307,45, y=43,00, z=17,39], EntityZombie['Zombie'/409, l='MpServer', x=316,25, y=42,00, z=37,31], EntityBat['Bat'/414, l='MpServer', x=328,38, y=31,40, z=-66,17], EntityCreeper['Creeper'/415, l='MpServer', x=330,22, y=64,00, z=-58,84], EntitySkeleton['Skeleton'/402, l='MpServer', x=295,50, y=65,00, z=46,50], EntityMinecartChest['entity.MinecartChest.name'/403, l='MpServer', x=289,50, y=46,50, z=51,50], EntityCreeper['Creeper'/400, l='MpServer', x=291,50, y=44,00, z=2,50], EntitySpider['Spider'/401, l='MpServer', x=295,56, y=64,00, z=30,34], EntitySpider['Spider'/406, l='MpServer', x=317,16, y=71,00, z=-4,81], EntityZombie['Zombie'/407, l='MpServer', x=314,56, y=70,00, z=-13,13], EntitySpider['Spider'/404, l='MpServer', x=302,83, y=65,00, z=50,74], EntityMinecartChest['entity.MinecartChest.name'/405, l='MpServer', x=314,50, y=39,50, z=-76,50], EntityZombie['Zombie'/395, l='MpServer', x=292,89, y=44,00, z=-24,47], EntityBat['Bat'/394, l='MpServer', x=277,50, y=47,10, z=58,13], EntityCreeper['Creeper'/393, l='MpServer', x=276,00, y=64,00, z=20,44], EntitySkeleton['Skeleton'/392, l='MpServer', x=280,38, y=64,00, z=16,75], EntityCreeper['Creeper'/399, l='MpServer', x=291,50, y=44,00, z=6,50], EntityCreeper['Creeper'/398, l='MpServer', x=290,50, y=38,00, z=-8,50], EntityZombie['Zombie'/397, l='MpServer', x=295,09, y=44,00, z=-12,47], EntityPig['Pig'/159, l='MpServer', x=178,22, y=66,00, z=65,88], EntityCreeper['Creeper'/396, l='MpServer', x=301,50, y=41,00, z=-23,50], EntityMinecartChest['entity.MinecartChest.name'/387, l='MpServer', x=277,69, y=40,34, z=1,50], EntityBat['Bat'/386, l='MpServer', x=277,33, y=44,87, z=-0,24], EntitySkeleton['Skeleton'/385, l='MpServer', x=279,56, y=40,00, z=-0,13], EntityZombie['Zombie'/384, l='MpServer', x=275,50, y=36,00, z=-2,50], EntityBat['Bat'/391, l='MpServer', x=276,73, y=43,93, z=1,67], EntityCreeper['Creeper'/390, l='MpServer', x=287,38, y=44,00, z=9,25], EntitySkeleton['Skeleton'/389, l='MpServer', x=278,72, y=40,00, z=0,78], EntityZombie['Zombie'/388, l='MpServer', x=278,88, y=44,00, z=7,63], EntityCreeper['Creeper'/417, l='MpServer', x=320,50, y=71,00, z=-3,50], EntityZombie['Zombie'/416, l='MpServer', x=328,53, y=45,00, z=-19,88], EntityMinecartChest['entity.MinecartChest.name'/418, l='MpServer', x=321,50, y=46,50, z=54,50], EntityCreeper['Creeper'/421, l='MpServer', x=326,50, y=66,00, z=56,50], EntityBat['Bat'/300, l='MpServer', x=246,48, y=15,47, z=8,09], EntityCreeper['Creeper'/420, l='MpServer', x=330,50, y=66,00, z=56,50], EntityClientPlayerMP['Player400'/299, l='MpServer', x=254,56, y=64,92, z=3,66], EntityCreeper['Creeper'/422, l='MpServer', x=324,50, y=66,00, z=57,50], EntitySheep['Sheep'/343, l='MpServer', x=179,84, y=63,00, z=-4,25], EntitySkeleton['Skeleton'/350, l='MpServer', x=200,59, y=31,00, z=-5,92], EntityZombie['Zombie'/349, l='MpServer', x=206,50, y=15,00, z=-16,50], EntityOcelot['Ocelot'/348, l='MpServer', x=177,13, y=65,00, z=55,41], EntitySpider['Spider'/239, l='MpServer', x=320,39, y=64,00, z=81,31], EntityMinecartChest['entity.MinecartChest.name'/238, l='MpServer', x=309,50, y=39,50, z=82,50], EntityZombie['Zombie'/372, l='MpServer', x=246,71, y=39,00, z=58,69], EntityCreeper['Creeper'/375, l='MpServer', x=263,50, y=38,00, z=7,50], EntityZombie['Zombie'/374, l='MpServer', x=273,69, y=44,00, z=0,31], EntityItem['item.item.rottenFlesh'/369, l='MpServer', x=251,13, y=63,13, z=43,91], EntityCreeper['Creeper'/368, l='MpServer', x=244,94, y=40,00, z=46,53], EntityEnderman['Enderman'/371, l='MpServer', x=247,56, y=39,00, z=58,03], EntityZombie['Zombie'/232, l='MpServer', x=294,50, y=65,00, z=82,50], EntityMinecartChest['entity.MinecartChest.name'/370, l='MpServer', x=254,50, y=39,50, z=53,50], EntitySpider['Spider'/231, l='MpServer', x=295,22, y=65,00, z=79,19], EntityEnderman['Enderman'/381, l='MpServer', x=264,25, y=69,00, z=52,25], EntityCreeper['Creeper'/230, l='MpServer', x=291,50, y=39,00, z=64,50], EntityZombie['Zombie'/380, l='MpServer', x=269,16, y=41,00, z=45,69], EntityCreeper['Creeper'/229, l='MpServer', x=289,50, y=39,00, z=64,00], EntityCreeper['Creeper'/383, l='MpServer', x=279,22, y=44,00, z=1,42], EntityMinecartChest['entity.MinecartChest.name'/228, l='MpServer', x=294,50, y=39,50, z=74,50], EntityBat['Bat'/382, l='MpServer', x=281,35, y=20,34, z=3,69], EntityBat['Bat'/377, l='MpServer', x=257,91, y=41,10, z=25,41], EntityCreeper['Creeper'/376, l='MpServer', x=261,50, y=16,00, z=19,50], EntityMinecartChest['entity.MinecartChest.name'/379, l='MpServer', x=267,50, y=40,50, z=41,50], EntityBat['Bat'/378, l='MpServer', x=260,72, y=42,10, z=25,31], EntitySpider['Spider'/254, l='MpServer', x=329,88, y=64,00, z=76,81], EntityZombie['Zombie'/356, l='MpServer', x=238,50, y=68,00, z=-20,03], EntityBat['Bat'/357, l='MpServer', x=232,50, y=16,33, z=-1,52], EntityCreeper['Creeper'/358, l='MpServer', x=226,91, y=63,00, z=49,16], EntityCreeper['Creeper'/359, l='MpServer', x=251,97, y=64,00, z=-59,44], EntitySkeleton['Skeleton'/250, l='MpServer', x=332,78, y=65,00, z=77,16], EntityCreeper['Creeper'/352, l='MpServer', x=204,50, y=47,00, z=41,00], EntitySkeleton['Skeleton'/251, l='MpServer', x=334,31, y=65,00, z=66,78], EntitySquid['Squid'/353, l='MpServer', x=215,24, y=61,44, z=-15,86], EntityBat['Bat'/248, l='MpServer', x=332,06, y=46,00, z=67,87], EntitySquid['Squid'/354, l='MpServer', x=226,72, y=59,38, z=-12,29], EntitySquid['Squid'/355, l='MpServer', x=230,18, y=60,78, z=-15,84], EntitySkeleton['Skeleton'/246, l='MpServer', x=328,50, y=46,00, z=68,50], EntityBat['Bat'/364, l='MpServer', x=250,88, y=41,10, z=27,75], EntitySkeleton['Skeleton'/247, l='MpServer', x=330,14, y=46,00, z=65,70], EntityBat['Bat'/365, l='MpServer', x=253,88, y=41,10, z=25,47], EntityZombie['Zombie'/366, l='MpServer', x=252,94, y=63,00, z=30,50], EntitySkeleton['Skeleton'/245, l='MpServer', x=329,50, y=46,00, z=69,50], EntityFireDragon['Fire Dragon'/367, l='MpServer', x=249,50, y=62,14, z=12,64], EntitySpider['Spider'/360, l='MpServer', x=244,13, y=72,00, z=-17,72], EntityBat['Bat'/361, l='MpServer', x=248,80, y=18,30, z=-4,84], EntityZombie['Zombie'/362, l='MpServer', x=249,50, y=16,00, z=22,50], EntityZombie['Zombie'/363, l='MpServer', x=253,50, y=16,00, z=21,50]]
2013-11-30 13:53:10 [Infos] [STDOUT] Retry entities: 0 total; []
2013-11-30 13:53:10 [Infos] [STDOUT] Server brand: fml,forge
2013-11-30 13:53:10 [Infos] [STDOUT] Server type: Integrated singleplayer server
2013-11-30 13:53:10 [Infos] [STDOUT] Stacktrace:
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:856)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-11-30 13:53:10 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-11-30 13:53:10 [Infos] [STDOUT]
2013-11-30 13:53:10 [Infos] [STDOUT] – System Details --
2013-11-30 13:53:10 [Infos] [STDOUT] Details:
2013-11-30 13:53:10 [Infos] [STDOUT] Minecraft Version: 1.6.4
2013-11-30 13:53:10 [Infos] [STDOUT] Operating System: Windows Vista (x86) version 6.0
2013-11-30 13:53:10 [Infos] [STDOUT] Java Version: 1.7.0_45, Oracle Corporation
2013-11-30 13:53:10 [Infos] [STDOUT] Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2013-11-30 13:53:10 [Infos] [STDOUT] Memory: 829447736 bytes (791 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
2013-11-30 13:53:10 [Infos] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-11-30 13:53:10 [Infos] [STDOUT] AABB Pool Size: 7955 (445480 bytes; 0 MB) allocated, 1304 (73024 bytes; 0 MB) used
2013-11-30 13:53:10 [Infos] [STDOUT] Suspicious classes: FML and Forge are installed
2013-11-30 13:53:10 [Infos] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63
2013-11-30 13:53:10 [Infos] [STDOUT] FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active
2013-11-30 13:53:10 [Infos] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded-&gt;Constructed-&gt;Pre-initialized-&gt;Initialized-&gt;Post-initialized-&gt;Available-&gt;Available-&gt;Available-&gt;Available
2013-11-30 13:53:10 [Infos] [STDOUT] FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded-&gt;Constructed-&gt;Pre-initialized-&gt;Initialized-&gt;Post-initialized-&gt;Available-&gt;Available-&gt;Available-&gt;Available
2013-11-30 13:53:10 [Infos] [STDOUT] Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded-&gt;Constructed-&gt;Pre-initialized-&gt;Initialized-&gt;Post-initialized-&gt;Available-&gt;Available-&gt;Available-&gt;Available
2013-11-30 13:53:10 [Infos] [STDOUT] Dragons{1.0.0} [Dragons Mod] (bin) Unloaded-&gt;Constructed-&gt;Pre-initialized-&gt;Initialized-&gt;Post-initialized-&gt;Available-&gt;Available-&gt;Available-&gt;Available
2013-11-30 13:53:10 [Infos] [STDOUT] Launched Version: 1.6
2013-11-30 13:53:10 [Infos] [STDOUT] LWJGL: 2.9.0
2013-11-30 13:53:10 [Infos] [STDOUT] OpenGL: GeForce 9300 GE/PCIe/SSE2/3DNOW! GL version 3.3.0, NVIDIA Corporation
2013-11-30 13:53:10 [Infos] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-11-30 13:53:10 [Infos] [STDOUT] Type: Client (map_client.txt)
2013-11-30 13:53:10 [Infos] [STDOUT] Resource Pack: Default
2013-11-30 13:53:10 [Infos] [STDOUT] Current Language: English (US)
2013-11-30 13:53:10 [Infos] [STDOUT] Profiler Position: N/A (disabled)
2013-11-30 13:53:10 [Infos] [STDOUT] Vec3 Pool Size: 2174 (121744 bytes; 0 MB) allocated, 456 (25536 bytes; 0 MB) used
</code></pre>
<p dir="auto">ClientProxy :</p>
<pre><code class="java">package fr.MrBlockTNT.Dragons.proxy;

import cpw.mods.fml.client.registry.RenderingRegistry;
import fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon;
import fr.MrBlockTNT.Dragons.render.RenderFireDragon;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelDragon;
import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy
{
@Override
public void registerRender()
{
RenderingRegistry.registerEntityRenderingHandler(EntityFireDragon.class, new RenderFireDragon());
}
}
</code></pre>
<p dir="auto">RenderFireDragon :</p>
<pre><code class="java">package fr.MrBlockTNT.Dragons.render;

import java.util.Random;

import org.lwjgl.opengl.GL11;

import fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelDragon;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.client.renderer.entity.RenderDragon;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.BossStatus;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;

public class RenderFireDragon extends RenderLiving
{
private static final ResourceLocation enderDragonExplodingTextures = new ResourceLocation("dragons:entity/firedragon/dragon_exploding.png");
   private static final ResourceLocation enderDragonCrystalBeamTextures = new ResourceLocation("dragons:entity/firecrystal/firecrystal_beam.png");
   private static final ResourceLocation enderDragonEyesTextures = new ResourceLocation("dragons:entity/firedragon/dragon_eyes.png");
   private static final ResourceLocation enderDragonTextures = new ResourceLocation("dragons:entity/firedragon/dragon.png");

   protected ModelDragon modelDragon;

   public RenderFireDragon()
   {
       super(new ModelDragon(0.0F), 0.5F);
       this.modelDragon = (ModelDragon)this.mainModel;
       this.setRenderPassModel(this.mainModel);
   }

   protected void rotateDragonBody(EntityDragon par1EntityDragon, float par2, float par3, float par4)
   {
       float f3 = (float)par1EntityDragon.getMovementOffsets(7, par4)[0];
       float f4 = (float)(par1EntityDragon.getMovementOffsets(5, par4)[1] - par1EntityDragon.getMovementOffsets(10, par4)[1]);
       GL11.glRotatef(-f3, 0.0F, 1.0F, 0.0F);
       GL11.glRotatef(f4 * 10.0F, 1.0F, 0.0F, 0.0F);
       GL11.glTranslatef(0.0F, 0.0F, 1.0F);

       if (par1EntityDragon.deathTime &gt; 0)
       {
           float f5 = ((float)par1EntityDragon.deathTime + par4 - 1.0F) / 20.0F * 1.6F;
           f5 = MathHelper.sqrt_float(f5);

           if (f5 &gt; 1.0F)
           {
               f5 = 1.0F;
           }

           GL11.glRotatef(f5 * this.getDeathMaxRotation(par1EntityDragon), 0.0F, 0.0F, 1.0F);
       }
   }

   protected void renderDragonModel(EntityDragon par1EntityDragon, float par2, float par3, float par4, float par5, float par6, float par7)
   {
       if (par1EntityDragon.deathTicks &gt; 0)
       {
           float f6 = (float)par1EntityDragon.deathTicks / 200.0F;
           GL11.glDepthFunc(GL11.GL_LEQUAL);
           GL11.glEnable(GL11.GL_ALPHA_TEST);
           GL11.glAlphaFunc(GL11.GL_GREATER, f6);
           this.bindTexture(enderDragonExplodingTextures);
           this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);
           GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);
           GL11.glDepthFunc(GL11.GL_EQUAL);
       }

       this.bindEntityTexture(par1EntityDragon);
       this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);

       if (par1EntityDragon.hurtTime &gt; 0)
       {
           GL11.glDepthFunc(GL11.GL_EQUAL);
           GL11.glDisable(GL11.GL_TEXTURE_2D);
           GL11.glEnable(GL11.GL_BLEND);
           GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
           GL11.glColor4f(1.0F, 0.0F, 0.0F, 0.5F);
           this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);
           GL11.glEnable(GL11.GL_TEXTURE_2D);
           GL11.glDisable(GL11.GL_BLEND);
           GL11.glDepthFunc(GL11.GL_LEQUAL);
       }
   }

   public void renderDragon(EntityDragon par1EntityDragon, double par2, double par4, double par6, float par8, float par9)
   {
       BossStatus.setBossStatus(par1EntityDragon, false);
       super.doRenderLiving(par1EntityDragon, par2, par4, par6, par8, par9);

       if (par1EntityDragon.healingEnderCrystal != null)
       {
           float f2 = (float)par1EntityDragon.healingEnderCrystal.innerRotation + par9;
           float f3 = MathHelper.sin(f2 * 0.2F) / 2.0F + 0.5F;
           f3 = (f3 * f3 + f3) * 0.2F;
           float f4 = (float)(par1EntityDragon.healingEnderCrystal.posX - par1EntityDragon.posX - (par1EntityDragon.prevPosX - par1EntityDragon.posX) * (double)(1.0F - par9));
           float f5 = (float)((double)f3 + par1EntityDragon.healingEnderCrystal.posY - 1.0D - par1EntityDragon.posY - (par1EntityDragon.prevPosY - par1EntityDragon.posY) * (double)(1.0F - par9));
           float f6 = (float)(par1EntityDragon.healingEnderCrystal.posZ - par1EntityDragon.posZ - (par1EntityDragon.prevPosZ - par1EntityDragon.posZ) * (double)(1.0F - par9));
           float f7 = MathHelper.sqrt_float(f4 * f4 + f6 * f6);
           float f8 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6);
           GL11.glPushMatrix();
           GL11.glTranslatef((float)par2, (float)par4 + 2.0F, (float)par6);
           GL11.glRotatef((float)(-Math.atan2((double)f6, (double)f4)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F);
           GL11.glRotatef((float)(-Math.atan2((double)f7, (double)f5)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F);
           Tessellator tessellator = Tessellator.instance;
           RenderHelper.disableStandardItemLighting();
           GL11.glDisable(GL11.GL_CULL_FACE);
           this.bindTexture(enderDragonCrystalBeamTextures);
           GL11.glShadeModel(GL11.GL_SMOOTH);
           float f9 = 0.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
           float f10 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6) / 32.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
           tessellator.startDrawing(5);
           byte b0 = 8;

           for (int i = 0; i &lt;= b0; ++i)
           {
               float f11 = MathHelper.sin((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F;
               float f12 = MathHelper.cos((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F;
               float f13 = (float)(i % b0) * 1.0F / (float)b0;
               tessellator.setColorOpaque_I(0);
               tessellator.addVertexWithUV((double)(f11 * 0.2F), (double)(f12 * 0.2F), 0.0D, (double)f13, (double)f10);
               tessellator.setColorOpaque_I(16777215);
               tessellator.addVertexWithUV((double)f11, (double)f12, (double)f8, (double)f13, (double)f9);
           }

           tessellator.draw();
           GL11.glEnable(GL11.GL_CULL_FACE);
           GL11.glShadeModel(GL11.GL_FLAT);
           RenderHelper.enableStandardItemLighting();
           GL11.glPopMatrix();
       }
   }

   protected ResourceLocation getEnderDragonTextures(EntityDragon par1EntityDragon)
   {
       return enderDragonTextures;
   }

   protected void renderDragonDying(EntityDragon par1EntityDragon, float par2)
   {
       super.renderEquippedItems(par1EntityDragon, par2);
       Tessellator tessellator = Tessellator.instance;

       if (par1EntityDragon.deathTicks &gt; 0)
       {
           RenderHelper.disableStandardItemLighting();
           float f1 = ((float)par1EntityDragon.deathTicks + par2) / 200.0F;
           float f2 = 0.0F;

           if (f1 &gt; 0.8F)
           {
               f2 = (f1 - 0.8F) / 0.2F;
           }

           Random random = new Random(432L);
           GL11.glDisable(GL11.GL_TEXTURE_2D);
           GL11.glShadeModel(GL11.GL_SMOOTH);
           GL11.glEnable(GL11.GL_BLEND);
           GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
           GL11.glDisable(GL11.GL_ALPHA_TEST);
           GL11.glEnable(GL11.GL_CULL_FACE);
           GL11.glDepthMask(false);
           GL11.glPushMatrix();
           GL11.glTranslatef(0.0F, -1.0F, -2.0F);

           for (int i = 0; (float)i &lt; (f1 + f1 * f1) / 2.0F * 60.0F; ++i)
           {
               GL11.glRotatef(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 0.0F, 1.0F);
               GL11.glRotatef(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360.0F + f1 * 90.0F, 0.0F, 0.0F, 1.0F);
               tessellator.startDrawing(6);
               float f3 = random.nextFloat() * 20.0F + 5.0F + f2 * 10.0F;
               float f4 = random.nextFloat() * 2.0F + 1.0F + f2 * 2.0F;
               tessellator.setColorRGBA_I(16777215, (int)(255.0F * (1.0F - f2)));
               tessellator.addVertex(0.0D, 0.0D, 0.0D);
               tessellator.setColorRGBA_I(16711935, 0);
               tessellator.addVertex(-0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
               tessellator.addVertex(0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
               tessellator.addVertex(0.0D, (double)f3, (double)(1.0F * f4));
               tessellator.addVertex(-0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
               tessellator.draw();
           }

           GL11.glPopMatrix();
           GL11.glDepthMask(true);
           GL11.glDisable(GL11.GL_CULL_FACE);
           GL11.glDisable(GL11.GL_BLEND);
           GL11.glShadeModel(GL11.GL_FLAT);
           GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
           GL11.glEnable(GL11.GL_TEXTURE_2D);
           GL11.glEnable(GL11.GL_ALPHA_TEST);
           RenderHelper.enableStandardItemLighting();
       }
   }

   protected int renderGlow(EntityDragon par1EntityDragon, int par2, float par3)
   {
       if (par2 == 1)
       {
           GL11.glDepthFunc(GL11.GL_LEQUAL);
       }

       if (par2 != 0)
       {
           return -1;
       }
       else
       {
           this.bindTexture(enderDragonEyesTextures);
           float f1 = 1.0F;
           GL11.glEnable(GL11.GL_BLEND);
           GL11.glDisable(GL11.GL_ALPHA_TEST);
           GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
           GL11.glDisable(GL11.GL_LIGHTING);
           GL11.glDepthFunc(GL11.GL_EQUAL);
           char c0 = 61680;
           int j = c0 % 65536;
           int k = c0 / 65536;
           OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
           GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
           GL11.glEnable(GL11.GL_LIGHTING);
           GL11.glColor4f(1.0F, 1.0F, 1.0F, f1);
           return 1;
       }
   }

   public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
   {
       this.renderDragon((EntityDragon)par1EntityLiving, par2, par4, par6, par8, par9);
   }

   protected int shouldRenderPass(EntityLivingBase par1EntityLivingBase, int par2, float par3)
   {
       return this.renderGlow((EntityDragon)par1EntityLivingBase, par2, par3);
   }

   protected void renderEquippedItems(EntityLivingBase par1EntityLivingBase, float par2)
   {
       this.renderDragonDying((EntityDragon)par1EntityLivingBase, par2);
   }

   protected void rotateCorpse(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
   {
       this.rotateDragonBody((EntityDragon)par1EntityLivingBase, par2, par3, par4);
   }

   protected void renderModel(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4, float par5, float par6, float par7)
   {
       this.renderDragonModel((EntityDragon)par1EntityLivingBase, par2, par3, par4, par5, par6, par7);
   }

   public void renderPlayer(EntityLivingBase par1EntityLivingBase, double par2, double par4, double par6, float par8, float par9)
   {
       this.renderDragon((EntityDragon)par1EntityLivingBase, par2, par4, par6, par8, par9);
   }

   protected ResourceLocation getEntityTexture(Entity par1Entity)
   {
       return this.getEnderDragonTextures((EntityDragon)par1Entity);
   }

   public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
   {
       this.renderDragon((EntityDragon)par1Entity, par2, par4, par6, par8, par9);
   }
}
</code></pre>
<p dir="auto">Merci de votre aide <img src="https://www.minecraftforgefrance.fr/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=3a52b347b9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://www.minecraftforgefrance.fr/topic/299/problème-de-render-avec-un-dragon</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:20:51 GMT</lastBuildDate><atom:link href="https://www.minecraftforgefrance.fr/topic/299.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Nov 2013 13:01:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problème de render avec un dragon on Sat, 30 Nov 2013 14:12:52 GMT]]></title><description><![CDATA[<p dir="auto">Ah d’accord. Merci <img src="https://www.minecraftforgefrance.fr/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=3a52b347b9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Je teste immédiatement.</p>
<p dir="auto">EDIT: ça marche !</p>
<p dir="auto">Par contre, il y a autre chose :<br />
Je voulais que le dragon ne casse pas de blocs, j’ai donc supprimé la condition pour. Le problème c’est qu’il peut encore traverser les blocs.</p>
<p dir="auto">Deuxième point :<br />
Mon dragon disparait(visuellement) au bout de 1 chunk de distance avec moi au lieu de disparaitre dans le brouillard.<br />
Pouvez-vous m’aider ?</p>
<p dir="auto">RenderFireDragon :</p>
<pre><code class="java">
package fr.MrBlockTNT.Dragons.render;

import java.util.Random;

import org.lwjgl.opengl.GL11;

import fr.MrBlockTNT.Dragons.entity.firedragon.EntityFireDragon;
import fr.MrBlockTNT.Dragons.models.ModelFireDragon;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelDragon;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.client.renderer.entity.RenderDragon;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.BossStatus;
import net.minecraft.entity.boss.EntityDragon;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;

public class RenderFireDragon extends RenderLiving
{
private static final ResourceLocation enderDragonExplodingTextures = new ResourceLocation("dragons:entity/firedragon/dragon_exploding.png");
private static final ResourceLocation enderDragonCrystalBeamTextures = new ResourceLocation("dragons:entity/firecrystal/firecrystal_beam.png");
private static final ResourceLocation enderDragonEyesTextures = new ResourceLocation("dragons:entity/firedragon/dragon_eyes.png");
private static final ResourceLocation enderDragonTextures = new ResourceLocation("dragons:entity/firedragon/dragon.png");

/** An instance of the dragon model in RenderDragon */
protected ModelFireDragon modelDragon;

public RenderFireDragon()
{
super(new ModelFireDragon(0.0F), 0.5F);
this.modelDragon = (ModelFireDragon)this.mainModel;
this.setRenderPassModel(this.mainModel);
}

/**
* Used to rotate the dragon as a whole in RenderDragon. It's called in the rotateCorpse method.
*/
protected void rotateDragonBody(EntityFireDragon par1EntityDragon, float par2, float par3, float par4)
{
float f3 = (float)par1EntityDragon.getMovementOffsets(7, par4)[0];
float f4 = (float)(par1EntityDragon.getMovementOffsets(5, par4)[1] - par1EntityDragon.getMovementOffsets(10, par4)[1]);
GL11.glRotatef(-f3, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(f4 * 10.0F, 1.0F, 0.0F, 0.0F);
GL11.glTranslatef(0.0F, 0.0F, 1.0F);

if (par1EntityDragon.deathTime &gt; 0)
{
float f5 = ((float)par1EntityDragon.deathTime + par4 - 1.0F) / 20.0F * 1.6F;
f5 = MathHelper.sqrt_float(f5);

if (f5 &gt; 1.0F)
{
f5 = 1.0F;
}

GL11.glRotatef(f5 * this.getDeathMaxRotation(par1EntityDragon), 0.0F, 0.0F, 1.0F);
}
}

/**
* Renders the dragon model. Called by renderModel.
*/
protected void renderDragonModel(EntityFireDragon par1EntityDragon, float par2, float par3, float par4, float par5, float par6, float par7)
{
if (par1EntityDragon.deathTicks &gt; 0)
{
float f6 = (float)par1EntityDragon.deathTicks / 200.0F;
GL11.glDepthFunc(GL11.GL_LEQUAL);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glAlphaFunc(GL11.GL_GREATER, f6);
this.bindTexture(enderDragonExplodingTextures);
this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);
GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);
GL11.glDepthFunc(GL11.GL_EQUAL);
}

this.bindEntityTexture(par1EntityDragon);
this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);

if (par1EntityDragon.hurtTime &gt; 0)
{
GL11.glDepthFunc(GL11.GL_EQUAL);
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glColor4f(1.0F, 0.0F, 0.0F, 0.5F);
this.mainModel.render(par1EntityDragon, par2, par3, par4, par5, par6, par7);
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthFunc(GL11.GL_LEQUAL);
}
}

/**
* Renders the dragon, along with its dying animation
*/
public void renderDragon(EntityFireDragon par1EntityDragon, double par2, double par4, double par6, float par8, float par9)
{
BossStatus.setBossStatus(par1EntityDragon, false);
super.doRenderLiving(par1EntityDragon, par2, par4, par6, par8, par9);

if (par1EntityDragon.healingEnderCrystal != null)
{
float f2 = (float)par1EntityDragon.healingEnderCrystal.innerRotation + par9;
float f3 = MathHelper.sin(f2 * 0.2F) / 2.0F + 0.5F;
f3 = (f3 * f3 + f3) * 0.2F;
float f4 = (float)(par1EntityDragon.healingEnderCrystal.posX - par1EntityDragon.posX - (par1EntityDragon.prevPosX - par1EntityDragon.posX) * (double)(1.0F - par9));
float f5 = (float)((double)f3 + par1EntityDragon.healingEnderCrystal.posY - 1.0D - par1EntityDragon.posY - (par1EntityDragon.prevPosY - par1EntityDragon.posY) * (double)(1.0F - par9));
float f6 = (float)(par1EntityDragon.healingEnderCrystal.posZ - par1EntityDragon.posZ - (par1EntityDragon.prevPosZ - par1EntityDragon.posZ) * (double)(1.0F - par9));
float f7 = MathHelper.sqrt_float(f4 * f4 + f6 * f6);
float f8 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6);
GL11.glPushMatrix();
GL11.glTranslatef((float)par2, (float)par4 + 2.0F, (float)par6);
GL11.glRotatef((float)(-Math.atan2((double)f6, (double)f4)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef((float)(-Math.atan2((double)f7, (double)f5)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F);
Tessellator tessellator = Tessellator.instance;
RenderHelper.disableStandardItemLighting();
GL11.glDisable(GL11.GL_CULL_FACE);
this.bindTexture(enderDragonCrystalBeamTextures);
GL11.glShadeModel(GL11.GL_SMOOTH);
float f9 = 0.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
float f10 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6) / 32.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
tessellator.startDrawing(5);
byte b0 = 8;

for (int i = 0; i &lt;= b0; ++i)
{
float f11 = MathHelper.sin((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F;
float f12 = MathHelper.cos((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F;
float f13 = (float)(i % b0) * 1.0F / (float)b0;
tessellator.setColorOpaque_I(0);
tessellator.addVertexWithUV((double)(f11 * 0.2F), (double)(f12 * 0.2F), 0.0D, (double)f13, (double)f10);
tessellator.setColorOpaque_I(16777215);
tessellator.addVertexWithUV((double)f11, (double)f12, (double)f8, (double)f13, (double)f9);
}

tessellator.draw();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glShadeModel(GL11.GL_FLAT);
RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
}
}

protected ResourceLocation getEnderDragonTextures(EntityFireDragon par1EntityDragon)
{
return enderDragonTextures;
}

/**
* Renders the animation for when an enderdragon dies
*/
protected void renderDragonDying(EntityFireDragon par1EntityDragon, float par2)
{
super.renderEquippedItems(par1EntityDragon, par2);
Tessellator tessellator = Tessellator.instance;

if (par1EntityDragon.deathTicks &gt; 0)
{
RenderHelper.disableStandardItemLighting();
float f1 = ((float)par1EntityDragon.deathTicks + par2) / 200.0F;
float f2 = 0.0F;

if (f1 &gt; 0.8F)
{
f2 = (f1 - 0.8F) / 0.2F;
}

Random random = new Random(432L);
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glShadeModel(GL11.GL_SMOOTH);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
GL11.glDisable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDepthMask(false);
GL11.glPushMatrix();
GL11.glTranslatef(0.0F, -1.0F, -2.0F);

for (int i = 0; (float)i &lt; (f1 + f1 * f1) / 2.0F * 60.0F; ++i)
{
GL11.glRotatef(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(random.nextFloat() * 360.0F + f1 * 90.0F, 0.0F, 0.0F, 1.0F);
tessellator.startDrawing(6);
float f3 = random.nextFloat() * 20.0F + 5.0F + f2 * 10.0F;
float f4 = random.nextFloat() * 2.0F + 1.0F + f2 * 2.0F;
tessellator.setColorRGBA_I(16777215, (int)(255.0F * (1.0F - f2)));
tessellator.addVertex(0.0D, 0.0D, 0.0D);
tessellator.setColorRGBA_I(16711935, 0);
tessellator.addVertex(-0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
tessellator.addVertex(0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
tessellator.addVertex(0.0D, (double)f3, (double)(1.0F * f4));
tessellator.addVertex(-0.866D * (double)f4, (double)f3, (double)(-0.5F * f4));
tessellator.draw();
}

GL11.glPopMatrix();
GL11.glDepthMask(true);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDisable(GL11.GL_BLEND);
GL11.glShadeModel(GL11.GL_FLAT);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glEnable(GL11.GL_ALPHA_TEST);
RenderHelper.enableStandardItemLighting();
}
}

/**
* Renders the overlay for glowing eyes and the mouth. Called by shouldRenderPass.
*/
protected int renderGlow(EntityFireDragon par1EntityDragon, int par2, float par3)
{
if (par2 == 1)
{
GL11.glDepthFunc(GL11.GL_LEQUAL);
}

if (par2 != 0)
{
return -1;
}
else
{
this.bindTexture(enderDragonEyesTextures);
float f1 = 1.0F;
GL11.glEnable(GL11.GL_BLEND);
GL11.glDisable(GL11.GL_ALPHA_TEST);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDepthFunc(GL11.GL_EQUAL);
char c0 = 61680;
int j = c0 % 65536;
int k = c0 / 65536;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glColor4f(1.0F, 1.0F, 1.0F, f1);
return 1;
}
}

public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
{
this.renderDragon((EntityFireDragon)par1EntityLiving, par2, par4, par6, par8, par9);
}

/**
* Queries whether should render the specified pass or not.
*/
protected int shouldRenderPass(EntityLivingBase par1EntityLivingBase, int par2, float par3)
{
return this.renderGlow((EntityFireDragon)par1EntityLivingBase, par2, par3);
}

protected void renderEquippedItems(EntityLivingBase par1EntityLivingBase, float par2)
{
this.renderDragonDying((EntityFireDragon)par1EntityLivingBase, par2);
}

protected void rotateCorpse(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
{
this.rotateDragonBody((EntityFireDragon)par1EntityLivingBase, par2, par3, par4);
}

/**
* Renders the model in RenderLiving
*/
protected void renderModel(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4, float par5, float par6, float par7)
{
this.renderDragonModel((EntityFireDragon)par1EntityLivingBase, par2, par3, par4, par5, par6, par7);
}

public void renderPlayer(EntityLivingBase par1EntityLivingBase, double par2, double par4, double par6, float par8, float par9)
{
this.renderDragon((EntityFireDragon)par1EntityLivingBase, par2, par4, par6, par8, par9);
}

/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(Entity par1Entity)
{
return this.getEnderDragonTextures((EntityFireDragon)par1Entity);
}

/**
* Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
* handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
* (Render &lt;t extends="" entity)="" and="" this="" method="" has="" signature="" public="" void="" dorender(t="" entity,="" double="" d,="" d1,&lt;br=""&gt;* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
this.renderDragon((EntityFireDragon)par1Entity, par2, par4, par6, par8, par9);
}
}

```&lt;/t&gt;</code></pre>
]]></description><link>https://www.minecraftforgefrance.fr/post/8039</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/8039</guid><dc:creator><![CDATA[bin4r1s]]></dc:creator><pubDate>Sat, 30 Nov 2013 14:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problème de render avec un dragon on Sat, 30 Nov 2013 13:30:00 GMT]]></title><description><![CDATA[<p dir="auto">Ou alors tu fais un extends EntityDragon dans la classe de ton entité</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/8030</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/8030</guid><dc:creator><![CDATA[robin4002]]></dc:creator><pubDate>Sat, 30 Nov 2013 13:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problème de render avec un dragon on Sat, 30 Nov 2013 13:13:54 GMT]]></title><description><![CDATA[<p dir="auto">Dans ton render, remplace tout les EntityDragon par EntityFireDragon.<br />
En effet, tu dis à mc, dans le client proxy, d’appliquer le rendu à EntityFireDragon, mais après dans le render tu lui parle de EntityDragon, donc il aime pas.</p>
]]></description><link>https://www.minecraftforgefrance.fr/post/8028</link><guid isPermaLink="true">https://www.minecraftforgefrance.fr/post/8028</guid><dc:creator><![CDATA[kevin_68]]></dc:creator><pubDate>Sat, 30 Nov 2013 13:13:54 GMT</pubDate></item></channel></rss>