Stop sound in 1.14 doesn't work

Started by Erik444 on

Topic category: Help with MCreator software

Active 5 years ago
Joined May 2015
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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"

Because the code for…
Sun, 12/22/2019 - 13:05

Because the code for Minecraft 1.14.4 changed, try Minecraft.getInstance() instead

Active 5 years ago
Joined May 2015
Points:
722

User statistics:

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

noup, 

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

Active 5 years ago
Joined May 2015
Points:
722

User statistics:

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

*

Active 5 years ago
Joined May 2015
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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