Interface BackgroundMusic
- All Superinterfaces:
Wrapper
Wraps a Minecraft BackgroundMusic.
- Since:
- 2.4.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder for creating background music records. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackgroundMusic.Builderbuilder()Creates a new background music record builder.Gets the creative music.static BackgroundMusicReads Minecraft background music into a wrapper.Gets the default music.static BackgroundMusicCreates a new background music record.default BackgroundMusic.BuilderCreates a new builder with the same values as this background music.Gets the underwater music.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
defaultMusic
-
creativeMusic
-
underwaterMusic
-
toBuilder
Creates a new builder with the same values as this background music.- Returns:
- a new builder with the same values
- Since:
- 3.3.0
-
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 musiccreativeMusic- the creative musicunderwaterMusic- the underwater music- Returns:
- a new background music record
- Since:
- 2.4.1
-
builder
Creates a new background music record builder.- Returns:
- a new background music record builder
- Since:
- 2.4.1
-
decode
Reads Minecraft background music into a wrapper.- Parameters:
minecraftBackgroundMusic- the background music to read- Returns:
- the wrapper for it
- Since:
- 3.3.0
-