Record Class CatSoundVariant.CatSoundSet
java.lang.Object
java.lang.Record
net.minecraft.world.entity.animal.feline.CatSoundVariant.CatSoundSet
- Enclosing class:
CatSoundVariant
public static record CatSoundVariant.CatSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> strayAmbientSound, Holder<SoundEvent> hissSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> eatSound, Holder<SoundEvent> begForFoodSound, Holder<SoundEvent> purrSound, Holder<SoundEvent> purreowSound)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Holder<SoundEvent> The field for theambientSoundrecord component.private final Holder<SoundEvent> The field for thebegForFoodSoundrecord component.private static com.mojang.serialization.Codec<CatSoundVariant.CatSoundSet> private final Holder<SoundEvent> The field for thedeathSoundrecord component.private final Holder<SoundEvent> The field for theeatSoundrecord component.private final Holder<SoundEvent> The field for thehissSoundrecord component.private final Holder<SoundEvent> The field for thehurtSoundrecord component.private final Holder<SoundEvent> The field for thepurreowSoundrecord component.private final Holder<SoundEvent> The field for thepurrSoundrecord component.private final Holder<SoundEvent> The field for thestrayAmbientSoundrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCatSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> strayAmbientSound, Holder<SoundEvent> hissSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> eatSound, Holder<SoundEvent> begForFoodSound, Holder<SoundEvent> purrSound, Holder<SoundEvent> purreowSound) Creates an instance of aCatSoundSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theambientSoundrecord component.Returns the value of thebegForFoodSoundrecord component.Returns the value of thedeathSoundrecord component.eatSound()Returns the value of theeatSoundrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehissSoundrecord component.Returns the value of thehurtSoundrecord component.Returns the value of thepurreowSoundrecord component.Returns the value of thepurrSoundrecord component.Returns the value of thestrayAmbientSoundrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ambientSound
The field for theambientSoundrecord component. -
strayAmbientSound
The field for thestrayAmbientSoundrecord component. -
hissSound
The field for thehissSoundrecord component. -
hurtSound
The field for thehurtSoundrecord component. -
deathSound
The field for thedeathSoundrecord component. -
eatSound
The field for theeatSoundrecord component. -
begForFoodSound
The field for thebegForFoodSoundrecord component. -
purrSound
The field for thepurrSoundrecord component. -
purreowSound
The field for thepurreowSoundrecord component. -
CODEC
-
-
Constructor Details
-
CatSoundSet
public CatSoundSet(Holder<SoundEvent> ambientSound, Holder<SoundEvent> strayAmbientSound, Holder<SoundEvent> hissSound, Holder<SoundEvent> hurtSound, Holder<SoundEvent> deathSound, Holder<SoundEvent> eatSound, Holder<SoundEvent> begForFoodSound, Holder<SoundEvent> purrSound, Holder<SoundEvent> purreowSound) Creates an instance of aCatSoundSetrecord class.- Parameters:
ambientSound- the value for theambientSoundrecord componentstrayAmbientSound- the value for thestrayAmbientSoundrecord componenthissSound- the value for thehissSoundrecord componenthurtSound- the value for thehurtSoundrecord componentdeathSound- the value for thedeathSoundrecord componenteatSound- the value for theeatSoundrecord componentbegForFoodSound- the value for thebegForFoodSoundrecord componentpurrSound- the value for thepurrSoundrecord componentpurreowSound- the value for thepurreowSoundrecord 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
-
strayAmbientSound
Returns the value of thestrayAmbientSoundrecord component.- Returns:
- the value of the
strayAmbientSoundrecord component
-
hissSound
Returns the value of thehissSoundrecord component.- Returns:
- the value of the
hissSoundrecord component
-
hurtSound
Returns the value of thehurtSoundrecord component.- Returns:
- the value of the
hurtSoundrecord component
-
deathSound
Returns the value of thedeathSoundrecord component.- Returns:
- the value of the
deathSoundrecord component
-
eatSound
Returns the value of theeatSoundrecord component.- Returns:
- the value of the
eatSoundrecord component
-
begForFoodSound
Returns the value of thebegForFoodSoundrecord component.- Returns:
- the value of the
begForFoodSoundrecord component
-
purrSound
Returns the value of thepurrSoundrecord component.- Returns:
- the value of the
purrSoundrecord component
-
purreowSound
Returns the value of thepurreowSoundrecord component.- Returns:
- the value of the
purreowSoundrecord component
-