Class VelocityProxy

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

public final class VelocityProxy
extends java.lang.Object
Support for Velocity modern forwarding.

Can be enabled by simply calling enable(String).

  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String PLAYER_INFO_CHANNEL  
  • Constructor Summary

    Constructors 
    Constructor Description
    VelocityProxy()  
  • Method Summary

    Modifier and Type Method Description
    static boolean checkIntegrity​(BinaryReader reader)  
    static void enable​(java.lang.String secret)
    Enables velocity modern forwarding.
    static boolean isEnabled()
    Gets if velocity modern forwarding is enabled.
    static java.net.InetAddress readAddress​(BinaryReader reader)  
    static PlayerSkin readSkin​(BinaryReader reader)  

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • enable

      public static void enable​(@NotNull java.lang.String secret)
      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()
      Gets if velocity modern forwarding is enabled.
      Returns:
      true if velocity modern forwarding is enabled
    • checkIntegrity

      public static boolean checkIntegrity​(@NotNull BinaryReader reader)
    • readAddress

      public static java.net.InetAddress readAddress​(@NotNull BinaryReader reader)
    • readSkin

      public static PlayerSkin readSkin​(@NotNull BinaryReader reader)