Package net.minecraft.entity
Record Class LivingEntity.FallSounds
java.lang.Object
java.lang.Record
net.minecraft.entity.LivingEntity.FallSounds
- Record Components:
small
-big
-
- Enclosing class:
LivingEntity
- Mappings:
Namespace Name named net/minecraft/entity/LivingEntity$FallSounds
intermediary net/minecraft/class_1309$class_6823
official bwf$a
named small
intermediary comp_301
official a
named big
intermediary comp_302
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SoundEvent
The field for thebig
record component.private final SoundEvent
The field for thesmall
record component. -
Constructor Summary
-
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
-
Constructor Details
-
FallSounds
-
-
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
-