Interface Instrument
- All Superinterfaces:
Holder<Instrument>
,Holder.Direct<Instrument>
- All Known Implementing Classes:
InstrumentImpl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minestom.server.registry.Holder
Holder.Direct<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey
<Instrument> static final RegistryKey
<Instrument> static final @NotNull Codec
<Holder<Instrument>> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> static final NetworkBuffer.Type
<Holder<Instrument>> static final RegistryKey
<Instrument> static final @NotNull Codec
<Instrument> static final NetworkBuffer.Type
<Instrument> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Instrument.Builder
builder()
static @NotNull Instrument
create
(@NotNull SoundEvent soundEvent, float useDuration, float range, @NotNull Component description) static @NotNull DynamicRegistry
<Instrument> Creates a new registry for instruments, loading the vanilla instruments.@NotNull Component
float
range()
@NotNull SoundEvent
float
default int
-
Field Details
-
REGISTRY_NETWORK_TYPE
-
REGISTRY_CODEC
-
NETWORK_TYPE
-
CODEC
-
ADMIRE_GOAT_HORN
-
SING_GOAT_HORN
-
YEARN_GOAT_HORN
-
SEEK_GOAT_HORN
-
DREAM_GOAT_HORN
-
FEEL_GOAT_HORN
-
CALL_GOAT_HORN
-
PONDER_GOAT_HORN
-
-
Method Details
-
create
@NotNull static @NotNull Instrument create(@NotNull @NotNull SoundEvent soundEvent, float useDuration, float range, @NotNull @NotNull Component description) -
builder
-
createDefaultRegistry
Creates a new registry for instruments, loading the vanilla instruments.
- See Also:
-
soundEvent
-
useDuration
float useDuration() -
useDurationTicks
default int useDurationTicks() -
range
float range() -
description
-