Record Class WolfSoundVariant.WolfSoundSet
java.lang.Object
java.lang.Record
net.minecraft.world.entity.animal.wolf.WolfSoundVariant.WolfSoundSet
- Enclosing class:
WolfSoundVariant
public static record WolfSoundVariant.WolfSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> growlSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> pantSound, Holder<SoundEvent> whineSound, Holder<SoundEvent> stepSound)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Holder<SoundEvent> The field for theambientSoundrecord component.static final com.mojang.serialization.Codec<WolfSoundVariant.WolfSoundSet> private final Holder<SoundEvent> The field for thedeathSoundrecord component.private final Holder<SoundEvent> The field for thegrowlSoundrecord component.private final Holder<SoundEvent> The field for thehurtSoundrecord component.private final Holder<SoundEvent> The field for thepantSoundrecord component.private final Holder<SoundEvent> The field for thestepSoundrecord component.private final Holder<SoundEvent> The field for thewhineSoundrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWolfSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> growlSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> pantSound, Holder<SoundEvent> whineSound, Holder<SoundEvent> stepSound) Creates an instance of aWolfSoundSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theambientSoundrecord component.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.Returns the value of thestepSoundrecord 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. -
stepSound
The field for thestepSoundrecord component. -
CODEC
-
-
Constructor Details
-
WolfSoundSet
public WolfSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> growlSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> pantSound, Holder<SoundEvent> whineSound, Holder<SoundEvent> stepSound) Creates an instance of aWolfSoundSetrecord class.- Parameters:
ambientSound- the value for theambientSoundrecord componentdeathSound- the value for thedeathSoundrecord componentgrowlSound- the value for thegrowlSoundrecord componenthurtSound- the value for thehurtSoundrecord componentpantSound- the value for thepantSoundrecord componentwhineSound- the value for thewhineSoundrecord componentstepSound- the value for thestepSoundrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-
stepSound
Returns the value of thestepSoundrecord component.- Returns:
- the value of the
stepSoundrecord component
-