Package net.minecraft.entity.passive
Record Class WolfSoundVariant
java.lang.Object
java.lang.Record
net.minecraft.entity.passive.WolfSoundVariant
- Record Components:
ambientSound-deathSound-growlSound-hurtSound-pantSound-whineSound-
public record WolfSoundVariant(RegistryEntry<SoundEvent> ambientSound, RegistryEntry<SoundEvent> deathSound, RegistryEntry<SoundEvent> growlSound, RegistryEntry<SoundEvent> hurtSound, RegistryEntry<SoundEvent> pantSound, RegistryEntry<SoundEvent> whineSound)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/passive/WolfSoundVariantintermediary net/minecraft/class_10823official cmynamed ambientSoundintermediary comp_3779official enamed deathSoundintermediary comp_3780official fnamed growlSoundintermediary comp_3781official gnamed hurtSoundintermediary comp_3782official hnamed pantSoundintermediary comp_3783official inamed whineSoundintermediary comp_3784official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<SoundEvent> The field for theambientSoundrecord component.static final com.mojang.serialization.Codec<WolfSoundVariant> private final RegistryEntry<SoundEvent> The field for thedeathSoundrecord component.static final com.mojang.serialization.Codec<RegistryEntry<WolfSoundVariant>> private final RegistryEntry<SoundEvent> The field for thegrowlSoundrecord component.private final RegistryEntry<SoundEvent> The field for thehurtSoundrecord component.static final com.mojang.serialization.Codec<WolfSoundVariant> static final PacketCodec<RegistryByteBuf, RegistryEntry<WolfSoundVariant>> private final RegistryEntry<SoundEvent> The field for thepantSoundrecord component.private final RegistryEntry<SoundEvent> The field for thewhineSoundrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWolfSoundVariant(RegistryEntry<SoundEvent> registryEntry, RegistryEntry<SoundEvent> registryEntry2, RegistryEntry<SoundEvent> registryEntry3, RegistryEntry<SoundEvent> registryEntry4, RegistryEntry<SoundEvent> registryEntry5, RegistryEntry<SoundEvent> registryEntry6) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theambientSoundrecord component.private static com.mojang.serialization.Codec<WolfSoundVariant> Returns the value of thedeathSoundrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegrowlSoundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehurtSoundrecord component.Returns the value of thepantSoundrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhineSoundrecord component.
-
Field Details
-
ambientSound
The field for theambientSoundrecord component. -
deathSound
The field for thedeathSoundrecord component. -
growlSound
The field for thegrowlSoundrecord component. -
hurtSound
The field for thehurtSoundrecord component. -
pantSound
The field for thepantSoundrecord component. -
whineSound
The field for thewhineSoundrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/WolfSoundVariant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_57076Lnet/minecraft/class_10823;field_57076:Lcom/mojang/serialization/Codec;official aLcmy;a:Lcom/mojang/serialization/Codec;
-
NETWORK_CODEC
- Mappings:
Namespace Name Mixin selector named NETWORK_CODECLnet/minecraft/entity/passive/WolfSoundVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;intermediary field_57077Lnet/minecraft/class_10823;field_57077:Lcom/mojang/serialization/Codec;official bLcmy;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/entity/passive/WolfSoundVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_57078Lnet/minecraft/class_10823;field_57078:Lcom/mojang/serialization/Codec;official cLcmy;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/WolfSoundVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_57079Lnet/minecraft/class_10823;field_57079:Lnet/minecraft/class_9139;official dLcmy;d:Lze;
-
-
Constructor Details
-
WolfSoundVariant
public WolfSoundVariant(RegistryEntry<SoundEvent> registryEntry, RegistryEntry<SoundEvent> registryEntry2, RegistryEntry<SoundEvent> registryEntry3, RegistryEntry<SoundEvent> registryEntry4, RegistryEntry<SoundEvent> registryEntry5, RegistryEntry<SoundEvent> registryEntry6)
-
-
Method Details
-
createCodec
- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/entity/passive/WolfSoundVariant;createCodec()Lcom/mojang/serialization/Codec;intermediary method_68134Lnet/minecraft/class_10823;method_68134()Lcom/mojang/serialization/Codec;official gLcmy;g()Lcom/mojang/serialization/Codec;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
ambientSound
Returns the value of theambientSoundrecord component.- Returns:
- the value of the
ambientSoundrecord component
-
deathSound
Returns the value of thedeathSoundrecord component.- Returns:
- the value of the
deathSoundrecord component
-
growlSound
Returns the value of thegrowlSoundrecord component.- Returns:
- the value of the
growlSoundrecord component
-
hurtSound
Returns the value of thehurtSoundrecord component.- Returns:
- the value of the
hurtSoundrecord component
-
pantSound
Returns the value of thepantSoundrecord component.- Returns:
- the value of the
pantSoundrecord component
-
whineSound
Returns the value of thewhineSoundrecord component.- Returns:
- the value of the
whineSoundrecord component
-