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.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
Note that this was Packets.Server.ENTITY_LOCATION_ACTION.
|
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.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.CRAFT_PROGRESS_BAR |
static PacketType |
PacketType.Play.Server.CUSTOM_PAYLOAD |
static PacketType |
PacketType.Play.Client.CUSTOM_PAYLOAD |
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 |
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
Note that this was Packets.Server.BED.
|
static PacketType |
PacketType.Play.Server.HELD_ITEM_SLOT |
static PacketType |
PacketType.Play.Client.HELD_ITEM_SLOT |
static PacketType |
PacketType.Status.Client.IN_PING |
static PacketType |
PacketType.Status.Client.IN_START |
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 |
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_ENTITY |
static PacketType |
PacketType.Play.Server.OPEN_WINDOW |
static PacketType |
PacketType.Status.Server.OUT_PING |
static PacketType |
PacketType.Status.Server.OUT_SERVER_INFO |
static PacketType |
PacketType.Legacy.Server.PICKUP_SPAWN
Removed in Minecraft 1.4.6.
|
static PacketType |
PacketType.Legacy.Server.PLAYER_FLYING |
static PacketType |
PacketType.Play.Server.PLAYER_INFO |
static PacketType |
PacketType.Legacy.Server.PLAYER_POSITION |
static PacketType |
PacketType.Legacy.Server.PLAYER_POSITON_LOOK |
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.REMOVE_ENTITY_EFFECT |
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.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
Legacy name: HANDSHAKE.
|
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.Login.Client.START |
static PacketType |
PacketType.Play.Server.STATISTICS |
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.Server.TILE_ENTITY_DATA |
static PacketType |
PacketType.Play.Server.TRANSACTION |
static PacketType |
PacketType.Play.Client.TRANSACTION |
static PacketType |
PacketType.Play.Server.UPDATE_ATTRIBUTES |
static PacketType |
PacketType.Play.Server.UPDATE_HEALTH |
static PacketType |
PacketType.Play.Server.UPDATE_SIGN |
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.WINDOW_CLICK |
static PacketType |
PacketType.Play.Server.WINDOW_ITEMS |
static PacketType |
PacketType.Play.Server.WORLD_EVENT |
static PacketType |
PacketType.Play.Server.WORLD_PARTICLES |
Modifier and Type | Method and Description |
---|---|
static PacketType |
PacketType.findCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId)
Retrieve a packet type from a protocol, sender and packet ID.
|
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(java.lang.Class<?> packetClass)
Lookup a packet type from a packet class.
|
static PacketType |
PacketType.fromCurrent(PacketType.Protocol protocol,
PacketType.Sender sender,
int packetId,
int legacyId)
Retrieve a packet type from a protocol, sender and packet ID.
|
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 java.util.Collection<PacketType> |
PacketType.fromName(java.lang.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.
|
java.util.Set<PacketType> |
CommandFilter.Filter.getRanges()
Retrieve a copy of the set of packets this filter applies to.
|
java.util.Set<PacketType> |
ProtocolManager.getReceivingFilterTypes()
Retrieves a immutable set containing the type of the received client packets that will be observed by listeners.
|
java.util.Set<PacketType> |
AsynchronousManager.getReceivingTypes()
Retrieves a immutable set containing the types of the received client packets that will be
observed by the asynchronous listeners.
|
java.util.Set<PacketType> |
ProtocolManager.getSendingFilterTypes()
Retrieves a immutable set containing the type of the sent server packets that will be observed by listeners.
|
java.util.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 java.lang.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,
java.lang.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 java.util.concurrent.Future<java.lang.Boolean> |
PacketType.scheduleRegister(PacketType type,
java.lang.String name)
Register a particular packet type.
|
Constructor and Description |
---|
CommandFilter.Filter(java.lang.String name,
java.lang.String predicate,
java.util.Set<PacketType> packets)
Construct a new immutable filter.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<PacketType> |
AsyncFilterManager.getReceivingTypes() |
java.util.Set<PacketType> |
AsyncFilterManager.getSendingTypes() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<PacketType> |
AbstractConcurrentListenerMultimap.keySet()
Retrieve every registered packet type:
|
java.util.List<PacketType> |
AbstractConcurrentListenerMultimap.removeListener(TListener listener,
ListeningWhitelist whitelist)
Removes the given listener from the packet event list.
|
java.util.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.
|
java.util.Collection<PrioritizedListener<TListener>> |
AbstractConcurrentListenerMultimap.getListener(PacketType type)
Retrieve the registered listeners, in order from the lowest to the highest priority.
|
protected java.lang.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(java.lang.Iterable<? extends PacketType> types)
Add the given types to the set of packet types.
|
void |
PacketTypeSet.removeAll(java.lang.Iterable<? extends PacketType> types)
Remove the given types from the set.
|
Constructor and Description |
---|
PacketTypeSet(java.util.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 |
---|---|
java.util.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 java.nio.ByteBuffer |
NetworkMarker.addHeader(java.nio.ByteBuffer buffer,
PacketType type)
Return the byte buffer prepended with the packet header.
|
protected java.nio.ByteBuffer |
NetworkMarker.EmptyBufferMarker.addHeader(java.nio.ByteBuffer buffer,
PacketType type) |
protected abstract java.io.DataInputStream |
NetworkMarker.addHeader(java.io.DataInputStream input,
PacketType type)
Return the input stream prepended with the packet header.
|
protected java.io.DataInputStream |
NetworkMarker.EmptyBufferMarker.addHeader(java.io.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(java.util.Collection<PacketType> types)
Set the whitelist of packet types to copy when constructing new whitelists.
|
PacketAdapter.AdapterParameteters |
PacketAdapter.AdapterParameteters.types(java.util.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,
java.nio.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,
java.lang.Object handle)
Creates a packet container for an existing packet.
|
PacketContainer(PacketType type,
java.lang.Object handle,
StructureModifier<java.lang.Object> structure)
Creates a packet container for an existing packet.
|
Constructor and Description |
---|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
java.lang.Iterable<? extends PacketType> types)
Initialize a packet listener with the given parameters.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ListenerPriority listenerPriority,
java.lang.Iterable<? extends PacketType> types)
Initialize a packet listener with the given parameters.
|
PacketAdapter(org.bukkit.plugin.Plugin plugin,
ListenerPriority listenerPriority,
java.lang.Iterable<? extends PacketType> types,
ListenerOptions... options)
Initialize a packet listener with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
PacketType |
ListenerInvoker.getPacketType(java.lang.Object packet)
Retrieve the associated type of a packet.
|
PacketType |
PacketFilterManager.getPacketType(java.lang.Object packet) |
PacketType |
PacketConstructor.getType()
Retrieve the type of the packets this constructor creates.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<PacketType> |
DelayedPacketManager.getReceivingFilterTypes() |
java.util.Set<PacketType> |
PacketFilterManager.getReceivingFilterTypes() |
java.util.Set<PacketType> |
DelayedPacketManager.getSendingFilterTypes() |
java.util.Set<PacketType> |
PacketFilterManager.getSendingFilterTypes() |
Modifier and Type | Method and Description |
---|---|
PacketContainer |
DelayedPacketManager.createPacket(PacketType type) |
PacketContainer |
PacketFilterManager.createPacket(PacketType type) |
PacketContainer |
DelayedPacketManager.createPacket(PacketType type,
boolean forceDefaults) |
PacketContainer |
PacketFilterManager.createPacket(PacketType type,
boolean forceDefaults) |
PacketConstructor |
DelayedPacketManager.createPacketConstructor(PacketType type,
java.lang.Object... arguments) |
PacketConstructor |
PacketFilterManager.createPacketConstructor(PacketType type,
java.lang.Object... arguments) |
static StructureModifier<java.lang.Object> |
StructureCache.getStructure(PacketType type)
Retrieve a cached structure modifier for the given packet type.
|
static StructureModifier<java.lang.Object> |
StructureCache.getStructure(PacketType type,
boolean compile)
Retrieve a cached structure modifier for the given packet type.
|
static java.lang.Object |
StructureCache.newPacket(PacketType type)
Creates an empty Minecraft packet of the given type.
|
PacketConstructor |
PacketConstructor.withPacket(PacketType type,
java.lang.Object[] values)
Create a packet constructor that creates packets using the given types.
|
Modifier and Type | Method and Description |
---|---|
java.util.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.
|