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 Details

    • ambientSound

      private final RegistryEntry<SoundEvent> ambientSound
      The field for the ambientSound record component.
    • deathSound

      private final RegistryEntry<SoundEvent> deathSound
      The field for the deathSound record component.
    • growlSound

      private final RegistryEntry<SoundEvent> growlSound
      The field for the growlSound record component.
    • hurtSound

      private final RegistryEntry<SoundEvent> hurtSound
      The field for the hurtSound record component.
    • pantSound

      private final RegistryEntry<SoundEvent> pantSound
      The field for the pantSound record component.
    • whineSound

      private final RegistryEntry<SoundEvent> whineSound
      The field for the whineSound record component.
    • CODEC

      public static final com.mojang.serialization.Codec<WolfSoundVariant> 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

      public static final com.mojang.serialization.Codec<WolfSoundVariant> 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

      public static final com.mojang.serialization.Codec<RegistryEntry<WolfSoundVariant>> 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

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<WolfSoundVariant>> 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

  • Method Details

    • createCodec

      private static com.mojang.serialization.Codec<WolfSoundVariant> 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • ambientSound

      public RegistryEntry<SoundEvent> ambientSound()
      Returns the value of the ambientSound record component.
      Returns:
      the value of the ambientSound record component
    • deathSound

      public RegistryEntry<SoundEvent> deathSound()
      Returns the value of the deathSound record component.
      Returns:
      the value of the deathSound record component
    • growlSound

      public RegistryEntry<SoundEvent> growlSound()
      Returns the value of the growlSound record component.
      Returns:
      the value of the growlSound record component
    • hurtSound

      public RegistryEntry<SoundEvent> hurtSound()
      Returns the value of the hurtSound record component.
      Returns:
      the value of the hurtSound record component
    • pantSound

      public RegistryEntry<SoundEvent> pantSound()
      Returns the value of the pantSound record component.
      Returns:
      the value of the pantSound record component
    • whineSound

      public RegistryEntry<SoundEvent> whineSound()
      Returns the value of the whineSound record component.
      Returns:
      the value of the whineSound record component