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
ConstructorDescriptionRegionMediaOptions
(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 boolean
boolean
int
If the media should be faded in and out (in milliseconds)The source of the mediaint
The volume of the media, 0-100int
hashCode()
boolean
isLoop()
If the media should loopvoid
setFadeTime
(int fadeTime) If the media should be faded in and out (in milliseconds)void
setLoop
(boolean loop) If the media should loopvoid
The source of the mediavoid
setVolume
(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
-