Skip navigation links
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Enums
  • Fields
  • Methods
  • Enum Constants
  • Deprecated Interfaces
    Interface
    Description
    net.kyori.adventure.util.Buildable.Builder
    since 4.10.0, use AbstractBuilder
  • Deprecated Classes
    Class
    Description
    net.kyori.adventure.text.AbstractComponent
    for removal since 4.10.0
  • Deprecated Enums
    Enum
    Description
    net.kyori.adventure.audience.MessageType
    for removal since 4.12.0, use separate methods on Audience for sending player or system messages
  • Deprecated Fields
    Field
    Description
    net.kyori.adventure.bossbar.BossBar.MAX_PERCENT
    for removal since 4.2.0, use BossBar.MAX_PROGRESS
    net.kyori.adventure.bossbar.BossBar.MIN_PERCENT
    for removal since 4.2.0, use BossBar.MIN_PROGRESS
    net.kyori.adventure.text.event.HoverEvent.Action.SHOW_ACHIEVEMENT
    Removed in Vanilla 1.12, but we keep it for backwards compat
  • Deprecated Methods
    Method
    Description
    net.kyori.adventure.audience.Audience.sendMessage(Identified, Component)
    since 4.12.0, the client errors on receiving and can reject identified messages without SignedMessage data, this may be unsupported in the future, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identified, ComponentLike)
    since 4.12.0, the client errors on and can reject identified messages without SignedMessage data, this may be unsupported in the future, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identified, ComponentLike, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal and the client errors on receiving and can reject identified messages without SignedMessage data, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identified, Component, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal and the client errors on receiving and can reject identified messages without SignedMessage data, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identity, Component)
    since 4.12.0, the client errors on receiving and can reject identified messages without SignedMessage data, this may be unsupported in the future, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identity, ComponentLike)
    since 4.12.0, the client errors on and can reject identified messages without SignedMessage data, this may be unsupported in the future, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identity, ComponentLike, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal and the client errors on receiving and can reject identified messages without SignedMessage data, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(Identity, Component, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal and the client errors on receiving and can reject identified messages without SignedMessage data, use Audience.sendMessage(SignedMessage, ChatType.Bound) instead
    net.kyori.adventure.audience.Audience.sendMessage(ComponentLike, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal, use Audience.sendMessage(ComponentLike)
    net.kyori.adventure.audience.Audience.sendMessage(Component, MessageType)
    for removal since 4.12.0, MessageType is deprecated for removal, use Audience.sendMessage(Component) instead
    net.kyori.adventure.audience.ForwardingAudience.sendMessage(Identified, Component, MessageType)
    net.kyori.adventure.audience.ForwardingAudience.sendMessage(Identity, Component, MessageType)
    net.kyori.adventure.audience.ForwardingAudience.Single.audiences()
    this audience only supports forwarding to a single audience
    net.kyori.adventure.audience.ForwardingAudience.Single.sendMessage(Identified, Component, MessageType)
    net.kyori.adventure.audience.ForwardingAudience.Single.sendMessage(Identity, Component, MessageType)
    net.kyori.adventure.bossbar.BossBar.Listener.bossBarPercentChanged(BossBar, float, float)
    for removal since 4.2.0, use BossBar.Listener.bossBarProgressChanged(BossBar, float, float)
    net.kyori.adventure.bossbar.BossBar.percent()
    for removal since 4.2.0, use BossBar.progress()
    net.kyori.adventure.bossbar.BossBar.percent(float)
    for removal since 4.2.0, use BossBar.progress(float)
    net.kyori.adventure.nbt.api.BinaryTagHolder.of(String)
    for removal since 4.10.0, use BinaryTagHolder.binaryTagHolder(String) instead.
    net.kyori.adventure.text.BlockNBTComponent.LocalPos.of(double, double, double)
    for removal since 4.10.0, use BlockNBTComponent.LocalPos.localPos(double, double, double) instead.
    net.kyori.adventure.text.BlockNBTComponent.WorldPos.Coordinate.of(int, BlockNBTComponent.WorldPos.Coordinate.Type)
    for removal since 4.10.0, use BlockNBTComponent.WorldPos.Coordinate.coordinate(int, Coordinate.Type) instead.
    net.kyori.adventure.text.BlockNBTComponent.WorldPos.of(BlockNBTComponent.WorldPos.Coordinate, BlockNBTComponent.WorldPos.Coordinate, BlockNBTComponent.WorldPos.Coordinate)
    for removal since 4.10.0, use BlockNBTComponent.WorldPos.worldPos(WorldPos.Coordinate, WorldPos.Coordinate, WorldPos.Coordinate) instead.
    net.kyori.adventure.text.Component.detectCycle(Component)
    for removal since 4.7.0, with no replacement - this method is not necessary due to the fact Components are immutable
    net.kyori.adventure.text.Component.join(ComponentLike, ComponentLike...)
    for removal since 4.9.0, use Component.join(JoinConfiguration, ComponentLike...) with JoinConfiguration.separator(ComponentLike) instead.
    net.kyori.adventure.text.Component.join(ComponentLike, Iterable<? extends ComponentLike>)
    for removal since 4.9.0, use Component.join(JoinConfiguration, Iterable) with JoinConfiguration.separator(ComponentLike) instead.
    net.kyori.adventure.text.Component.replaceFirstText(String, ComponentLike)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceFirstText(Pattern, Function<TextComponent.Builder, ComponentLike>)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(String, ComponentLike)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(String, ComponentLike, int)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(String, ComponentLike, IntFunction2<PatternReplacementResult>)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(Pattern, Function<TextComponent.Builder, ComponentLike>)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(Pattern, Function<TextComponent.Builder, ComponentLike>, int)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.replaceText(Pattern, Function<TextComponent.Builder, ComponentLike>, IntFunction2<PatternReplacementResult>)
    for removal since 4.2.0, use Component.replaceText(Consumer) or Component.replaceText(TextReplacementConfig) instead.
    net.kyori.adventure.text.Component.score(String, String, String)
    since 4.7.0, not for removal, with no replacement. The value field is no longer supported in 1.16.5.
    net.kyori.adventure.text.event.HoverEvent.showAchievement(String)
    Removed in Vanilla 1.12, but we keep it for backwards compatibility
    net.kyori.adventure.text.event.HoverEvent.ShowEntity.of(Keyed, UUID)
    for removal since 4.14.0, use HoverEvent.ShowEntity.showEntity(Keyed, UUID) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowEntity.of(Keyed, UUID, Component)
    for removal since 4.14.0, use HoverEvent.ShowEntity.showEntity(Keyed, UUID, Component) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowEntity.of(Key, UUID)
    for removal since 4.14.0, use HoverEvent.ShowEntity.showEntity(Key, UUID) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowEntity.of(Key, UUID, Component)
    for removal since 4.14.0, use HoverEvent.ShowEntity.showEntity(Key, UUID, Component) instead.
    net.kyori.adventure.text.event.HoverEvent.showItem(Keyed, int, BinaryTagHolder)
    since Minecraft 1.20.5 and replaced with data components, not scheduled for removal
    net.kyori.adventure.text.event.HoverEvent.showItem(Key, int, BinaryTagHolder)
    net.kyori.adventure.text.event.HoverEvent.ShowItem.nbt()
    since Minecraft 1.20.5 and replaced with data components, not scheduled for removal
    net.kyori.adventure.text.event.HoverEvent.ShowItem.nbt(BinaryTagHolder)
    since Minecraft 1.20.5 and replaced with data components, not scheduled for removal
    net.kyori.adventure.text.event.HoverEvent.ShowItem.of(Keyed, int)
    for removal since 4.14.0, use HoverEvent.ShowItem.showItem(Keyed, int) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowItem.of(Keyed, int, BinaryTagHolder)
    for removal since 4.14.0, use HoverEvent.ShowItem.showItem(Keyed, int, BinaryTagHolder) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowItem.of(Key, int)
    for removal since 4.14.0, use HoverEvent.ShowItem.showItem(Key, int) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowItem.of(Key, int, BinaryTagHolder)
    for removal since 4.14.0, use HoverEvent.ShowItem.showItem(Key, int, BinaryTagHolder) instead.
    net.kyori.adventure.text.event.HoverEvent.ShowItem.showItem(Keyed, int, BinaryTagHolder)
    since Minecraft 1.20.5 and replaced with data components, not scheduled for removal
    net.kyori.adventure.text.event.HoverEvent.ShowItem.showItem(Key, int, BinaryTagHolder)
    since Minecraft 1.20.5 and replaced with data components, not scheduled for removal
    net.kyori.adventure.text.format.NamedTextColor.ofExact(int)
    for removal since 4.10.0, use NamedTextColor.namedColor(int) instead
    net.kyori.adventure.text.format.Style.Merge.of(Style.Merge...)
    for removal since 4.10.0, use Style.Merge.merges(Style.Merge...) instead.
    net.kyori.adventure.text.format.TextDecoration.as(boolean)
    for removal since 4.10.0, use TextDecoration.withState(boolean) instead
    net.kyori.adventure.text.format.TextDecoration.as(TextDecoration.State)
    for removal since 4.10.0, use TextDecoration.withState(State) instead
    net.kyori.adventure.text.ScoreComponent.Builder.value(String)
    since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.
    net.kyori.adventure.text.ScoreComponent.value()
    since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.
    net.kyori.adventure.text.ScoreComponent.value(String)
    since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.
    net.kyori.adventure.text.serializer.ComponentSerializer.deseializeOrNull(R)
    for removal since 4.8.0, use ComponentSerializer.deserializeOrNull(Object) instead.
    net.kyori.adventure.text.TextComponent.ofChildren(ComponentLike...)
    for removal since 4.9.0, use Component.textOfChildren(ComponentLike...) instead
    net.kyori.adventure.text.TranslatableComponent.args()
    for removal since 4.15.0, use TranslatableComponent.arguments() instead.
    net.kyori.adventure.text.TranslatableComponent.args(List<? extends ComponentLike>)
    for removal since 4.15.0, use TranslatableComponent.arguments(List) instead
    net.kyori.adventure.text.TranslatableComponent.args(ComponentLike...)
    for removal since 4.15.0, use TranslatableComponent.arguments(ComponentLike...) instead
    net.kyori.adventure.text.TranslatableComponent.Builder.args(List<? extends ComponentLike>)
    for removal since 4.15.0, use TranslatableComponent.Builder.arguments(List) instead
    net.kyori.adventure.text.TranslatableComponent.Builder.args(Component)
    for removal since 4.15.0, use TranslatableComponent.Builder.arguments(ComponentLike...) instead
    net.kyori.adventure.text.TranslatableComponent.Builder.args(ComponentBuilder<?, ?>)
    for removal since 4.15.0, use TranslatableComponent.Builder.arguments(ComponentLike...) instead
    net.kyori.adventure.text.TranslatableComponent.Builder.args(ComponentBuilder<?, ?>...)
    for removal since 4.15.0, use TranslatableComponent.Builder.arguments(ComponentLike...) instead
    net.kyori.adventure.text.TranslatableComponent.Builder.args(ComponentLike...)
    for removal since 4.15.0, use TranslatableComponent.Builder.arguments(ComponentLike...) instead
    net.kyori.adventure.title.Title.Times.of(Duration, Duration, Duration)
    for removal since 4.10.0, use Title.times()
    net.kyori.adventure.translation.GlobalTranslator.get()
    for removal since 4.10.0, use GlobalTranslator.translator() instead.
    net.kyori.adventure.util.Buildable.configureAndBuild(B, Consumer<? super B>)
    since 4.10.0, use AbstractBuilder.configureAndBuild(AbstractBuilder, Consumer)
    net.kyori.adventure.util.Codec.of(Codec.Decoder<D, E, DX>, Codec.Encoder<D, E, EX>)
    for removal since 4.10.0, use Codec.codec(Codec.Decoder, Codec.Encoder) instead.
    net.kyori.adventure.util.HSVLike.of(float, float, float)
    for removal since 4.10.0, use HSVLike.hsvLike(float, float, float) instead.
    net.kyori.adventure.util.ShadyPines.enumSet(Class<E>, E...)
    for removal since 4.8.0, use MonkeyBars.enumSet(Class, Enum[])
  • Deprecated Enum Constants
    Enum Constant
    Description
    net.kyori.adventure.audience.MessageType.CHAT
    for removal since 4.12.0, use ChatType.CHAT instead
    net.kyori.adventure.audience.MessageType.SYSTEM
    for removal since 4.12.0