Class SoundAction

java.lang.Object
net.neoforged.neoforge.common.SoundAction

public final class SoundAction extends Object
Defines an action which produces a sound.
  • Field Details

  • Constructor Details

    • SoundAction

      private SoundAction(String name)
  • Method Details

    • get

      public static SoundAction get(String name)
      Gets or creates a new SoundAction for the given name.
      Parameters:
      name - the name of the action
      Returns:
      the existing SoundAction, or a new one if not present
    • name

      public String name()
      Returns the name of the action.
      Returns:
      the name of the action
    • toString

      public String toString()
      Overrides:
      toString in class Object