Record Class ScribeSoundEffectSpecification
java.lang.Object
java.lang.Record
johnsmith.enchantingoverhauled.client.gui.sound.scribe.ScribeSoundEffectSpecification
public record ScribeSoundEffectSpecification(SoundEffectData actionIdle, SoundEffectData actionStart, SoundEffectData actionAbort, SoundEffectData actionWon, SoundEffectData actionLost, SoundEffectData gridReveal, SoundEffectData gridFlag, SoundEffectData gridUnflag, SoundEffectData gameWon, SoundEffectData gameLost)
extends Record
A specification defining the sound effects mapped to interactions within the Scribe minigame.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScribeSoundEffectSpecificationThe standard default sound mappings for the Scribe interface, resolved via the factory. -
Constructor Summary
ConstructorsConstructorDescriptionScribeSoundEffectSpecification(SoundEffectData actionIdle, SoundEffectData actionStart, SoundEffectData actionAbort, SoundEffectData actionWon, SoundEffectData actionLost, SoundEffectData gridReveal, SoundEffectData gridFlag, SoundEffectData gridUnflag, SoundEffectData gameWon, SoundEffectData gameLost) Creates an instance of aScribeSoundEffectSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionAbortrecord component.Returns the value of theactionIdlerecord component.Returns the value of theactionLostrecord component.Returns the value of theactionStartrecord component.Returns the value of theactionWonrecord component.final booleanIndicates whether some other object is "equal to" this one.gameLost()Returns the value of thegameLostrecord component.gameWon()Returns the value of thegameWonrecord component.gridFlag()Returns the value of thegridFlagrecord component.Returns the value of thegridRevealrecord component.Returns the value of thegridUnflagrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The standard default sound mappings for the Scribe interface, resolved via the factory.
-
-
Constructor Details
-
ScribeSoundEffectSpecification
public ScribeSoundEffectSpecification(SoundEffectData actionIdle, SoundEffectData actionStart, SoundEffectData actionAbort, SoundEffectData actionWon, SoundEffectData actionLost, SoundEffectData gridReveal, SoundEffectData gridFlag, SoundEffectData gridUnflag, SoundEffectData gameWon, SoundEffectData gameLost) Creates an instance of aScribeSoundEffectSpecificationrecord class.- Parameters:
actionIdle- the value for theactionIdlerecord componentactionStart- the value for theactionStartrecord componentactionAbort- the value for theactionAbortrecord componentactionWon- the value for theactionWonrecord componentactionLost- the value for theactionLostrecord componentgridReveal- the value for thegridRevealrecord componentgridFlag- the value for thegridFlagrecord componentgridUnflag- the value for thegridUnflagrecord componentgameWon- the value for thegameWonrecord componentgameLost- the value for thegameLostrecord 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). -
actionIdle
Returns the value of theactionIdlerecord component.- Returns:
- the value of the
actionIdlerecord component
-
actionStart
Returns the value of theactionStartrecord component.- Returns:
- the value of the
actionStartrecord component
-
actionAbort
Returns the value of theactionAbortrecord component.- Returns:
- the value of the
actionAbortrecord component
-
actionWon
Returns the value of theactionWonrecord component.- Returns:
- the value of the
actionWonrecord component
-
actionLost
Returns the value of theactionLostrecord component.- Returns:
- the value of the
actionLostrecord component
-
gridReveal
Returns the value of thegridRevealrecord component.- Returns:
- the value of the
gridRevealrecord component
-
gridFlag
Returns the value of thegridFlagrecord component.- Returns:
- the value of the
gridFlagrecord component
-
gridUnflag
Returns the value of thegridUnflagrecord component.- Returns:
- the value of the
gridUnflagrecord component
-
gameWon
Returns the value of thegameWonrecord component.- Returns:
- the value of the
gameWonrecord component
-
gameLost
Returns the value of thegameLostrecord component.- Returns:
- the value of the
gameLostrecord component
-