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
ViaInjector
inject
in interface ViaInjector
Exception
- If there is an error with injectingpublic void uninject()
ViaInjector
uninject
in interface ViaInjector
public int getServerProtocolVersion() throws Exception
ViaInjector
getServerProtocolVersion
in interface ViaInjector
Exception
- If there is an error with getting this info, eg. not binded.public static int getLowestSupportedProtocolVersion()
public String getEncoderName()
ViaInjector
getEncoderName
in interface ViaInjector
public String getDecoderName()
ViaInjector
getDecoderName
in interface ViaInjector
public com.google.gson.JsonObject getDump()
ViaInjector
getDump
in interface ViaInjector
Copyright © 2016–2021. All rights reserved.