public class VelocityViaInjector extends Object implements ViaInjector
| Modifier and Type | Field and Description |
|---|---|
static Method |
getPlayerInfoForwardingMode |
| Constructor and Description |
|---|
VelocityViaInjector() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDecoderName()
Get the name of the decoder for then netty pipeline for this platform.
|
com.google.gson.JsonObject |
getDump()
Get any relevant data for debugging injection issues.
|
String |
getEncoderName()
Get the name of the encoder for then netty pipeline for this platform.
|
static int |
getLowestSupportedProtocolVersion() |
int |
getServerProtocolVersion()
Get the server protocol version
|
void |
inject()
Inject into the current Platform
|
void |
uninject()
Uninject into the current Platform
|
public static Method getPlayerInfoForwardingMode
public void inject()
throws Exception
ViaInjectorinject in interface ViaInjectorException - If there is an error with injectingpublic void uninject()
ViaInjectoruninject in interface ViaInjectorpublic int getServerProtocolVersion()
throws Exception
ViaInjectorgetServerProtocolVersion in interface ViaInjectorException - If there is an error with getting this info, eg. not binded.public static int getLowestSupportedProtocolVersion()
public String getEncoderName()
ViaInjectorgetEncoderName in interface ViaInjectorpublic String getDecoderName()
ViaInjectorgetDecoderName in interface ViaInjectorpublic com.google.gson.JsonObject getDump()
ViaInjectorgetDump in interface ViaInjectorCopyright © 2016–2021. All rights reserved.