Interface BukkitAudiences
-
- All Superinterfaces:
AudienceProvider,java.lang.AutoCloseable
public interface BukkitAudiences extends AudienceProvider
An 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 Sound.EmitterasEmitter(@NotNull Entity entity)Represent an entity as an emitter of sound.static @NotNull BukkitAudiences.Builderbuilder(@NotNull Plugin plugin)Creates an audience provider builder for a plugin.static @NotNull BukkitAudiencescreate(@NotNull Plugin plugin)Creates an audience provider for a plugin.@NotNull Audiencefilter(@NotNull java.util.function.Predicate<CommandSender> filter)Creates an audience based on a filter.@NotNull Audienceplayer(@NotNull Player player)Gets an audience for a player.@NotNull Audiencesender(@NotNull CommandSender sender)Gets an audience for a command sender.-
Methods inherited from interface net.kyori.adventure.platform.AudienceProvider
all, close, console, flattener, permission, permission, player, players, server, world
-
-
-
-
Method Detail
-
create
@NotNull static @NotNull BukkitAudiences create(@NotNull @NotNull 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 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 Sound.Emitter asEmitter(@NotNull @NotNull 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 Audience sender(@NotNull @NotNull CommandSender sender)
Gets an audience for a command sender.- Parameters:
sender- a command sender- Returns:
- an audience
- Since:
- 4.0.0
-
player
@NotNull @NotNull Audience player(@NotNull @NotNull Player player)
Gets an audience for a player.- Parameters:
player- a player- Returns:
- an audience
- Since:
- 4.0.0
-
filter
@NotNull @NotNull Audience filter(@NotNull @NotNull java.util.function.Predicate<CommandSender> filter)
Creates an audience based on a filter.- Parameters:
filter- a filter- Returns:
- an audience
- Since:
- 4.0.0
-
-