Interface Instrument
- All Superinterfaces:
ProtocolObject
- All Known Implementing Classes:
InstrumentImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> static final @NotNull BinaryTagSerializer<DynamicRegistry.Key<Instrument>> static final NetworkBuffer.Type<DynamicRegistry.Key<Instrument>> static final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> static final DynamicRegistry.Key<Instrument> -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Instrument.Builderbuilder()static @NotNull Instrumentcreate(@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 Componentfloatrange()registry()@NotNull SoundEventfloatdefault int
-
Field Details
-
NETWORK_TYPE
-
NBT_TYPE
-
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
-
registry
- Specified by:
registryin interfaceProtocolObject
-