Class SoundEvent

All Implemented Interfaces:
Cloneable, Iterable<String>, Serializable

public class SoundEvent extends RPEvent
A sound.
Author:
hendrik
  • Constructor Details

    • SoundEvent

      public SoundEvent(String sound, SoundLayer layer)
      Creates a new sound event with an infinite range.
      Parameters:
      sound - Name of sound to play.
      layer - Sound layer (e. g. ambient sound).
    • SoundEvent

      public SoundEvent(SoundID id, SoundLayer layer)
      Creates a new sound event using an ID with an infinite range.
      Parameters:
      id - SoundID to send with event.
      layer - Sound layer (e. g. ambient sound).
    • SoundEvent

      public SoundEvent(String sound, int volume, SoundLayer layer)
      Creates a new sound event with a volume and infinite range.
      Parameters:
      sound - Name of sound to play.
      volume - Volume level.
      layer - Sound layer (e. g. ambient sound).
    • SoundEvent

      public SoundEvent(SoundID id, int volume, SoundLayer layer)
      Creates a new sound event using an ID with a volume and infinite range.
      Parameters:
      id - SoundID to send with event.
      volume - Volume level.
      layer - Sound layer (e. g. ambient sound).
    • SoundEvent

      public SoundEvent(String sound, int radius, int volume, SoundLayer layer)
      Creates a new sound event with specified range and volume.
      Parameters:
      sound - Name of sound to play.
      radius - Radius at which sound can be heard.
      volume - Volume level.
      layer - Sound layer (e. g. ambient sound).
    • SoundEvent

      public SoundEvent(SoundID id, int radius, int volume, SoundLayer layer)
      Creates a new sound event using an ID with specified range and volume.
      Parameters:
      id - SoundID to send with event.
      radius - Radius at which sound can be heard.
      volume - Volume level.
      layer - Sound layer (e. g. ambient sound).
  • Method Details

    • generateRPClass

      public static void generateRPClass()
      Creates the rpclass.