public class BungeeViaInjector extends Object implements ViaInjector
Constructor and Description |
---|
BungeeViaInjector() |
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.
|
int |
getServerProtocolVersion()
Get the server protocol version
|
void |
inject()
Inject into the current Platform
|
void |
uninject()
Uninject into the current Platform
|
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 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.