Package io.papermc.paper.registry.data
Interface InstrumentRegistryEntry
- All Known Subinterfaces:
InstrumentRegistryEntry.Builder
A data-centric version-specific registry entry for the
MusicInstrument
type.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A mutable builder for theInstrumentRegistryEntry
plugins may change in applicable registry events. -
Method Summary
Modifier and TypeMethodDescriptionProvides the description of the instrument, which is used in the item tooltip.@org.checkerframework.checker.index.qual.Positive float
duration()
Provides the duration of the instrument, which is time to use.@org.checkerframework.checker.index.qual.Positive float
range()
Provides the range of the instrument, which is range of the sound.Provides the sound event of the instrument.
-
Method Details
-
soundEvent
Provides the sound event of the instrument.- Returns:
- the sound event.
- See Also:
-
duration
Provides the duration of the instrument, which is time to use.- Returns:
- the duration.
- See Also:
-
range
Provides the range of the instrument, which is range of the sound.- Returns:
- the range.
- See Also:
-
description
Provides the description of the instrument, which is used in the item tooltip.- Returns:
- the description.
- See Also:
-