Interface BackgroundMusic

All Superinterfaces:
Wrapper

@NullMarked @AsOf("2.4.1") public interface BackgroundMusic extends Wrapper
Wraps a Minecraft BackgroundMusic.
Since:
2.4.1
  • Field Details

  • Method Details

    • defaultMusic

      @AsOf("2.4.1") Optional<Music> defaultMusic()
      Gets the default music.
      Returns:
      the default music, if present
      Since:
      2.4.1
    • creativeMusic

      @AsOf("2.4.1") Optional<Music> creativeMusic()
      Gets the creative music.
      Returns:
      the creative music, if present
      Since:
      2.4.1
    • underwaterMusic

      @AsOf("2.4.1") Optional<Music> underwaterMusic()
      Gets the underwater music.
      Returns:
      the underwater music, if present
      Since:
      2.4.1
    • of

      @NullUnmarked @AsOf("2.4.1") static BackgroundMusic of(Music defaultMusic, Music creativeMusic, Music underwaterMusic)
      Creates a new background music record.
      Parameters:
      defaultMusic - the default music
      creativeMusic - the creative music
      underwaterMusic - the underwater music
      Returns:
      a new background music record
      Since:
      2.4.1
    • builder

      @AsOf("2.4.1") static BackgroundMusic.Builder builder()
      Creates a new background music record builder.
      Returns:
      a new background music record builder
      Since:
      2.4.1