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

Deprecated API

Contents

  • Terminally Deprecated
  • Methods
  • Constructors
  • Enum Constants
  • Annotation Interface Elements
  • Terminally Deprecated Elements
    Element
    Description
    com.velocitypowered.api.event.connection.ConnectionHandshakeEvent(InboundConnection)
    use ConnectionHandshakeEvent(InboundConnection, HandshakeIntent)
  • Deprecated Methods
    Method
    Description
    com.velocitypowered.api.command.CommandManager.register(BrigadierCommand)
    use CommandManager.register(CommandMeta, Command) instead with a plugin specified
    com.velocitypowered.api.command.CommandManager.register(String, Command, String...)
    use CommandManager.register(CommandMeta, Command) instead with a plugin specified
    com.velocitypowered.api.event.EventManager.register(Object, Class<E>, PostOrder, EventHandler<E>)
    use EventManager.register(Object, Class, short, EventHandler) instead
    com.velocitypowered.api.event.player.KickedFromServerEvent.kickedDuringLogin()
    KickedFromServerEvent.kickedDuringServerConnect() has a better name and reflects the actual result
    com.velocitypowered.api.event.player.PlayerChatEvent.setResult(PlayerChatEvent.ChatResult)
    for 1.19.1 and newer, set this as denied will kick users
    com.velocitypowered.api.event.Subscribe.order()
    specify the order using Subscribe.priority() instead
    com.velocitypowered.api.network.ProtocolVersion.getName()
    A protocol may be shared by multiple versions. Use @link{#getVersionIntroducedIn()} or @link{#getVersionsSupportedBy()} to get more accurate version names.
    com.velocitypowered.api.proxy.Player.clearHeaderAndFooter()
    Use Player.clearPlayerListHeaderAndFooter().
    com.velocitypowered.api.proxy.Player.getAppliedResourcePack()
    com.velocitypowered.api.proxy.Player.getPendingResourcePack()
    com.velocitypowered.api.proxy.Player.sendResourcePack(String)
    Use Player.sendResourcePackOffer(ResourcePackInfo) instead
    com.velocitypowered.api.proxy.Player.sendResourcePack(String, byte[])
    Use Player.sendResourcePackOffer(ResourcePackInfo) instead
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int, IdentifiedKey)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int, ChatSession)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int, ChatSession, boolean)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int, ChatSession, boolean, int)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.buildEntry(GameProfile, Component, int, int, ChatSession, boolean, int, boolean)
    Internal usage. Use TabListEntry.Builder instead.
    com.velocitypowered.api.proxy.player.TabList.setHeaderAndFooter(Component, Component)
    Use Audience.sendPlayerListHeaderAndFooter(Component, Component) instead
  • Deprecated Constructors
    Constructor
    Description
    com.velocitypowered.api.event.connection.ConnectionHandshakeEvent(InboundConnection)
    use ConnectionHandshakeEvent(InboundConnection, HandshakeIntent)
    com.velocitypowered.api.event.connection.PreLoginEvent(InboundConnection, String)
    use PreLoginEvent(InboundConnection, String, UUID)
    com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent(Player, PlayerResourcePackStatusEvent.Status)
    Use (Player, UUID, Status, ResourcePackInfo) instead.
    com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent(Player, PlayerResourcePackStatusEvent.Status, ResourcePackInfo)
    Use (Player, UUID, Status, ResourcePackInfo) instead.
  • Deprecated Enum Constants
    Enum Constant
    Description
    com.velocitypowered.api.event.PostOrder.CUSTOM
    No longer required, you only need to specify Subscribe.priority().
  • Deprecated Annotation Interface Elements
    Annotation Interface Element
    Description
    com.velocitypowered.api.event.Subscribe.order()
    specify the order using Subscribe.priority() instead