Class SoundAction

java.lang.Object
net.minecraftforge.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