public abstract class Packet
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Packet.Client |
static class |
Packet.Server |
static class |
Packet.Type |
Constructor and Description |
---|
Packet(java.lang.Object packet) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
construct(java.lang.String packet,
java.lang.Object... args) |
<T> T |
fetch(FieldAccessor<T> field) |
static <T> FieldAccessor<T> |
fetchField(java.lang.String className,
java.lang.Class<T> fieldType,
int index) |
java.lang.String |
getPacketName() |
static boolean |
isLook(java.lang.String type) |
static boolean |
isPosition(java.lang.String type) |
static boolean |
isPositionLook(java.lang.String type) |
void |
process(org.bukkit.entity.Player player,
ProtocolVersion version) |
void |
setPacket(java.lang.String packet,
java.lang.Object... args) |
public static java.lang.Object construct(java.lang.String packet, java.lang.Object... args)
public static <T> FieldAccessor<T> fetchField(java.lang.String className, java.lang.Class<T> fieldType, int index)
public static boolean isPositionLook(java.lang.String type)
public static boolean isPosition(java.lang.String type)
public static boolean isLook(java.lang.String type)
public java.lang.String getPacketName()
public void process(org.bukkit.entity.Player player, ProtocolVersion version)
public void setPacket(java.lang.String packet, java.lang.Object... args)
public <T> T fetch(FieldAccessor<T> field)