| Package | Description |
|---|---|
| com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
| com.comphenix.protocol.async | |
| com.comphenix.protocol.concurrency | |
| com.comphenix.protocol.events | |
| com.comphenix.protocol.injector | |
| com.comphenix.protocol.injector.netty | |
| com.comphenix.protocol.injector.packet | |
| com.comphenix.protocol.timing |
| Modifier and Type | Field and Description |
|---|---|
static PacketType |
PacketType.Play.Server.ABILITIES |
static PacketType |
PacketType.Play.Client.ABILITIES |
static PacketType |
PacketType.Play.Server.ANIMATION |
static PacketType |
PacketType.Play.Client.ARM_ANIMATION |
static PacketType |
PacketType.Play.Server.ATTACH_ENTITY |
static PacketType |
PacketType.Play.Server.BED |
static PacketType |
PacketType.Play.Server.BLOCK_ACTION |
static PacketType |
PacketType.Play.Server.BLOCK_BREAK_ANIMATION |
static PacketType |
PacketType.Play.Server.BLOCK_CHANGE |
static PacketType |
PacketType.Play.Client.BLOCK_DIG |
static PacketType |
PacketType.Play.Client.BLOCK_PLACE |
static PacketType |
PacketType.Play.Client.BOAT_MOVE |
static PacketType |
PacketType.Play.Server.BOSS |
static PacketType |
PacketType.Play.Server.CAMERA |
static PacketType |
PacketType.Play.Server.CHAT |
static PacketType |
PacketType.Play.Client.CHAT |
static PacketType |
PacketType.Play.Client.CLIENT_COMMAND |
static PacketType |
PacketType.Play.Server.CLOSE_WINDOW |
static PacketType |
PacketType.Play.Client.CLOSE_WINDOW |
static PacketType |
PacketType.Play.Server.COLLECT |
static PacketType |
PacketType.Play.Server.COMBAT_EVENT |
static PacketType |
PacketType.Play.Server.CRAFT_PROGRESS_BAR
Deprecated.
Renamed to
WINDOW_DATA |
static PacketType |
PacketType.Play.Server.CUSTOM_PAYLOAD |
static PacketType |
PacketType.Play.Client.CUSTOM_PAYLOAD |
static PacketType |
PacketType.Play.Server.CUSTOM_SOUND_EFFECT |
static PacketType |
PacketType.Login.Server.DISCONNECT |
static PacketType |
PacketType.Legacy.Client.DISCONNECT |
static PacketType |
PacketType.Play.Client.ENCHANT_ITEM |
static PacketType |
PacketType.Login.Server.ENCRYPTION_BEGIN |
static PacketType |
PacketType.Login.Client.ENCRYPTION_BEGIN |
static PacketType |
PacketType.Play.Server.ENTITY |
static PacketType |
PacketType.Play.Client.ENTITY_ACTION |
static PacketType |
PacketType.Play.Server.ENTITY_DESTROY |
static PacketType |
PacketType.Play.Server.ENTITY_EFFECT |
static PacketType |
PacketType.Play.Server.ENTITY_EQUIPMENT |
static PacketType |
PacketType.Play.Server.ENTITY_HEAD_ROTATION |
static PacketType |
PacketType.Play.Server.ENTITY_LOOK |
static PacketType |
PacketType.Play.Server.ENTITY_METADATA |
static PacketType |
PacketType.Play.Server.ENTITY_MOVE_LOOK
Deprecated.
Renamed to
REL_ENTITY_MOVE_LOOK |
static PacketType |
PacketType.Play.Server.ENTITY_STATUS |
static PacketType |
PacketType.Play.Server.ENTITY_TELEPORT |
static PacketType |
PacketType.Play.Server.ENTITY_VELOCITY |
static PacketType |
PacketType.Play.Server.EXPERIENCE |
static PacketType |
PacketType.Play.Server.EXPLOSION |
static PacketType |
PacketType.Play.Client.FLYING |
static PacketType |
PacketType.Play.Server.GAME_STATE_CHANGE |
static PacketType |
PacketType.Play.Server.HELD_ITEM_SLOT |
static PacketType |
PacketType.Play.Client.HELD_ITEM_SLOT |
static PacketType |
PacketType.Play.Server.KEEP_ALIVE |
static PacketType |
PacketType.Play.Client.KEEP_ALIVE |
static PacketType |
PacketType.Legacy.Server.KEY_RESPONSE
Removed in Minecraft 1.7.2
|
static PacketType |
PacketType.Play.Server.KICK_DISCONNECT |
static PacketType |
PacketType.Play.Server.LOGIN |
static PacketType |
PacketType.Legacy.Client.LOGIN |
static PacketType |
PacketType.Play.Client.LOOK |
static PacketType |
PacketType.Play.Server.MAP |
static PacketType |
PacketType.Play.Server.MAP_CHUNK |
static PacketType |
PacketType.Play.Server.MAP_CHUNK_BULK
Deprecated.
Removed in 1.9
|
static PacketType |
PacketType.Play.Server.MOUNT |
static PacketType |
PacketType.Play.Server.MULTI_BLOCK_CHANGE |
static PacketType |
PacketType.Play.Server.NAMED_ENTITY_SPAWN |
static PacketType |
PacketType.Play.Server.NAMED_SOUND_EFFECT |
static PacketType |
PacketType.Play.Server.OPEN_SIGN_EDITOR |
static PacketType |
PacketType.Play.Server.OPEN_SIGN_ENTITY
Deprecated.
Renamed to
OPEN_SIGN_EDITOR |
static PacketType |
PacketType.Play.Server.OPEN_WINDOW |
static PacketType |
PacketType.Status.Server.OUT_SERVER_INFO
Deprecated.
Replaced by
SERVER_INFO |
static PacketType |
PacketType.Legacy.Server.PICKUP_SPAWN
Removed in Minecraft 1.4.6.
|
static PacketType |
PacketType.Status.Client.PING |
static PacketType |
PacketType.Legacy.Server.PLAYER_FLYING |
static PacketType |
PacketType.Play.Server.PLAYER_INFO |
static PacketType |
PacketType.Play.Server.PLAYER_LIST_HEADER_FOOTER |
static PacketType |
PacketType.Legacy.Server.PLAYER_POSITION |
static PacketType |
PacketType.Legacy.Server.PLAYER_POSITON_LOOK |
static PacketType |
PacketType.Status.Server.PONG |
static PacketType |
PacketType.Play.Server.POSITION |
static PacketType |
PacketType.Play.Client.POSITION |
static PacketType |
PacketType.Play.Client.POSITION_LOOK |
static PacketType |
PacketType.Play.Server.REL_ENTITY_MOVE |
static PacketType |
PacketType.Play.Server.REL_ENTITY_MOVE_LOOK |
static PacketType |
PacketType.Play.Server.REMOVE_ENTITY_EFFECT |
static PacketType |
PacketType.Play.Server.RESOURCE_PACK_SEND |
static PacketType |
PacketType.Play.Client.RESOURCE_PACK_STATUS |
static PacketType |
PacketType.Play.Server.RESPAWN |
static PacketType |
PacketType.Legacy.Client.RESPAWN |
static PacketType |
PacketType.Play.Server.SCOREBOARD_DISPLAY_OBJECTIVE |
static PacketType |
PacketType.Play.Server.SCOREBOARD_OBJECTIVE |
static PacketType |
PacketType.Play.Server.SCOREBOARD_SCORE |
static PacketType |
PacketType.Play.Server.SCOREBOARD_TEAM |
static PacketType |
PacketType.Play.Server.SERVER_DIFFICULTY |
static PacketType |
PacketType.Status.Server.SERVER_INFO |
static PacketType |
PacketType.Play.Server.SET_COMPRESSION
Deprecated.
Removed in 1.9
|
static PacketType |
PacketType.Login.Server.SET_COMPRESSION |
static PacketType |
PacketType.Play.Server.SET_COOLDOWN |
static PacketType |
PacketType.Play.Client.SET_CREATIVE_SLOT |
static PacketType |
PacketType.Legacy.Server.SET_CREATIVE_SLOT
Removed in Minecraft 1.7.2
|
static PacketType |
PacketType.Handshake.Client.SET_PROTOCOL |
static PacketType |
PacketType.Play.Server.SET_SLOT |
static PacketType |
PacketType.Play.Client.SETTINGS |
static PacketType |
PacketType.Play.Server.SPAWN_ENTITY |
static PacketType |
PacketType.Play.Server.SPAWN_ENTITY_EXPERIENCE_ORB |
static PacketType |
PacketType.Play.Server.SPAWN_ENTITY_LIVING |
static PacketType |
PacketType.Play.Server.SPAWN_ENTITY_PAINTING |
static PacketType |
PacketType.Play.Server.SPAWN_ENTITY_WEATHER |
static PacketType |
PacketType.Play.Server.SPAWN_POSITION |
static PacketType |
PacketType.Play.Client.SPECTATE |
static PacketType |
PacketType.Status.Client.START |
static PacketType |
PacketType.Login.Client.START |
static PacketType |
PacketType.Play.Server.STATISTIC |
static PacketType |
PacketType.Play.Server.STATISTICS
Deprecated.
Renamed to
STATISTIC |
static PacketType |
PacketType.Play.Client.STEER_VEHICLE |
static PacketType |
PacketType.Login.Server.SUCCESS |
static PacketType |
PacketType.Play.Server.TAB_COMPLETE |
static PacketType |
PacketType.Play.Client.TAB_COMPLETE |
static PacketType |
PacketType.Play.Client.TELEPORT_ACCEPT |
static PacketType |
PacketType.Play.Server.TILE_ENTITY_DATA |
static PacketType |
PacketType.Play.Server.TITLE |
static PacketType |
PacketType.Play.Server.TRANSACTION |
static PacketType |
PacketType.Play.Client.TRANSACTION |
static PacketType |
PacketType.Play.Server.UNLOAD_CHUNK |
static PacketType |
PacketType.Play.Server.UPDATE_ATTRIBUTES |
static PacketType |
PacketType.Play.Server.UPDATE_ENTITY_NBT
Deprecated.
Removed in 1.9
|
static PacketType |
PacketType.Play.Server.UPDATE_HEALTH |
static PacketType |
PacketType.Play.Server.UPDATE_SIGN
Deprecated.
Replaced by
TILE_ENTITY_DATA |
static PacketType |
PacketType.Play.Client.UPDATE_SIGN |
static PacketType |
PacketType.Play.Server.UPDATE_TIME |
static PacketType |
PacketType.Play.Client.USE_ENTITY |
static PacketType |
PacketType.Play.Client.USE_ITEM |
static PacketType |
PacketType.Play.Server.VEHICLE_MOVE |
static PacketType |
PacketType.Play.Client.VEHICLE_MOVE |
static PacketType |
PacketType.Play.Client.WINDOW_CLICK |
static PacketType |
PacketType.Play.Server.WINDOW_DATA |
static PacketType |
PacketType.Play.Server.WINDOW_ITEMS |
static PacketType |
PacketType.Play.Server.WORLD_BORDER |
static PacketType |
PacketType.Play.Server.WORLD_EVENT |
static PacketType |
PacketType.Play.Server.WORLD_PARTICLES |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
PacketType.clone() |
static PacketType |
PacketType.findCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId)
Deprecated.
IDs are no longer reliable
|
static PacketType |
PacketType.findCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
String name) |
static PacketType |
PacketType.findLegacy(int packetId)
Retrieve a packet type from a legacy (1.6.4 and below) packet ID.
|
static PacketType |
PacketType.findLegacy(int packetId,
PacketType.Sender preference)
Retrieve a packet type from a legacy (1.6.4 and below) packet ID.
|
static PacketType |
PacketType.fromClass(Class<?> packetClass)
Lookup a packet type from a packet class.
|
static PacketType |
PacketType.fromCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId,
Class<?> packetClass)
Retrieve a packet type from a protocol, sender, ID, and class for 1.8+
|
static PacketType |
PacketType.fromID(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId,
Class<?> packetClass)
Retrieve a packet type from a protocol, sender and packet ID, for pre-1.8.
|
static PacketType |
PacketType.fromLegacy(int id,
PacketType.Sender sender)
Retrieve a packet type from a legacy ID.
|
static PacketType |
PacketType.newLegacy(PacketType.Sender sender,
int legacyId)
Construct a legacy packet type.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<PacketType> |
PacketType.fromName(String name)
Retrieve every packet type with the given UPPER_CAMEL_CASE name.
|
static ObjectEnum<PacketType> |
PacketType.getObjectEnum(PacketType type)
Retrieve the correct object enum from a specific packet type.
|
Set<PacketType> |
ProtocolManager.getReceivingFilterTypes()
Retrieves a immutable set containing the type of the received client packets that will be observed by listeners.
|
Set<PacketType> |
AsynchronousManager.getReceivingTypes()
Retrieves a immutable set containing the types of the received client packets that will be
observed by the asynchronous listeners.
|
Set<PacketType> |
ProtocolManager.getSendingFilterTypes()
Retrieves a immutable set containing the type of the sent server packets that will be observed by listeners.
|
Set<PacketType> |
AsynchronousManager.getSendingTypes()
Retrieves a immutable set containing the types of the sent server packets that will be
observed by the asynchronous listeners.
|
static Iterable<PacketType> |
PacketType.values()
Find every packet type known to the current version of ProtocolLib.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PacketType.compareTo(PacketType other) |
PacketContainer |
ProtocolManager.createPacket(PacketType type)
Constructs a new encapsulated Minecraft packet with the given ID.
|
PacketContainer |
ProtocolManager.createPacket(PacketType type,
boolean forceDefaults)
Constructs a new encapsulated Minecraft packet with the given ID.
|
PacketConstructor |
ProtocolManager.createPacketConstructor(PacketType type,
Object... arguments)
Construct a packet using the special builtin Minecraft constructors.
|
static ObjectEnum<PacketType> |
PacketType.getObjectEnum(PacketType type)
Retrieve the correct object enum from a specific packet type.
|
static Future<Boolean> |
PacketType.scheduleRegister(PacketType type,
String name)
Register a particular packet type.
|
| Modifier and Type | Method and Description |
|---|---|
Set<PacketType> |
AsyncFilterManager.getReceivingTypes() |
Set<PacketType> |
AsyncFilterManager.getSendingTypes() |
| Modifier and Type | Method and Description |
|---|---|
Set<PacketType> |
AbstractConcurrentListenerMultimap.keySet()
Retrieve every registered packet type:
|
List<PacketType> |
AbstractConcurrentListenerMultimap.removeListener(TListener listener,
ListeningWhitelist whitelist)
Removes the given listener from the packet event list.
|
Set<PacketType> |
PacketTypeSet.values()
Retrieve a view of this packet type set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PacketTypeSet.addType(PacketType type)
Add a particular type to the set.
|
boolean |
PacketTypeSet.contains(PacketType type)
Determine if the given packet type exists in the set.
|
Collection<PrioritizedListener<TListener>> |
AbstractConcurrentListenerMultimap.getListener(PacketType type)
Retrieve the registered listeners, in order from the lowest to the highest priority.
|
protected Class<?> |
PacketTypeSet.getPacketClass(PacketType type)
Retrieve the packet class associated with a particular type.
|
void |
PacketTypeSet.removeType(PacketType type)
Remove a particular type to the set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PacketTypeSet.addAll(Iterable<? extends PacketType> types)
Add the given types to the set of packet types.
|
void |
PacketTypeSet.removeAll(Iterable<? extends PacketType> types)
Remove the given types from the set.
|
| Constructor and Description |
|---|
PacketTypeSet(Collection<? extends PacketType> values) |
| Modifier and Type | Field and Description |
|---|---|
protected PacketType |
PacketContainer.type |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
PacketEvent.getPacketType()
Retrieve the packet type.
|
PacketType |
PacketContainer.getType()
Retrieve the packet type of this packet.
|
| Modifier and Type | Method and Description |
|---|---|
Set<PacketType> |
ListeningWhitelist.getTypes()
Retrieves a set of the packets that will be observed by the listeners.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ByteBuffer |
NetworkMarker.addHeader(ByteBuffer buffer,
PacketType type)
Return the byte buffer prepended with the packet header.
|
protected ByteBuffer |
NetworkMarker.EmptyBufferMarker.addHeader(ByteBuffer buffer,
PacketType type) |
protected abstract DataInputStream |
NetworkMarker.addHeader(DataInputStream input,
PacketType type)
Return the input stream prepended with the packet header.
|
protected DataInputStream |
NetworkMarker.EmptyBufferMarker.addHeader(DataInputStream input,
PacketType type) |
static PacketAdapter.AdapterParameteters |
PacketAdapter.params(org.bukkit.plugin.Plugin plugin,
PacketType... packets)
Construct a helper object for passing parameters to the packet adapter.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.types(PacketType... packets)
Set the packet types the listener is looking for.
|
ListeningWhitelist.Builder |
ListeningWhitelist.Builder.types(PacketType... types)
Set the whitelist of packet types to copy when constructing new whitelists.
|
| Modifier and Type | Method and Description |
|---|---|
ListeningWhitelist.Builder |
ListeningWhitelist.Builder.types(Collection<PacketType> types)
Set the whitelist of packet types to copy when constructing new whitelists.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.types(Set<PacketType> packets)
Set the packet types the listener is looking for.
|
| Constructor and Description |
|---|
NetworkMarker(ConnectionSide side,
byte[] inputBuffer,
PacketType type)
Construct a new network marker.
|
NetworkMarker(ConnectionSide side,
ByteBuffer inputBuffer,
PacketType type)
Construct a new network marker.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ListenerPriority listenerPriority,
PacketType... types)
Initialize a packet listener with the given parameters.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
PacketType... types)
Initialize a packet listener with the given parameters.
|
PacketContainer(PacketType type)
Creates a packet container for a new packet.
|
PacketContainer(PacketType type,
Object handle)
Creates a packet container for an existing packet.
|
PacketContainer(PacketType type,
Object handle,
StructureModifier<Object> structure)
Creates a packet container for an existing packet.
|
| Constructor and Description |
|---|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
Iterable<? extends PacketType> types)
Initialize a packet listener with the given parameters.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ListenerPriority listenerPriority,
Iterable<? extends PacketType> types)
Initialize a packet listener with the given parameters.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ListenerPriority listenerPriority,
Iterable<? extends PacketType> types,
ListenerOptions... options)
Initialize a packet listener with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
PacketType |
PacketConstructor.getType()
Retrieve the type of the packets this constructor creates.
|
| Modifier and Type | Method and Description |
|---|---|
static StructureModifier<Object> |
StructureCache.getStructure(PacketType type)
Retrieve a cached structure modifier for the given packet type.
|
static StructureModifier<Object> |
StructureCache.getStructure(PacketType type,
boolean compile)
Retrieve a cached structure modifier for the given packet type.
|
static Object |
StructureCache.newPacket(PacketType type)
Creates an empty Minecraft packet of the given type.
|
PacketConstructor |
PacketConstructor.withPacket(PacketType type,
Object[] values)
Create a packet constructor that creates packets using the given types.
|
| Modifier and Type | Field and Description |
|---|---|
Set<PacketType> |
ProtocolRegistry.Register.clientPackets |
Set<PacketType> |
ProtocolRegistry.Register.serverPackets |
com.google.common.collect.BiMap<PacketType,Class<?>> |
ProtocolRegistry.Register.typeToClass |
| Modifier and Type | Method and Description |
|---|---|
Set<PacketType> |
ProtocolRegistry.getClientPackets()
Retrieve every known client packet, from every protocol.
|
Map<Class<?>,PacketType> |
ProtocolRegistry.getPacketClassLookup()
Retrieve an immutable view of the class to packet type lookup.
|
Map<PacketType,Class<?>> |
ProtocolRegistry.getPacketTypeLookup()
Retrieve an immutable view of the packet type lookup.
|
Set<PacketType> |
ProtocolRegistry.getServerPackets()
Retrieve every known server packet, from every protocol.
|
| Constructor and Description |
|---|
WirePacket(PacketType type,
byte[] bytes)
Constructs a new WirePacket with a given type and contents
|
| Modifier and Type | Method and Description |
|---|---|
static PacketType |
PacketRegistry.getPacketType(Class<?> packet)
Retrieve the packet type of a given packet.
|
static PacketType |
PacketRegistry.getPacketType(Class<?> packet,
PacketType.Sender sender)
Retrieve the packet type of a given packet.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<PacketType> |
PacketRegistry.getClientPacketTypes()
Retrieve every known and supported server packet type.
|
static Map<Class,PacketType> |
PacketRegistry.getPacketToType()
Retrieve a map of every packet class to the respective packet type.
|
static Set<PacketType> |
PacketRegistry.getServerPacketTypes()
Retrieve every known and supported server packet type.
|
static Set<PacketType> |
PacketRegistry.toPacketTypes(Set<Integer> ids)
Convert a set of legacy packet IDs to packet types.
|
static Set<PacketType> |
PacketRegistry.toPacketTypes(Set<Integer> ids,
PacketType.Sender preference)
Convert a set of legacy packet IDs to packet types.
|
| Modifier and Type | Method and Description |
|---|---|
static Class |
PacketRegistry.getPacketClassFromType(PacketType type)
Retrieves the correct packet class from a given type.
|
static Class |
PacketRegistry.getPacketClassFromType(PacketType type,
boolean forceVanilla)
Retrieves the correct packet class from a given type.
|
static boolean |
PacketRegistry.isSupported(PacketType type)
Determine if the given packet type is supported on the current server.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<Integer> |
PacketRegistry.toLegacy(Set<PacketType> types)
Convert a set of packet types to a set of integers based on the legacy packet ID.
|
| Modifier and Type | Method and Description |
|---|---|
Map<PacketType,StatisticsStream> |
TimedTracker.getStatistics()
Retrieve an map (indexed by packet type) of all relevant statistics.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TimedTracker.endTracking(long trackingToken,
PacketType type)
Stop and record the execution time since the creation of the given tracking token.
|
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.