Interface CowSoundVariant
public sealed interface CowSoundVariant
Sounds used by the cow, set with
DataComponents.COW_SOUND_VARIANT
currently adultSounds() are shared between baby and adult. This is expected to change in a future release.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<CowSoundVariant> static final Codec<RegistryKey<CowSoundVariant>> static final RegistryKey<CowSoundVariant> static final NetworkBuffer.Type<RegistryKey<CowSoundVariant>> static final Codec<CowSoundVariant> -
Method Summary
Modifier and TypeMethodDescriptionstatic CowSoundVariant.Builderbuilder()static CowSoundVariantcreate(CowSoundVariant.CowSoundSet adultSounds) static DynamicRegistry<CowSoundVariant> Creates a new instance of the "minecraft:cow_sound_variant" registry containing the vanilla contents.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
REGISTRY_CODEC
-
MOODY
-
CLASSIC
-
-
Method Details
-
createDefaultRegistry
Creates a new instance of the "minecraft:cow_sound_variant" registry containing the vanilla contents.- See Also:
-
create
-
adultSounds
CowSoundVariant.CowSoundSet adultSounds() -
builder
-