Stop sound in 1.14 doesn't work

Started by Erik444 on

Topic category: Help with MCreator software

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Stop sound in 1.14 doesn't work

Hi!, i make this on 1.12 and its work, but , i remake on 1.14 and have this error:
 

Minecraft.getMinecraft().getSoundHandler().stopSounds(); 
         ^   
symbol:   method getMinecraft()   
location: class Minecraft

its on "custom code snippet"

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
noup,        Minecraft…
Sun, 12/22/2019 - 16:51

noup, 

      Minecraft.getInstance().getSoundHandler().stopSounds();
               ^
  symbol:   method getInstance()
  location: class Minecraft

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 Minecraft.getInstance()…
Sun, 12/22/2019 - 16:52
 Minecraft.getInstance().getSoundHandler().stopSounds();
          ^   
symbol:   method getInstance()
   location: class Minecraft

*

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okey, i rebuild all project,…
Sun, 12/22/2019 - 17:42

okey, i rebuild all project, and get this:
 

      Minecraft.getInstance().getSoundHandler().stopSounds();                                                ^  
 symbol:   method stopSounds() 
 location: class SoundHandler