- 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 Codec
<Holder<Instrument>> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> static final NetworkBuffer.Type
<Holder<Instrument>> static final RegistryKey
<Instrument> static final Codec
<Instrument> static final NetworkBuffer.Type
<Instrument> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> static final RegistryKey
<Instrument> -
Method Summary
Modifier and TypeMethodDescriptionstatic Instrument.Builder
builder()
static Instrument
create
(SoundEvent soundEvent, float useDuration, float range, Component description) static DynamicRegistry
<Instrument> Creates a new registry for instruments, loading the vanilla instruments.float
range()
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
static Instrument create(SoundEvent soundEvent, float useDuration, float range, Component description) -
builder
-
createDefaultRegistry
Creates a new registry for instruments, loading the vanilla instruments.
- See Also:
-
soundEvent
SoundEvent soundEvent() -
useDuration
float useDuration() -
useDurationTicks
default int useDurationTicks() -
range
float range() -
description
Component description()
-