Record Class Sounds
java.lang.Object
java.lang.Record
com.wildfire.common.entitydata.Sounds
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSounds(ConfigValue<Boolean> hurt, ConfigValue<Float> voicePitch) Creates an instance of aSoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hurt()Returns the value of thehurtrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevoicePitchrecord component.
-
Field Details
-
CODEC
-
LEGACY_CODEC
-
CODEC_OR_LEGACY
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Sounds> STREAM_CODEC
-
-
Constructor Details
-
Sounds
Creates an instance of aSoundsrecord class.- Parameters:
hurt- the value for thehurtrecord componentvoicePitch- the value for thevoicePitchrecord 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). -
hurt
Returns the value of thehurtrecord component.- Returns:
- the value of the
hurtrecord component
-
voicePitch
Returns the value of thevoicePitchrecord component.- Returns:
- the value of the
voicePitchrecord component
-