Résolu Masquer la barre d'expérience
-
Bonsoir !
Je suis désoler de vous demander autant de choses mais mes connaissances buttent en fasse de ses différents problèmes !
Je suis tomber sur le topic de BlackDrag00n qui est “Afficher un texte ou une image dans le HUD […]”
Et une fonction intéressante m’attire
ElementType.EXPERIENCE
Et ma question est la suivante, on peux masquer la barre d’expérience ou non ?
En plus des chiffres des niveaux que l’on atteint une fois la barre pleine ?Car j’ai fait:
:::
Nope la fonction je l’enlève aux yeux de tous !
:::mais j’ai un magnifique crash:
:::
2014-07-06 23:34:23 [INFOS] [STDOUT] Starting up SoundSystem… 2014-07-06 23:34:23 [INFOS] [STDOUT] Initializing LWJGL OpenAL 2014-07-06 23:34:23 [INFOS] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2014-07-06 23:34:23 [INFOS] [STDOUT] OpenAL initialized. 2014-07-06 23:34:24 [INFOS] [STDOUT] 2014-07-06 23:48:04 [INFOS] [Minecraft-Server] Starting integrated minecraft server version 1.6.4 2014-07-06 23:48:04 [INFOS] [Minecraft-Server] Generating keypair 2014-07-06 23:48:04 [INFOS] [ForgeModLoader] Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@1513074) 2014-07-06 23:48:04 [INFOS] [ForgeModLoader] Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@1513074) 2014-07-06 23:48:04 [INFOS] [ForgeModLoader] Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@1513074) 2014-07-06 23:48:04 [INFOS] [Minecraft-Server] Preparing start region for level 0 2014-07-06 23:48:05 [AVERTISSEMENT] [Minecraft-Server] Skipping TileEntity with id Ore_Furnace 2014-07-06 23:48:05 [INFOS] [Minecraft-Server] Preparing spawn area: 71% 2014-07-06 23:48:06 [INFOS] [STDOUT] loading single player 2014-07-06 23:48:06 [INFOS] [Minecraft-Server] ShLennon921[/127.0.0.1:0] logged in with entity id 16 at (-763.933365628917, 4.0, 1594.5313801923205) 2014-07-06 23:48:06 [INFOS] [Minecraft-Server] ShLennon921 joined the game 2014-07-06 23:48:06 [INFOS] [STDOUT] Setting up custom skins 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Stopping server 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Saving players 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] ShLennon921 left the game 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Saving worlds 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Saving chunks for level 'Nouveau monde'/Overworld 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Saving chunks for level 'Nouveau monde'/Nether 2014-07-06 23:48:08 [INFOS] [Minecraft-Server] Saving chunks for level 'Nouveau monde'/The End 2014-07-06 23:48:08 [INFOS] [ForgeModLoader] Unloading dimension 0 2014-07-06 23:48:08 [INFOS] [ForgeModLoader] Unloading dimension -1 2014-07-06 23:48:08 [INFOS] [ForgeModLoader] Unloading dimension 1 2014-07-06 23:48:08 [INFOS] [STDERR] java.lang.IllegalArgumentException: Attempted to cancel a uncancelable event 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.event.Event.setCanceled(Event.java:104) 2014-07-06 23:48:08 [INFOS] [STDERR] at viruz.zeamateis.event.ClientEvent.renderGameOverlay(ClientEvent.java:38) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.event.ASMEventHandler_8_ClientEvent_renderGameOverlay_Post.invoke(.dynamic) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.event.EventBus.post(EventBus.java:108) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:874) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.client.GuiIngameForge.renderHelmet(GuiIngameForge.java:254) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:117) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1014) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93) 2014-07-06 23:48:08 [INFOS] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-07-06 23:48:08 [INFOS] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-07-06 23:48:08 [INFOS] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-07-06 23:48:08 [INFOS] [STDOUT] –-- Minecraft Crash Report ---- 2014-07-06 23:48:08 [INFOS] [STDOUT] // Don't do that. 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] Time: 06/07/14 23:48 2014-07-06 23:48:08 [INFOS] [STDOUT] Description: Unexpected error 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] java.lang.IllegalArgumentException: Attempted to cancel a uncancelable event 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.Event.setCanceled(Event.java:104) 2014-07-06 23:48:08 [INFOS] [STDOUT] at viruz.zeamateis.event.ClientEvent.renderGameOverlay(ClientEvent.java:38) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.ASMEventHandler_8_ClientEvent_renderGameOverlay_Post.invoke(.dynamic) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:874) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.renderHelmet(GuiIngameForge.java:254) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:117) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1014) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows: 2014-07-06 23:48:08 [INFOS] [STDOUT] –------------------------------------------------------------------------------------- 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] – Head -- 2014-07-06 23:48:08 [INFOS] [STDOUT] Stacktrace: 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.Event.setCanceled(Event.java:104) 2014-07-06 23:48:08 [INFOS] [STDOUT] at viruz.zeamateis.event.ClientEvent.renderGameOverlay(ClientEvent.java:38) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.ASMEventHandler_8_ClientEvent_renderGameOverlay_Post.invoke(.dynamic) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:874) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.renderHelmet(GuiIngameForge.java:254) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:117) 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] – Affected level -- 2014-07-06 23:48:08 [INFOS] [STDOUT] Details: 2014-07-06 23:48:08 [INFOS] [STDOUT] Level name: MpServer 2014-07-06 23:48:08 [INFOS] [STDOUT] All players: 1 total; [EntityClientPlayerMP['ShLennon921'/16, l='MpServer', x=-763,93, y=5,62, z=1594,53]] 2014-07-06 23:48:08 [INFOS] [STDOUT] Chunk stats: MultiplayerChunkCache: 55 2014-07-06 23:48:08 [INFOS] [STDOUT] Level seed: 0 2014-07-06 23:48:08 [INFOS] [STDOUT] Level generator: ID 01 - flat, ver 0\. Features enabled: false 2014-07-06 23:48:08 [INFOS] [STDOUT] Level generator options: 2014-07-06 23:48:08 [INFOS] [STDOUT] Level spawn location: World: (-707,4,1549), Chunk: (at 13,0,13 in -45,96; contains blocks -720,0,1536 to -705,255,1551), Region: (-2,3; contains chunks -64,96 to -33,127, blocks -1024,0,1536 to -513,255,2047) 2014-07-06 23:48:08 [INFOS] [STDOUT] Level time: 98177 game time, 46735 day time 2014-07-06 23:48:08 [INFOS] [STDOUT] Level dimension: 0 2014-07-06 23:48:08 [INFOS] [STDOUT] Level storage version: 0x00000 - Unknown? 2014-07-06 23:48:08 [INFOS] [STDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) 2014-07-06 23:48:08 [INFOS] [STDOUT] Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false 2014-07-06 23:48:08 [INFOS] [STDOUT] Forced entities: 3 total; [EntityPig['Pig'/5, l='MpServer', x=-778,97, y=4,00, z=1538,13], EntityPig['Pig'/6, l='MpServer', x=-766,91, y=4,00, z=1541,16], EntityClientPlayerMP['ShLennon921'/16, l='MpServer', x=-763,93, y=5,62, z=1594,53]] 2014-07-06 23:48:08 [INFOS] [STDOUT] Retry entities: 0 total; [] 2014-07-06 23:48:08 [INFOS] [STDOUT] Server brand: fml,forge 2014-07-06 23:48:08 [INFOS] [STDOUT] Server type: Integrated singleplayer server 2014-07-06 23:48:08 [INFOS] [STDOUT] Stacktrace: 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:863) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-07-06 23:48:08 [INFOS] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-07-06 23:48:08 [INFOS] [STDOUT] 2014-07-06 23:48:08 [INFOS] [STDOUT] – System Details -- 2014-07-06 23:48:08 [INFOS] [STDOUT] Details: 2014-07-06 23:48:08 [INFOS] [STDOUT] Minecraft Version: 1.6.4 2014-07-06 23:48:08 [INFOS] [STDOUT] Operating System: Windows 8.1 (x86) version 6.3 2014-07-06 23:48:08 [INFOS] [STDOUT] Java Version: 1.7.0_60, Oracle Corporation 2014-07-06 23:48:08 [INFOS] [STDOUT] Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation 2014-07-06 23:48:08 [INFOS] [STDOUT] Memory: 742511320 bytes (708 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) 2014-07-06 23:48:08 [INFOS] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 2014-07-06 23:48:08 [INFOS] [STDOUT] AABB Pool Size: 9254 (518224 bytes; 0 MB) allocated, 9254 (518224 bytes; 0 MB) used 2014-07-06 23:48:08 [INFOS] [STDOUT] Suspicious classes: FML and Forge are installed 2014-07-06 23:48:08 [INFOS] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 2014-07-06 23:48:08 [INFOS] [STDOUT] FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active 2014-07-06 23:48:08 [INFOS] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-07-06 23:48:08 [INFOS] [STDOUT] FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-07-06 23:48:08 [INFOS] [STDOUT] Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-07-06 23:48:08 [INFOS] [STDOUT] ViruZ{3.0} [ViruZ] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-07-06 23:48:08 [INFOS] [STDOUT] Launched Version: 1.6 2014-07-06 23:48:08 [INFOS] [STDOUT] LWJGL: 2.9.0 2014-07-06 23:48:08 [INFOS] [STDOUT] OpenGL: Intel(R) HD Graphics 3000 GL version 3.1.0 - Build 9.17.10.3347, Intel 2014-07-06 23:48:08 [INFOS] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge' 2014-07-06 23:48:08 [INFOS] [STDOUT] Type: Client (map_client.txt) 2014-07-06 23:48:08 [INFOS] [STDOUT] Resource Pack: [ViruZ]_R3D.CRAFT_Smooth_Realism_64x_v0.1.1.zip 2014-07-06 23:48:08 [INFOS] [STDOUT] Current Language: English (US) 2014-07-06 23:48:08 [INFOS] [STDOUT] Profiler Position: N/A (disabled) 2014-07-06 23:48:08 [INFOS] [STDOUT] Vec3 Pool Size: 35 (1960 bytes; 0 MB) allocated, 35 (1960 bytes; 0 MB) used 2014-07-06 23:48:08 [INFOS] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Jean-Baptiste\Desktop\Modding\JAVA\Stand-by\ViruZ_Core_Forge_1.6.4_9.11.1.965\forge\mcp\jars\.\crash-reports\crash-2014-07-06_23.48.08-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
:::
Et appareament l’event n’est pas cancelable, pourtant il y a bien le @Cancelable, je comprend pas :S
Ah et !
Une autre petite question via le clientTicks (1.6.x) il y a différentes fonction de rendu CLIENT, SERVER, RENDER
Et-il possible d’afficher une image quand le joueur perd de la vie ou autre ?
Et si on peux passer par cet event “RenderGameOverlayEvent” ce serait cool !Voilà pour les questions merci de votre aide !
-
RenderGameOverlayEvent.Post n’est pas cancelable. RenderGameOverlayEvent.Pre l’est.
Et c’est == pas != -
Nickel ! Merci Robin !
Et tu aurais une idée pour l’image ?
Ce serait pareil que le pumpkinBlur en fait