public abstract class NMSObject
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NMSObject.Client |
static class |
NMSObject.Server |
static class |
NMSObject.Type |
Constructor and Description |
---|
NMSObject() |
NMSObject(java.lang.Object object) |
NMSObject(java.lang.Object object,
org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
construct(java.lang.Object p,
java.lang.String packet,
java.lang.Object... args) |
static java.lang.Object |
construct(java.lang.String packet,
java.lang.Object... args) |
static java.lang.Object |
construct(java.lang.String packet,
java.lang.Object arg) |
<T> T |
fetch(FieldAccessor<T> field) |
<T> T |
fetch(FieldAccessor<T> field,
java.lang.Object obj) |
static <T> FieldAccessor<T> |
fetchField(java.lang.String className,
java.lang.Class<T> fieldType,
int index) |
static <T> FieldAccessor<T> |
fetchField(java.lang.String className,
java.lang.String fieldType,
int index) |
static <T> FieldAccessor<T> |
fetchFieldByName(java.lang.String className,
java.lang.String name,
java.lang.Class<T> fieldType) |
java.lang.String |
getPacketName() |
void |
process(org.bukkit.entity.Player player,
ProtocolVersion version) |
void |
setPacket(java.lang.String packet,
java.lang.Object... args) |
void |
setPacket(java.lang.String packet,
java.lang.Object arg) |
void |
setPacketArg(java.lang.String packet,
java.lang.Object arg) |
static org.bukkit.inventory.ItemStack |
toBukkitStack(java.lang.Object nmsStack) |
public NMSObject(java.lang.Object object)
public NMSObject()
public NMSObject(java.lang.Object object, org.bukkit.entity.Player player)
public static java.lang.Object construct(java.lang.String packet, java.lang.Object... args)
public static java.lang.Object construct(java.lang.String packet, java.lang.Object arg)
public static java.lang.Object construct(java.lang.Object p, java.lang.String packet, java.lang.Object... args)
public static org.bukkit.inventory.ItemStack toBukkitStack(java.lang.Object nmsStack)
public static <T> FieldAccessor<T> fetchField(java.lang.String className, java.lang.Class<T> fieldType, int index)
public static <T> FieldAccessor<T> fetchFieldByName(java.lang.String className, java.lang.String name, java.lang.Class<T> fieldType)
public static <T> FieldAccessor<T> fetchField(java.lang.String className, java.lang.String fieldType, int index)
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 void setPacketArg(java.lang.String packet, java.lang.Object arg)
public void setPacket(java.lang.String packet, java.lang.Object arg)
public <T> T fetch(FieldAccessor<T> field)
public <T> T fetch(FieldAccessor<T> field, java.lang.Object obj)