Index
All Classes and Interfaces|All Packages
A
- AdventureCommandSourceStack - Interface in net.kyori.adventure.platform.modcommon
-
An interface applied to
CommandSourceStack
to allow sendingComponents
. - asAdventure(Component) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get an adventure
Component
from a nativeComponent
. - asAdventure(MessageSignature) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns an adventure view of the provided
MessageSignature
. - asAdventure(PlayerChatMessage) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns an adventure
SignedMessage
view of the providedPlayerChatMessage
. - asAdventure(ResourceLocation) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Convert a MC
ResourceLocation
instance to a text Key. - asComponentThrowable(CommandSyntaxException) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Expose a Brigadier CommandSyntaxException's message using the adventure-provided interface for rich-message exceptions.
- asEmitter(Entity) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get an
Entity
's representation as anSound.Emitter
of sounds. - asHoverEvent(UnaryOperator<HoverEvent.ShowEntity>) - Method in interface net.kyori.adventure.platform.modcommon.EntityHoverEventSource
- asHoverEvent(Entity) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns a
HoverEvent
that displays the providedEntity
. - asHoverEvent(ItemStack) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns a
HoverEvent
that displays the providedItemStack
. - asNative(SignedMessage.Signature) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns a native view of the provided
SignedMessage.Signature
. - asNative(Key) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Convert a Kyori
Key
instance to a MC ResourceLocation. - asNative(Component) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get a native
Component
from an adventureComponent
. - asSoundType(SoundEvent) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Returns an adventure
Sound.Type
for the providedSoundEvent
. - audience() - Method in interface net.kyori.adventure.platform.modcommon.AdventureCommandSourceStack
- audience() - Method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences
-
Get an audience for the client's player.
- audience(Iterable<ServerPlayer>) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftServerAudiences
-
Create an audience that will send to every listed player.
- audience(CommandSource) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftServerAudiences
-
Get an audience that will send to the provided
CommandSource
. - audience(CommandSourceStack) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftServerAudiences
-
Get an audience to send to a
CommandSourceStack
.
B
- build() - Method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences.Builder
-
Builds the provider.
- builder() - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences
-
Create a builder for an audience provider that might use custom locales.
- builder(MinecraftServer) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftServerAudiences
-
Create an audience provider for this server with customized settings.
C
- component(CommandContext<?>, String) - Static method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
-
Get the component from the provided context.
- component(ComponentArgumentType.Format) - Static method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
-
Get an argument type for component arguments.
- ComponentArgumentType - Class in net.kyori.adventure.platform.modcommon
-
An argument that takes JSON-format text.
- ComponentArgumentType.Format - Enum Class in net.kyori.adventure.platform.modcommon
-
Supported text formats for registering components.
- componentRenderer(Function<Pointered, T>, ComponentRenderer<T>) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences.Builder
-
Sets the component renderer and partition function for the provider.
- componentRenderer(ComponentRenderer<Pointered>) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences.Builder
-
Sets the component renderer for the provider.
D
- dataComponentValue(DataComponentType<T>, T) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get a wrapped value for a certain data component.
E
- EntityHoverEventSource - Interface in net.kyori.adventure.platform.modcommon
-
An interface providing default implementations of HoverEventSource methods.
- examples() - Method in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
-
Get examples of this format in use.
F
- flattener() - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Return a component flattener that can use game data to resolve extra information about components.
- format() - Method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
-
Get the format used for this argument.
G
- getExamples() - Method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
I
- id() - Method in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
-
Get a unique identifier for this format.
- identified(Player) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get a
Player
identified by their profile'sUUID
. - IdentifiedAtRuntime - Interface in net.kyori.adventure.platform.modcommon
-
Classes extending this interface will have the
IdentifiedAtRuntime.identity()
implementation provided at runtime via Mixin or otherwise. - identity() - Method in interface net.kyori.adventure.platform.modcommon.AdventureCommandSourceStack
- identity() - Method in interface net.kyori.adventure.platform.modcommon.IdentifiedAtRuntime
- identity(GameProfile) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Get an
Identity
representation of aGameProfile
. - INDEX - Static variable in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
J
- json() - Static method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
-
Get the argument type for component arguments in JSON format.
- JSON - Enum constant in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
K
- key() - Static method in class net.kyori.adventure.platform.modcommon.KeyArgumentType
-
Get an argument type instance for
Key
s. - key(CommandContext<?>, String) - Static method in class net.kyori.adventure.platform.modcommon.KeyArgumentType
-
Get a
Key
-typed value from a parsedCommandContext
. - key(ResourceKey<?>) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
- KeyArgumentType - Class in net.kyori.adventure.platform.modcommon
-
An argument that will be decoded as a Key.
- kickIfNotApplied() - Static method in class net.kyori.adventure.platform.modcommon.ModResourcePackCallbacks
-
Kick a resource pack receiver if they do not accept a resource pack.
- kickIfNotApplied(Component) - Static method in class net.kyori.adventure.platform.modcommon.ModResourcePackCallbacks
-
Kick a resource pack receiver if they do not accept a resource pack.
M
- MinecraftAudiences - Interface in net.kyori.adventure.platform.modcommon
-
Common operations in both the client and server environments.
- MinecraftClientAudiences - Interface in net.kyori.adventure.platform.modcommon
-
Access the client's player as an
Audience
. - MinecraftClientAudiences.Builder - Interface in net.kyori.adventure.platform.modcommon
-
Build a
MinecraftClientAudiences
instance. - MinecraftServerAudiences - Interface in net.kyori.adventure.platform.modcommon
-
Provides
Audience
instances for a specific server instance. - MinecraftServerAudiences.Builder - Interface in net.kyori.adventure.platform.modcommon
-
Builder for
MinecraftServerAudiences
with custom attributes. - miniMessage() - Static method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
-
Get the argument type for component arguments in MiniMessage format.
- MINIMESSAGE - Enum constant in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
- ModResourcePackCallbacks - Class in net.kyori.adventure.platform.modcommon
-
Resource pack callbacks for the modded environment.
N
- net.kyori.adventure.platform.modcommon - package net.kyori.adventure.platform.modcommon
-
Implementation of Adventure on Minecraft using various mod loaders.
- nonWrappingSerializer() - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Return a TextSerializer instance that will do deep conversions between Adventure
Components
and MinecraftComponents
.
O
- of() - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences
-
Get the common instance, that will render using the global translation registry.
- of(MinecraftServer) - Static method in interface net.kyori.adventure.platform.modcommon.MinecraftServerAudiences
-
Get the shared audience provider for the server.
P
- parse(StringReader) - Method in class net.kyori.adventure.platform.modcommon.ComponentArgumentType
- parse(StringReader) - Method in class net.kyori.adventure.platform.modcommon.KeyArgumentType
- partition(Function<Pointered, ?>) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftClientAudiences.Builder
-
Set the partition function for the provider.
R
- renderer() - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Active renderer to render components.
S
- sendFailure(Component) - Method in interface net.kyori.adventure.platform.modcommon.AdventureCommandSourceStack
-
Send an error message to the command source.
- sendLazySuccess(Supplier<Component>, boolean) - Method in interface net.kyori.adventure.platform.modcommon.AdventureCommandSourceStack
-
Send a result message to the command source.
- sendSuccess(Component, boolean) - Method in interface net.kyori.adventure.platform.modcommon.AdventureCommandSourceStack
-
Send a result message to the command source.
U
- update(Component, UnaryOperator<Component>) - Method in interface net.kyori.adventure.platform.modcommon.MinecraftAudiences
-
Given an existing native component, convert it into an Adventure component for working with.
V
- valueOf(String) - Static method in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.kyori.adventure.platform.modcommon.ComponentArgumentType.Format
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages