Class VelocityProxy

java.lang.Object
net.minestom.server.extras.velocity.VelocityProxy

@Deprecated(forRemoval=true) public final class VelocityProxy extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Support for Velocity modern forwarding.

Can be enabled by simply calling enable(String).

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    enable(String secret)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Enables velocity modern forwarding.
    static Key
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets if velocity modern forwarding is enabled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PLAYER_INFO_CHANNEL

      public static final String PLAYER_INFO_CHANNEL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • VelocityProxy

      public VelocityProxy()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • enable

      public static void enable(String secret)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables velocity modern forwarding.
      Parameters:
      secret - the forwarding secret, be sure to do not hardcode it in your code but to retrieve it from a file or anywhere else safe
    • isEnabled

      public static boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets if velocity modern forwarding is enabled.
      Returns:
      true if velocity modern forwarding is enabled
    • getKey

      public static Key getKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • checkIntegrity

      public static boolean checkIntegrity(NetworkBuffer buffer)
      Deprecated, for removal: This API element is subject to removal in a future version.