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/WolfSoundVariant
intermediary net/minecraft/class_10823
official cpk
named ambientSound
intermediary comp_3779
official e
named deathSound
intermediary comp_3780
official f
named growlSound
intermediary comp_3781
official g
named hurtSound
intermediary comp_3782
official h
named pantSound
intermediary comp_3783
official i
named whineSound
intermediary comp_3784
official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry
<SoundEvent> The field for theambientSound
record component.static final com.mojang.serialization.Codec
<WolfSoundVariant> private final RegistryEntry
<SoundEvent> The field for thedeathSound
record component.static final com.mojang.serialization.Codec
<RegistryEntry<WolfSoundVariant>> private final RegistryEntry
<SoundEvent> The field for thegrowlSound
record component.private final RegistryEntry
<SoundEvent> The field for thehurtSound
record component.static final com.mojang.serialization.Codec
<WolfSoundVariant> static final PacketCodec
<RegistryByteBuf, RegistryEntry<WolfSoundVariant>> private final RegistryEntry
<SoundEvent> The field for thepantSound
record component.private final RegistryEntry
<SoundEvent> The field for thewhineSound
record 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 theambientSound
record component.private static com.mojang.serialization.Codec
<WolfSoundVariant> Returns the value of thedeathSound
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegrowlSound
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehurtSound
record component.Returns the value of thepantSound
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thewhineSound
record component.
-
Field Details
-
ambientSound
The field for theambientSound
record component. -
deathSound
The field for thedeathSound
record component. -
growlSound
The field for thegrowlSound
record component. -
hurtSound
The field for thehurtSound
record component. -
pantSound
The field for thepantSound
record component. -
whineSound
The field for thewhineSound
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/passive/WolfSoundVariant;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_57076
Lnet/minecraft/class_10823;field_57076:Lcom/mojang/serialization/Codec;
official a
Lcpk;a:Lcom/mojang/serialization/Codec;
-
NETWORK_CODEC
- Mappings:
Namespace Name Mixin selector named NETWORK_CODEC
Lnet/minecraft/entity/passive/WolfSoundVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_57077
Lnet/minecraft/class_10823;field_57077:Lcom/mojang/serialization/Codec;
official b
Lcpk;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/entity/passive/WolfSoundVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_57078
Lnet/minecraft/class_10823;field_57078:Lcom/mojang/serialization/Codec;
official c
Lcpk;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/entity/passive/WolfSoundVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_57079
Lnet/minecraft/class_10823;field_57079:Lnet/minecraft/class_9139;
official d
Lcpk;d:Lzm;
-
-
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 createCodec
Lnet/minecraft/entity/passive/WolfSoundVariant;createCodec()Lcom/mojang/serialization/Codec;
intermediary method_68134
Lnet/minecraft/class_10823;method_68134()Lcom/mojang/serialization/Codec;
official g
Lcpk;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 theambientSound
record component.- Returns:
- the value of the
ambientSound
record component
-
deathSound
Returns the value of thedeathSound
record component.- Returns:
- the value of the
deathSound
record component
-
growlSound
Returns the value of thegrowlSound
record component.- Returns:
- the value of the
growlSound
record component
-
hurtSound
Returns the value of thehurtSound
record component.- Returns:
- the value of the
hurtSound
record component
-
pantSound
Returns the value of thepantSound
record component.- Returns:
- the value of the
pantSound
record component
-
whineSound
Returns the value of thewhineSound
record component.- Returns:
- the value of the
whineSound
record component
-