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 Details

    • DEFAULT

      public static final ScribeSoundEffectSpecification 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 a ScribeSoundEffectSpecification record class.
      Parameters:
      actionIdle - the value for the actionIdle record component
      actionStart - the value for the actionStart record component
      actionAbort - the value for the actionAbort record component
      actionWon - the value for the actionWon record component
      actionLost - the value for the actionLost record component
      gridReveal - the value for the gridReveal record component
      gridFlag - the value for the gridFlag record component
      gridUnflag - the value for the gridUnflag record component
      gameWon - the value for the gameWon record component
      gameLost - the value for the gameLost record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • actionIdle

      public SoundEffectData actionIdle()
      Returns the value of the actionIdle record component.
      Returns:
      the value of the actionIdle record component
    • actionStart

      public SoundEffectData actionStart()
      Returns the value of the actionStart record component.
      Returns:
      the value of the actionStart record component
    • actionAbort

      public SoundEffectData actionAbort()
      Returns the value of the actionAbort record component.
      Returns:
      the value of the actionAbort record component
    • actionWon

      public SoundEffectData actionWon()
      Returns the value of the actionWon record component.
      Returns:
      the value of the actionWon record component
    • actionLost

      public SoundEffectData actionLost()
      Returns the value of the actionLost record component.
      Returns:
      the value of the actionLost record component
    • gridReveal

      public SoundEffectData gridReveal()
      Returns the value of the gridReveal record component.
      Returns:
      the value of the gridReveal record component
    • gridFlag

      public SoundEffectData gridFlag()
      Returns the value of the gridFlag record component.
      Returns:
      the value of the gridFlag record component
    • gridUnflag

      public SoundEffectData gridUnflag()
      Returns the value of the gridUnflag record component.
      Returns:
      the value of the gridUnflag record component
    • gameWon

      public SoundEffectData gameWon()
      Returns the value of the gameWon record component.
      Returns:
      the value of the gameWon record component
    • gameLost

      public SoundEffectData gameLost()
      Returns the value of the gameLost record component.
      Returns:
      the value of the gameLost record component