Record Class SulfurCubeArchetype.SoundSettings
java.lang.Object
java.lang.Record
net.minestom.server.entity.metadata.cube.SulfurCubeArchetype.SoundSettings
- Enclosing interface:
SulfurCubeArchetype
public static record SulfurCubeArchetype.SoundSettings(SoundEvent hitSound, SoundEvent pushSound, float pushSoundImpulseThreshold, float pushSoundCooldown)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<SulfurCubeArchetype.SoundSettings> static final SulfurCubeArchetype.SoundSettings -
Constructor Summary
ConstructorsConstructorDescriptionSoundSettings(SoundEvent hitSound, SoundEvent pushSound, float pushSoundImpulseThreshold, float pushSoundCooldown) Creates an instance of aSoundSettingsrecord 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.hitSound()Returns the value of thehitSoundrecord component.Returns the value of thepushSoundrecord component.floatReturns the value of thepushSoundCooldownrecord component.floatReturns the value of thepushSoundImpulseThresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
DEFAULT
-
-
Constructor Details
-
SoundSettings
public SoundSettings(SoundEvent hitSound, SoundEvent pushSound, float pushSoundImpulseThreshold, float pushSoundCooldown) Creates an instance of aSoundSettingsrecord class.- Parameters:
hitSound- the value for thehitSoundrecord componentpushSound- the value for thepushSoundrecord componentpushSoundImpulseThreshold- the value for thepushSoundImpulseThresholdrecord componentpushSoundCooldown- the value for thepushSoundCooldownrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hitSound
Returns the value of thehitSoundrecord component.- Returns:
- the value of the
hitSoundrecord component
-
pushSound
Returns the value of thepushSoundrecord component.- Returns:
- the value of the
pushSoundrecord component
-
pushSoundImpulseThreshold
public float pushSoundImpulseThreshold()Returns the value of thepushSoundImpulseThresholdrecord component.- Returns:
- the value of the
pushSoundImpulseThresholdrecord component
-
pushSoundCooldown
public float pushSoundCooldown()Returns the value of thepushSoundCooldownrecord component.- Returns:
- the value of the
pushSoundCooldownrecord component
-