Uses of Interface
net.kyori.adventure.key.Key
Packages that use Key
Package
Description
Chat-related data.
A reference composed of a namespace and a path.
Key/Value based pointers to information.
Data for controlling sound playback.
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
Formats which may be applied to components.
Tools for working with Adventure's translation API.
Types related to
ObjectComponent.Internal classes for the Gson serializer.
Translations and translation registries.
-
Uses of Key in net.kyori.adventure.chat
Methods in net.kyori.adventure.chat that return Key -
Uses of Key in net.kyori.adventure.key
Subinterfaces with type arguments of type Key in net.kyori.adventure.keyModifier and TypeInterfaceDescriptioninterfaceAn identifying object used to fetch and/or store unique objects.Methods in net.kyori.adventure.key that return KeyModifier and TypeMethodDescriptiondefault KeyKey.key()static KeyCreates a key.static KeyCreates a key.static KeyCreates a key.static KeyKey.key(Namespaced namespaced, String value) Creates a key.Keyed.key()Gets the key.Methods in net.kyori.adventure.key that return types with arguments of type KeyModifier and TypeMethodDescriptionstatic Comparator<? super Key> Key.comparator()Gets the comparator.Methods in net.kyori.adventure.key with parameters of type KeyModifier and TypeMethodDescriptiondefault intstatic <T> KeyedValue<T> KeyedValue.keyedValue(Key key, T value) Creates a link. -
Uses of Key in net.kyori.adventure.pointer
Methods in net.kyori.adventure.pointer that return KeyMethods in net.kyori.adventure.pointer with parameters of type Key -
Uses of Key in net.kyori.adventure.sound
Methods in net.kyori.adventure.sound that return KeyModifier and TypeMethodDescriptionSound.Type.key()Gets the key.Sound.name()Gets the name.@Nullable KeySoundStop.sound()Gets the sound.Methods in net.kyori.adventure.sound with parameters of type KeyModifier and TypeMethodDescriptionstatic SoundStopStops all sounds namedsound.static SoundStopSoundStop.namedOnSource(Key sound, Sound.Source source) Stops all sounds namednameon sourcesource.static SoundSound.sound(Key name, Sound.Source.Provider source, float volume, float pitch) Creates a new sound.static SoundSound.sound(Key name, Sound.Source source, float volume, float pitch) Creates a new sound.Set the type of this sound. -
Uses of Key in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return KeyModifier and TypeMethodDescriptiondefault @Nullable KeyComponent.font()Gets the font.StorageNBTComponent.storage()Gets the NBT storage's ID.Methods in net.kyori.adventure.text with parameters of type KeyModifier and TypeMethodDescriptiondefault ComponentSets the font.Sets the font of this component.default CSets the NBT storage.Sets the NBT storage.static StorageNBTComponentComponent.storageNBT(String nbtPath, boolean interpret, Key storage) Creates a storage NBT component with a path and an storage ID.static StorageNBTComponentComponent.storageNBT(String nbtPath, boolean interpret, @Nullable ComponentLike separator, Key storage) Creates a storage NBT component with a path and an storage ID.static StorageNBTComponentComponent.storageNBT(String nbtPath, Key storage) Creates a storage NBT component with a path and an storage ID. -
Uses of Key in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event that return KeyModifier and TypeMethodDescriptionDataComponentValueConverterRegistry.Provider.id()An identifier for this provider.HoverEvent.ShowItem.item()Gets the item.HoverEvent.ShowEntity.type()Gets the type.Methods in net.kyori.adventure.text.event that return types with arguments of type KeyModifier and TypeMethodDescriptionHoverEvent.ShowItem.dataComponents()Get the data components used for this item.<V extends DataComponentValue>
Map<Key, V> HoverEvent.ShowItem.dataComponentsAs(Class<V> targetType) Return an unmodifiable map of data components coerced to the target type.DataComponentValueConverterRegistry.knownProviders()Get the id's of all registered conversion providers.Methods in net.kyori.adventure.text.event with parameters of type KeyModifier and TypeMethodDescriptionPerform the actual conversion.static <O extends DataComponentValue>
ODataComponentValueConverterRegistry.convert(Class<O> target, Key key, DataComponentValue in) Try to convert the data component valueinto the provided output type.static ClickEvent<ClickEvent.Payload.Custom> Creates a click event that sends a custom event to the server.static ClickEvent<ClickEvent.Payload.Custom> ClickEvent.custom(Key key, @Nullable BinaryTagHolder nbt) Creates a click event that sends a custom event to the server.static ClickEvent.Payload.CustomCreates a custom payload.static ClickEvent.Payload.CustomClickEvent.Payload.custom(Key key, @Nullable BinaryTagHolder nbt) Creates a custom payload.Sets the item.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Key type, UUID id) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Key type, UUID id, @Nullable Component name) Creates a hover event that show information about an entity on hover.static HoverEvent.ShowEntityHoverEvent.ShowEntity.showEntity(Key type, UUID id) Creates.static HoverEvent.ShowEntityHoverEvent.ShowEntity.showEntity(Key type, UUID id, @Nullable Component name) Creates.static HoverEvent<HoverEvent.ShowItem> Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(Key item, @Range(from=0L,to=2147483647L) int count, @Nullable BinaryTagHolder nbt) Creates a hover event that shows an item on hover.static HoverEvent.ShowItemCreates.static HoverEvent.ShowItemHoverEvent.ShowItem.showItem(Key item, @Range(from=0L,to=2147483647L) int count, @Nullable BinaryTagHolder nbt) Creates.Sets the type.Method parameters in net.kyori.adventure.text.event with type arguments of type KeyModifier and TypeMethodDescriptionstatic <I1,O1> DataComponentValueConverterRegistry.Conversion <I1, O1> DataComponentValueConverterRegistry.Conversion.convert(Class<I1> src, Class<O1> dst, BiFunction<Key, I1, O1> op) Create a new conversion.HoverEvent.ShowItem.dataComponents(Map<Key, DataComponentValue> holder) Set the data components used on this item.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(Keyed item, @Range(from=0L,to=2147483647L) int count, Map<Key, ? extends DataComponentValue> dataComponents) Creates a hover event that shows an item on hover.static HoverEvent.ShowItemHoverEvent.ShowItem.showItem(Keyed item, @Range(from=0L,to=2147483647L) int count, Map<Key, ? extends DataComponentValue> dataComponents) Creates. -
Uses of Key in net.kyori.adventure.text.format
Fields in net.kyori.adventure.text.format declared as KeyMethods in net.kyori.adventure.text.format that return KeyModifier and TypeMethodDescription@Nullable KeyStyle.font()Gets the font.@Nullable KeyStyleGetter.font()Gets the font.Methods in net.kyori.adventure.text.format with parameters of type Key -
Uses of Key in net.kyori.adventure.text.minimessage.translation
Methods in net.kyori.adventure.text.minimessage.translation with parameters of type KeyModifier and TypeMethodDescriptionstatic MiniMessageTranslationStoreCreates a MiniMessage translation store, backed by the default MiniMessage instance.static MiniMessageTranslationStoreMiniMessageTranslationStore.create(Key name, MiniMessage miniMessage) Creates a MiniMessage translation store. -
Uses of Key in net.kyori.adventure.text.object
Fields in net.kyori.adventure.text.object declared as KeyModifier and TypeFieldDescriptionstatic final KeySpriteObjectContents.DEFAULT_ATLASThe default atlas key for sprites, used by vanilla when the atlas is not specified in a serialized object component.Methods in net.kyori.adventure.text.object that return KeyModifier and TypeMethodDescriptionSpriteObjectContents.atlas()Gets the atlas key.SpriteObjectContents.sprite()Gets the sprite key.@Nullable KeyPlayerHeadObjectContents.texture()Optional namespaced ID of the skin texture to use for rendering.Methods in net.kyori.adventure.text.object with parameters of type KeyModifier and TypeMethodDescriptionstatic SpriteObjectContentsCreates a sprite contents with the given sprite and the default atlas.static SpriteObjectContentsCreates a sprite contents with the given atlas and sprite.Sets the optional namespaced ID of the skin texture to use for rendering. -
Uses of Key in net.kyori.adventure.text.serializer.gson.impl
Methods in net.kyori.adventure.text.serializer.gson.impl that return Key -
Uses of Key in net.kyori.adventure.translation
Methods in net.kyori.adventure.translation that return KeyModifier and TypeMethodDescriptionfinal KeyAbstractTranslationStore.name()Translator.name()A key identifying this translation source.Methods in net.kyori.adventure.translation with parameters of type KeyModifier and TypeMethodDescriptionstatic TranslationStore<Component> Creates a new translation store that uses component-based translation.TranslationStore.messageFormat(Key name) Creates a new translation store that uses message-format-based translation.Constructors in net.kyori.adventure.translation with parameters of type KeyModifierConstructorDescriptionprotectedAbstractTranslationStore(Key name) Creates a new abstract translation store with a given name.protectedStringBased(Key name) Creates a new abstract, string-based translation store with a given name.