Package net.minecraft.world.entity
Record Class LivingEntity.Fallsounds
java.lang.Object
java.lang.Record
net.minecraft.world.entity.LivingEntity.Fallsounds
- Enclosing class:
LivingEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SoundEvent
The field for thebig
record component.private final SoundEvent
The field for thesmall
record component. -
Constructor Summary
ConstructorDescriptionFallsounds
(SoundEvent small, SoundEvent big) Creates an instance of aFallsounds
record class. -
Method Summary
Modifier and TypeMethodDescriptionbig()
Returns the value of thebig
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.small()
Returns the value of thesmall
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
small
The field for thesmall
record component. -
big
The field for thebig
record component.
-
-
Constructor Details
-
Fallsounds
Creates an instance of aFallsounds
record class.- Parameters:
small
- the value for thesmall
record componentbig
- the value for thebig
record component
-
-
Method Details
-
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)
. -
small
Returns the value of thesmall
record component.- Returns:
- the value of the
small
record component
-
big
Returns the value of thebig
record component.- Returns:
- the value of the
big
record component
-