public interface ViaInjector
Modifier and Type | Method and Description |
---|---|
default java.lang.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.
|
default java.lang.String |
getEncoderName()
Get the name of the encoder for then netty pipeline for this platform.
|
int |
getServerProtocolVersion()
Returns the server protocol version.
|
default it.unimi.dsi.fastutil.ints.IntSortedSet |
getServerProtocolVersions()
Returns the supported server protocol versions.
|
void |
inject()
Inject into the current Platform
|
default boolean |
lateProtocolVersionSetting()
Returns true if the protocol version cannot be used in the early init.
|
void |
uninject()
Uninject into the current Platform
|
void inject() throws java.lang.Exception
java.lang.Exception
- If there is an error with injectingvoid uninject() throws java.lang.Exception
java.lang.Exception
- If there is an error with uninjectingdefault boolean lateProtocolVersionSetting()
int getServerProtocolVersion() throws java.lang.Exception
java.lang.Exception
- if there is an error with getting this info, eg. not bindedViaPlatform.isProxy()
default it.unimi.dsi.fastutil.ints.IntSortedSet getServerProtocolVersions() throws java.lang.Exception
java.lang.Exception
- if there is an error with getting this info, eg. not bindedViaPlatform.isProxy()
default java.lang.String getEncoderName()
default java.lang.String getDecoderName()
com.google.gson.JsonObject getDump()