Interface BasicSpeaker
public interface BasicSpeaker
Represents a basic speaker placed in the world
Obtainable through
the world api-
Method Summary
Modifier and TypeMethodDescriptionGet extra options for the speakerGet the location of the speakergetMedia()Get the media that's being played by this speakerGet the radius of the speakerGet the speaker idGet the type of speaker (spatial audio, or static)booleanIf this speaker is currently directly powered by redstonebooleanIf this speaker is a virtual speaker (managed by the API)voidsetVirtual(boolean value)
-
Method Details
-
getLocation
Get the location of the speaker- Returns:
- location
-
getMedia
Get the media that's being played by this speaker- Returns:
- media
-
getSpeakerId
Get the speaker id- Returns:
- id
-
getSpeakerType
SpeakerType getSpeakerType()Get the type of speaker (spatial audio, or static)- Returns:
- speaker type
-
getExtraOptions
Get extra options for the speaker- Returns:
- options
-
getRadius
Get the radius of the speaker- Returns:
- radius
-
isRedstonePowered
boolean isRedstonePowered()If this speaker is currently directly powered by redstone- Returns:
- is powered
-
isVirtual
boolean isVirtual()If this speaker is a virtual speaker (managed by the API)- Returns:
- is virtual
-
setVirtual
void setVirtual(boolean value)
-