Interface BukkitAudiences
-
- All Superinterfaces:
net.kyori.adventure.platform.AudienceProvider,AutoCloseable
public interface BukkitAudiences extends net.kyori.adventure.platform.AudienceProviderAn audience provider forBukkit.- Since:
- 4.0.0
- See Also:
AudienceProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBukkitAudiences.BuilderA builder forBukkitAudiences.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static @NotNull net.kyori.adventure.sound.Sound.EmitterasEmitter(@NotNull org.bukkit.entity.Entity entity)Represent an entity as an emitter of sound.static @NotNull BukkitAudiences.Builderbuilder(@NotNull org.bukkit.plugin.Plugin plugin)Creates an audience provider builder for a plugin.static @NotNull BukkitAudiencescreate(@NotNull org.bukkit.plugin.Plugin plugin)Creates an audience provider for a plugin.@NotNull net.kyori.adventure.audience.Audiencefilter(@NotNull Predicate<org.bukkit.command.CommandSender> filter)Creates an audience based on a filter.@NotNull net.kyori.adventure.audience.Audienceplayer(@NotNull org.bukkit.entity.Player player)Gets an audience for a player.@NotNull net.kyori.adventure.audience.Audiencesender(@NotNull org.bukkit.command.CommandSender sender)Gets an audience for a command sender.
-
-
-
Method Detail
-
create
@NotNull static @NotNull BukkitAudiences create(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
Creates an audience provider for a plugin.There will only be one provider for each plugin.
- Parameters:
plugin- a plugin- Returns:
- an audience provider
- Since:
- 4.0.0
-
builder
@NotNull static @NotNull BukkitAudiences.Builder builder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
Creates an audience provider builder for a plugin.There will only be one provider for each plugin.
- Parameters:
plugin- a plugin- Returns:
- an audience provider
- Since:
- 4.0.0
-
asEmitter
static @NotNull net.kyori.adventure.sound.Sound.Emitter asEmitter(@NotNull @NotNull org.bukkit.entity.Entity entity)Represent an entity as an emitter of sound.- Parameters:
entity- the entity to represent- Returns:
- an emitter
- Since:
- 4.0.0
-
sender
@NotNull @NotNull net.kyori.adventure.audience.Audience sender(@NotNull @NotNull org.bukkit.command.CommandSender sender)Gets an audience for a command sender.- Parameters:
sender- a command sender- Returns:
- an audience
- Since:
- 4.0.0
-
player
@NotNull @NotNull net.kyori.adventure.audience.Audience player(@NotNull @NotNull org.bukkit.entity.Player player)Gets an audience for a player.- Parameters:
player- a player- Returns:
- an audience
- Since:
- 4.0.0
-
filter
@NotNull @NotNull net.kyori.adventure.audience.Audience filter(@NotNull @NotNull Predicate<org.bukkit.command.CommandSender> filter)Creates an audience based on a filter.- Parameters:
filter- a filter- Returns:
- an audience
- Since:
- 4.0.0
-
-