public abstract class VersionAdapter<R> extends Object
Modifier and Type | Field and Description |
---|---|
protected NamedVersion |
namedVersion |
protected Version |
version |
Constructor and Description |
---|
VersionAdapter() |
VersionAdapter(int protocolVersion) |
VersionAdapter(Version version) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
get(Class<?> clazz,
Object obj,
String name) |
protected <T> T |
getFromMethod(Class<?> clazz,
Object obj,
String methodName) |
NamedVersion |
getNamedVersion() |
abstract AbstractChannel |
getPlayerChannel(R p) |
Version |
getVersion() |
void |
queuePacket(Player p,
NPacket packet) |
void |
queuePacket(R p,
io.netty.buffer.ByteBuf buf) |
void |
sendPacket(Player p,
NPacket packet) |
void |
sendPacket(R p,
io.netty.buffer.ByteBuf buf) |
protected Version version
protected NamedVersion namedVersion
public VersionAdapter()
public VersionAdapter(int protocolVersion)
public VersionAdapter(Version version)
public Version getVersion()
public NamedVersion getNamedVersion()
public abstract AbstractChannel getPlayerChannel(R p)
public void sendPacket(R p, io.netty.buffer.ByteBuf buf)
public void queuePacket(R p, io.netty.buffer.ByteBuf buf)