net.minecraft.entity.passive

public record CowSoundVariant

net.minecraft.world.entity.animal.cow.CowSoundVariant
net.minecraft.class_1_323
net.minecraft.entity.passive.CowSoundVariant

Field summary

Modifier and TypeField
private final Optional<RegistryEntry<SoundEvent>>
ambientSound
comp_1_217
ambientSound
private final Optional<RegistryEntry<SoundEvent>>
hurtSound
comp_1_219
hurtSound
private final Optional<RegistryEntry<SoundEvent>>
deathSound
comp_1_218
deathSound
private final Optional<RegistryEntry<SoundEvent>>
stepSound
comp_1_220
stepSound
public static final com.mojang.serialization.Codec<CowSoundVariant>
DIRECT_CODEC
field_1_1909
CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<CowSoundVariant>>
CODEC
field_1_1908
ENTRY_CODEC
public static final PacketCodec<RegistryByteBuf, RegistryEntry<CowSoundVariant>>
STREAM_CODEC
field_1_1911
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Optional<RegistryEntry<SoundEvent>> ambientSound, Optional<RegistryEntry<SoundEvent>> hurtSound, Optional<RegistryEntry<SoundEvent>> deathSound, Optional<RegistryEntry<SoundEvent>> stepSound)

Method summary

Modifier and TypeMethod
public Optional<RegistryEntry<SoundEvent>>
ambientSound()
comp_1_217()
ambientSound()
public Optional<RegistryEntry<SoundEvent>>
hurtSound()
comp_1_219()
hurtSound()
public Optional<RegistryEntry<SoundEvent>>
deathSound()
comp_1_218()
deathSound()
public Optional<RegistryEntry<SoundEvent>>
stepSound()
comp_1_220()
stepSound()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_11628(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_11628(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)