Class RegionMediaOptions
java.lang.Object
com.craftmend.openaudiomc.api.regions.RegionMediaOptions
Represents media options for a region, this is not a full subset of the normal media options
-
Constructor Summary
ConstructorsConstructorDescriptionRegionMediaOptions(boolean loop, int fadeTime, int volume, String source) RegionMediaOptions(String source) RegionMediaOptions(String source, int volume) RegionMediaOptions(String source, int volume, int fadeTime) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintIf the media should be faded in and out (in milliseconds)The source of the mediaintThe volume of the media, 0-100inthashCode()booleanisLoop()If the media should loopvoidsetFadeTime(int fadeTime) If the media should be faded in and out (in milliseconds)voidsetLoop(boolean loop) If the media should loopvoidThe source of the mediavoidsetVolume(int volume) The volume of the media, 0-100toString()
-
Constructor Details
-
RegionMediaOptions
-
RegionMediaOptions
-
RegionMediaOptions
-
RegionMediaOptions
-
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
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
The source of the media -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-