Aucun des deux events ne marche 
| @SubscribeEvent |
| public void iceEvent(PlaySoundEvent event) |
| { |
| EntityPlayer entityPlayer = Minecraft.getMinecraft().thePlayer; |
| |
| if(currentPlayerLvl != entityPlayer.experienceLevel) |
| { |
| entityPlayer.worldObj.playSoundAtEntity(entityPlayer, ("icenfiremod:" + "levelUpByOne"), 1.0F, 1.0F); |
| System.out.println("Sound play: levelUpByOne direct"); |
| } |
| |
| currentPlayerLvl = entityPlayer.experienceLevel; |
| } |
| @SubscribeEvent |
| public void iceEvent(TickEvent event) |
| { |
| EntityPlayer entityPlayer = Minecraft.getMinecraft().thePlayer; |
| |
| if(currentPlayerLvl != entityPlayer.experienceLevel) |
| { |
| entityPlayer.worldObj.playSoundAtEntity(entityPlayer, ("icenfiremod:" + "levelUpByOne"), 1.0F, 1.0F); |
| System.out.println("Sound play: levelUpByOne direct"); |
| } |
| |
| currentPlayerLvl = entityPlayer.experienceLevel; |
| } |