public enum PacketInType extends java.lang.Enum<PacketInType>
Modifier and Type | Field and Description |
---|---|
java.lang.Class<? extends WrappedPacket> |
wrapper |
Modifier and Type | Method and Description |
---|---|
void |
fillPacket(java.lang.Object packet,
java.lang.Object... data)
Fills the given packet with the given data
|
java.lang.Object[] |
getPacketData(java.lang.Object packet)
Returns the packet data of a packet
|
static PacketInType |
getType(java.lang.Object packet)
Get the type of an incoming packet
|
static void |
init()
Initializes the PacketInType, DO NOT USE THIS METHOD
|
boolean |
isSupported()
Tells if this packet is supported or not by the current server version.
|
java.lang.Object |
newPacket(java.lang.Object... data)
Creates a new packet of this type and fills its fields with the given data
|
static PacketInType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketInType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
WrappedPacket |
wrap(java.lang.Object nmsPacket)
Get the wrapper of the given NMS packet.
|
public static final PacketInType HandshakingInSetProtocol
public static final PacketInType LoginInEncryptionBegin
public static final PacketInType LoginInStart
public static final PacketInType Abilities
public static final PacketInType Advancements
public static final PacketInType AdvancementTab
public static final PacketInType ArmAnimation
public static final PacketInType AutoRecipe
public static final PacketInType BlockDig
public static final PacketInType BlockPlace
public static final PacketInType BEdit
public static final PacketInType BoatMove
public static final PacketInType Chat
public static final PacketInType ClientCommand
public static final PacketInType CloseWindow
public static final PacketInType CustomPayload
public static final PacketInType EnchantItem
public static final PacketInType EntityAction
public static final PacketInType Flying
public static final PacketInType HeldItemSlot
public static final PacketInType ItemName
public static final PacketInType KeepAlive
public static final PacketInType RecipeDisplayed
public static final PacketInType ResourcePackStatus
public static final PacketInType SetCreativeSlot
public static final PacketInType Settings
public static final PacketInType Spectate
public static final PacketInType SteerVehicle
public static final PacketInType TabComplete
public static final PacketInType TeleportAccept
public static final PacketInType Transaction
public static final PacketInType TrSel
public static final PacketInType UpdateSign
public static final PacketInType UseEntity
public static final PacketInType UseItem
public static final PacketInType VehicleMove
public static final PacketInType WindowClick
public static final PacketInType StatusInPing
public static final PacketInType StatusInStart
public java.lang.Class<? extends WrappedPacket> wrapper
public static PacketInType[] values()
for (PacketInType c : PacketInType.values()) System.out.println(c);
public static PacketInType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PacketInType getType(java.lang.Object packet)
packet
- - The incoming packetpublic static void init()
public void fillPacket(java.lang.Object packet, java.lang.Object... data)
packet
- - The fillable packetdata
- - The filling datapublic java.lang.Object[] getPacketData(java.lang.Object packet)
packet
- - The packetpublic boolean isSupported()
public java.lang.Object newPacket(java.lang.Object... data)
data
- - Data to fill packet fields withpublic WrappedPacket wrap(java.lang.Object nmsPacket)
nmsPacket
- - The NMS packet