Interface MinecraftClientAudiences
- All Superinterfaces:
MinecraftAudiences
Access the client's player as an
Audience.- Since:
- 6.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull Audienceaudience()Get an audience for the client's player.static @NotNull MinecraftClientAudiences.Builderbuilder()Create a builder for an audience provider that might use custom locales.static @NotNull MinecraftClientAudiencesof()Get the common instance, that will render using the global translation registry.Methods inherited from interface MinecraftAudiences
asAdventure, asAdventure, asComponentThrowable, asNative, flattener, nonWrappingSerializer, renderer, update
-
Method Details
-
of
Get the common instance, that will render using the global translation registry.- Returns:
- the audience provider
- Since:
- 6.0.0
-
builder
Create a builder for an audience provider that might use custom locales.- Returns:
- the builder
- Since:
- 6.0.0
-
audience
Get an audience for the client's player.When not in-game, most operations will no-op
- Returns:
- player audience
- Since:
- 6.0.0
-