Class RegionMediaOptions

java.lang.Object
com.craftmend.openaudiomc.api.regions.RegionMediaOptions

public class RegionMediaOptions extends Object
Represents media options for a region, this is not a full subset of the normal media options
  • Constructor Details

    • RegionMediaOptions

      public RegionMediaOptions(String source)
    • RegionMediaOptions

      public RegionMediaOptions(String source, int volume)
    • RegionMediaOptions

      public RegionMediaOptions(String source, int volume, int fadeTime)
    • RegionMediaOptions

      public RegionMediaOptions(boolean loop, int fadeTime, int volume, String source)
    • RegionMediaOptions

      public RegionMediaOptions()
  • Method Details

    • isLoop

      public boolean isLoop()
      If the media should loop
    • getFadeTime

      public int getFadeTime()
      If the media should be faded in and out (in milliseconds)
    • getVolume

      public int getVolume()
      The volume of the media, 0-100
    • getSource

      public String getSource()
      The source of the media
    • setLoop

      public void setLoop(boolean loop)
      If the media should loop
    • setFadeTime

      public void setFadeTime(int fadeTime)
      If the media should be faded in and out (in milliseconds)
    • setVolume

      public void setVolume(int volume)
      The volume of the media, 0-100
    • setSource

      public void setSource(String source)
      The source of the media
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object