Interface BasicSpeaker
public interface BasicSpeaker
Represents a basic speaker placed in the world
Obtainable through
the world api
-
Method Summary
Modifier and TypeMethodDescription@NotNull Set<ExtraSpeakerOptions>
Get extra options for the speaker@NotNull Loc
Get the location of the speaker@NotNull Media
getMedia()
Get the media that's being played by this speaker@NotNull Integer
Get the radius of the speaker@NotNull UUID
Get the speaker idGet the type of speaker (spatial audio, or static)boolean
If this speaker is currently directly powered by redstone
-
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
-