Uses of Class
com.comphenix.protocol.PacketType
Packages that use PacketType
Package
Description
Contains classes for retrieving the main ProtocolMananger object.
-
Uses of PacketType in com.comphenix.protocol
Fields in com.comphenix.protocol declared as PacketTypeModifier and TypeFieldDescriptionstatic PacketTypePacketType.Play.Client.ABILITIESstatic PacketTypePacketType.Play.Server.ABILITIESstatic PacketTypePacketType.Play.Server.ADD_VIBRATION_SIGNALstatic PacketTypePacketType.Play.Client.ADVANCEMENTSstatic PacketTypePacketType.Play.Server.ADVANCEMENTSstatic PacketTypePacketType.Play.Server.ANIMATIONstatic PacketTypePacketType.Play.Client.ARM_ANIMATIONstatic PacketTypePacketType.Play.Server.ATTACH_ENTITYstatic PacketTypePacketType.Play.Client.AUTO_RECIPEstatic PacketTypePacketType.Play.Server.AUTO_RECIPEstatic PacketTypePacketType.Play.Client.B_EDITstatic PacketTypePacketType.Play.Client.BEACONstatic PacketTypePacketType.Play.Server.BEDDeprecated.Removed in 1.14static PacketTypePacketType.Play.Server.BLOCK_ACTIONstatic PacketTypePacketType.Play.Server.BLOCK_BREAKstatic PacketTypePacketType.Play.Server.BLOCK_BREAK_ANIMATIONstatic PacketTypePacketType.Play.Server.BLOCK_CHANGEstatic PacketTypePacketType.Play.Client.BLOCK_DIGstatic PacketTypePacketType.Play.Client.BLOCK_PLACEstatic PacketTypePacketType.Play.Client.BOAT_MOVEstatic PacketTypePacketType.Play.Server.BOSSstatic PacketTypePacketType.Play.Server.CAMERAstatic PacketTypePacketType.Play.Client.CHATstatic PacketTypePacketType.Play.Server.CHATstatic PacketTypePacketType.Play.Server.CLEAR_TITLESstatic PacketTypePacketType.Play.Client.CLIENT_COMMANDstatic PacketTypePacketType.Play.Client.CLOSE_WINDOWstatic PacketTypePacketType.Play.Server.CLOSE_WINDOWstatic PacketTypePacketType.Play.Server.COLLECTstatic PacketTypePacketType.Play.Server.COMBAT_EVENTDeprecated.Removed in 1.17, split into separate packetsstatic PacketTypePacketType.Play.Server.COMMANDSstatic PacketTypePacketType.Play.Server.CRAFT_PROGRESS_BARDeprecated.Renamed toPacketType.Play.Server.WINDOW_DATAstatic PacketTypePacketType.Login.Client.CUSTOM_PAYLOADstatic PacketTypePacketType.Login.Server.CUSTOM_PAYLOADstatic PacketTypePacketType.Play.Client.CUSTOM_PAYLOADstatic PacketTypePacketType.Play.Server.CUSTOM_PAYLOADstatic PacketTypePacketType.Play.Server.CUSTOM_SOUND_EFFECTstatic PacketTypePacketType.Play.Client.DIFFICULTY_CHANGEstatic PacketTypePacketType.Play.Client.DIFFICULTY_LOCKstatic PacketTypePacketType.Login.Server.DISCONNECTstatic PacketTypePacketType.Play.Client.ENCHANT_ITEMstatic PacketTypePacketType.Login.Client.ENCRYPTION_BEGINstatic PacketTypePacketType.Login.Server.ENCRYPTION_BEGINstatic PacketTypePacketType.Play.Server.ENTITYDeprecated.Made abstract in 1.17, no actual packet anymorestatic PacketTypePacketType.Play.Client.ENTITY_ACTIONstatic PacketTypePacketType.Play.Server.ENTITY_DESTROYstatic PacketTypePacketType.Play.Server.ENTITY_EFFECTstatic PacketTypePacketType.Play.Server.ENTITY_EQUIPMENTstatic PacketTypePacketType.Play.Server.ENTITY_HEAD_ROTATIONstatic PacketTypePacketType.Play.Server.ENTITY_LOOKstatic PacketTypePacketType.Play.Server.ENTITY_METADATAstatic PacketTypePacketType.Play.Server.ENTITY_MOVE_LOOKDeprecated.Renamed toPacketType.Play.Server.REL_ENTITY_MOVE_LOOKstatic PacketTypePacketType.Play.Client.ENTITY_NBT_QUERYstatic PacketTypePacketType.Play.Server.ENTITY_SOUNDstatic PacketTypePacketType.Play.Server.ENTITY_STATUSstatic PacketTypePacketType.Play.Server.ENTITY_TELEPORTstatic PacketTypePacketType.Play.Server.ENTITY_VELOCITYstatic PacketTypePacketType.Play.Server.EXPERIENCEstatic PacketTypePacketType.Play.Server.EXPLOSIONstatic PacketTypePacketType.Play.Client.FLYINGDeprecated.Removed in 1.17static PacketTypePacketType.Play.Server.GAME_STATE_CHANGEstatic PacketTypePacketType.Play.Client.GROUNDstatic PacketTypePacketType.Play.Client.HELD_ITEM_SLOTstatic PacketTypePacketType.Play.Server.HELD_ITEM_SLOTstatic PacketTypePacketType.Play.Server.INITIALIZE_BORDERstatic PacketTypePacketType.Play.Client.ITEM_NAMEstatic PacketTypePacketType.Play.Client.JIGSAW_GENERATEstatic PacketTypePacketType.Play.Client.KEEP_ALIVEstatic PacketTypePacketType.Play.Server.KEEP_ALIVEstatic PacketTypePacketType.Play.Server.KICK_DISCONNECTstatic PacketTypePacketType.Play.Server.LIGHT_UPDATEstatic PacketTypePacketType.Play.Server.LOGINstatic PacketTypePacketType.Play.Client.LOOKstatic PacketTypePacketType.Play.Server.LOOK_ATstatic PacketTypePacketType.Play.Server.MAPstatic PacketTypePacketType.Play.Server.MAP_CHUNKstatic PacketTypePacketType.Play.Server.MAP_CHUNK_BULKDeprecated.Removed in 1.9static PacketTypePacketType.Play.Server.MOUNTstatic PacketTypePacketType.Play.Server.MULTI_BLOCK_CHANGEstatic PacketTypePacketType.Play.Server.NAMED_ENTITY_SPAWNstatic PacketTypePacketType.Play.Server.NAMED_SOUND_EFFECTstatic PacketTypePacketType.Play.Server.NBT_QUERYstatic PacketTypePacketType.Play.Server.OPEN_BOOKstatic PacketTypePacketType.Play.Server.OPEN_SIGN_EDITORstatic PacketTypePacketType.Play.Server.OPEN_SIGN_ENTITYDeprecated.Renamed toPacketType.Play.Server.OPEN_SIGN_EDITORstatic PacketTypePacketType.Play.Server.OPEN_WINDOWstatic PacketTypePacketType.Play.Server.OPEN_WINDOW_HORSEstatic PacketTypePacketType.Play.Server.OPEN_WINDOW_MERCHANTstatic PacketTypePacketType.Status.Server.OUT_SERVER_INFODeprecated.Renamed toPacketType.Status.Server.SERVER_INFOstatic PacketTypePacketType.Play.Client.PICK_ITEMstatic PacketTypePacketType.Play.Server.PINGstatic PacketTypePacketType.Status.Client.PINGstatic PacketTypePacketType.Play.Server.PLAYER_COMBAT_ENDstatic PacketTypePacketType.Play.Server.PLAYER_COMBAT_ENTERstatic PacketTypePacketType.Play.Server.PLAYER_COMBAT_KILLstatic PacketTypePacketType.Play.Server.PLAYER_INFOstatic PacketTypePacketType.Play.Server.PLAYER_LIST_HEADER_FOOTERstatic PacketTypePacketType.Play.Client.PONGstatic PacketTypePacketType.Status.Server.PONGstatic PacketTypePacketType.Play.Client.POSITIONstatic PacketTypePacketType.Play.Server.POSITIONstatic PacketTypePacketType.Play.Client.POSITION_LOOKstatic PacketTypePacketType.Play.Client.RECIPE_DISPLAYEDstatic PacketTypePacketType.Play.Client.RECIPE_SETTINGSstatic PacketTypePacketType.Play.Server.RECIPE_UPDATEstatic PacketTypePacketType.Play.Server.RECIPESstatic PacketTypePacketType.Play.Server.REL_ENTITY_MOVEstatic PacketTypePacketType.Play.Server.REL_ENTITY_MOVE_LOOKstatic PacketTypePacketType.Play.Server.REMOVE_ENTITY_EFFECTstatic PacketTypePacketType.Play.Server.RESOURCE_PACK_SENDstatic PacketTypePacketType.Play.Client.RESOURCE_PACK_STATUSstatic PacketTypePacketType.Play.Server.RESPAWNstatic PacketTypePacketType.Play.Server.SCOREBOARD_DISPLAY_OBJECTIVEstatic PacketTypePacketType.Play.Server.SCOREBOARD_OBJECTIVEstatic PacketTypePacketType.Play.Server.SCOREBOARD_SCOREstatic PacketTypePacketType.Play.Server.SCOREBOARD_TEAMstatic PacketTypePacketType.Play.Server.SELECT_ADVANCEMENT_TABstatic PacketTypePacketType.Play.Server.SERVER_DIFFICULTYstatic PacketTypePacketType.Status.Server.SERVER_INFOstatic PacketTypePacketType.Play.Server.SET_ACTION_BAR_TEXTstatic PacketTypePacketType.Play.Server.SET_BORDER_CENTERstatic PacketTypePacketType.Play.Server.SET_BORDER_LERP_SIZEstatic PacketTypePacketType.Play.Server.SET_BORDER_SIZEstatic PacketTypePacketType.Play.Server.SET_BORDER_WARNING_DELAYstatic PacketTypePacketType.Play.Server.SET_BORDER_WARNING_DISTANCEstatic PacketTypePacketType.Play.Client.SET_COMMAND_BLOCKstatic PacketTypePacketType.Play.Client.SET_COMMAND_MINECARTstatic PacketTypePacketType.Login.Server.SET_COMPRESSIONstatic PacketTypePacketType.Play.Server.SET_COMPRESSIONDeprecated.Removed in 1.9static PacketTypePacketType.Play.Server.SET_COOLDOWNstatic PacketTypePacketType.Play.Client.SET_CREATIVE_SLOTstatic PacketTypePacketType.Play.Client.SET_JIGSAWstatic PacketTypePacketType.Handshake.Client.SET_PROTOCOLstatic PacketTypePacketType.Play.Server.SET_SLOTstatic PacketTypePacketType.Play.Server.SET_SUBTITLE_TEXTstatic PacketTypePacketType.Play.Server.SET_TITLE_TEXTstatic PacketTypePacketType.Play.Server.SET_TITLES_ANIMATIONstatic PacketTypePacketType.Play.Client.SETTINGSstatic PacketTypePacketType.Play.Server.SPAWN_ENTITYstatic PacketTypePacketType.Play.Server.SPAWN_ENTITY_EXPERIENCE_ORBstatic PacketTypePacketType.Play.Server.SPAWN_ENTITY_LIVINGstatic PacketTypePacketType.Play.Server.SPAWN_ENTITY_PAINTINGstatic PacketTypePacketType.Play.Server.SPAWN_ENTITY_WEATHERDeprecated.Removed in 1.16static PacketTypePacketType.Play.Server.SPAWN_POSITIONstatic PacketTypePacketType.Play.Client.SPECTATEstatic PacketTypePacketType.Login.Client.STARTstatic PacketTypePacketType.Status.Client.STARTstatic PacketTypePacketType.Play.Server.STATISTICstatic PacketTypePacketType.Play.Server.STATISTICSDeprecated.Renamed toPacketType.Play.Server.STATISTICstatic PacketTypePacketType.Play.Client.STEER_VEHICLEstatic PacketTypePacketType.Play.Server.STOP_SOUNDstatic PacketTypePacketType.Play.Client.STRUCTstatic PacketTypePacketType.Login.Server.SUCCESSstatic PacketTypePacketType.Play.Client.TAB_COMPLETEstatic PacketTypePacketType.Play.Server.TAB_COMPLETEstatic PacketTypePacketType.Play.Server.TAGSstatic PacketTypePacketType.Play.Client.TELEPORT_ACCEPTstatic PacketTypePacketType.Play.Server.TILE_ENTITY_DATAstatic PacketTypePacketType.Play.Client.TILE_NBT_QUERYstatic PacketTypePacketType.Play.Server.TITLEDeprecated.Removed in 1.17, split into separate packetsstatic PacketTypePacketType.Play.Client.TR_SELstatic PacketTypePacketType.Play.Client.TRANSACTIONDeprecated.Removed in 1.17static PacketTypePacketType.Play.Server.TRANSACTIONDeprecated.Removed in 1.17static PacketTypePacketType.Play.Server.UNLOAD_CHUNKstatic PacketTypePacketType.Play.Server.UPDATE_ATTRIBUTESstatic PacketTypePacketType.Play.Server.UPDATE_ENTITY_NBTDeprecated.Removed in 1.9static PacketTypePacketType.Play.Server.UPDATE_HEALTHstatic PacketTypePacketType.Play.Client.UPDATE_SIGNstatic PacketTypePacketType.Play.Server.UPDATE_SIGNDeprecated.Replaced byPacketType.Play.Server.TILE_ENTITY_DATAstatic PacketTypePacketType.Play.Server.UPDATE_TIMEstatic PacketTypePacketType.Play.Server.USE_BEDDeprecated.Renamed toPacketType.Play.Server.BEDstatic PacketTypePacketType.Play.Client.USE_ENTITYstatic PacketTypePacketType.Play.Client.USE_ITEMstatic PacketTypePacketType.Play.Client.VEHICLE_MOVEstatic PacketTypePacketType.Play.Server.VEHICLE_MOVEstatic PacketTypePacketType.Play.Server.VIEW_CENTREstatic PacketTypePacketType.Play.Server.VIEW_DISTANCEstatic PacketTypePacketType.Play.Client.WINDOW_CLICKstatic PacketTypePacketType.Play.Server.WINDOW_DATAstatic PacketTypePacketType.Play.Server.WINDOW_ITEMSstatic PacketTypePacketType.Play.Server.WORLD_BORDERDeprecated.Removed in 1.17, split into separate packetsstatic PacketTypePacketType.Play.Server.WORLD_EVENTstatic PacketTypePacketType.Play.Server.WORLD_PARTICLESFields in com.comphenix.protocol with type parameters of type PacketTypeMethods in com.comphenix.protocol that return PacketTypeModifier and TypeMethodDescriptionPacketType.clone()static PacketTypePacketType.findCurrent(PacketType.Protocol protocol, PacketType.Sender sender, int packetId)Retrieve a packet type from a protocol, sender and packet ID.static PacketTypePacketType.findCurrent(PacketType.Protocol protocol, PacketType.Sender sender, String name)static PacketTypePacketType.findLegacy(int packetId)Deprecated.Legacy IDs haven't functioned properly for some timestatic PacketTypePacketType.findLegacy(int packetId, PacketType.Sender preference)Deprecated.Legacy IDs haven't functioned properly for some timestatic PacketTypeLookup a packet type from a packet class.static PacketTypePacketType.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 PacketTypePacketType.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.Methods in com.comphenix.protocol that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionstatic Collection<PacketType>Retrieve every packet type with the given UPPER_CAMEL_CASE name.CommandFilter.Filter.getRanges()Retrieve a copy of the set of packets this filter applies to.ProtocolManager.getReceivingFilterTypes()Retrieves a immutable set containing the type of the received client packets that will be observed by listeners.AsynchronousManager.getReceivingTypes()Retrieves a immutable set containing the types of the received client packets that will be observed by the asynchronous listeners.ProtocolManager.getSendingFilterTypes()Retrieves a immutable set containing the type of the sent server packets that will be observed by listeners.AsynchronousManager.getSendingTypes()Retrieves a immutable set containing the types of the sent server packets that will be observed by the asynchronous listeners.PacketTypeEnum.iterator()static Iterable<PacketType>PacketType.values()Find every packet type known to the current version of ProtocolLib.PacketTypeEnum.values()Retrieve every registered member.Methods in com.comphenix.protocol with parameters of type PacketTypeModifier and TypeMethodDescriptionintPacketType.compareTo(PacketType other)ProtocolManager.createPacket(PacketType type)Constructs a new encapsulated Minecraft packet with the given ID.ProtocolManager.createPacket(PacketType type, boolean forceDefaults)Constructs a new encapsulated Minecraft packet with the given ID.ProtocolManager.createPacketConstructor(PacketType type, Object... arguments)Construct a packet using the special builtin Minecraft constructors.static PacketTypeEnumPacketType.getObjectEnum(PacketType type)Retrieve the correct object enum from a specific packet type.booleanPacketTypeEnum.hasMember(PacketType member)Determines whether or not the given member has been registered to this enum.booleanPacketTypeEnum.registerMember(PacketType instance, String name)Registers a member if its not present.static voidPacketType.scheduleRegister(PacketType type, String name)Register a particular packet type.Constructor parameters in com.comphenix.protocol with type arguments of type PacketTypeModifierConstructorDescriptionFilter(String name, String predicate, Set<PacketType> packets)Construct a new immutable filter. -
Uses of PacketType in com.comphenix.protocol.async
Methods in com.comphenix.protocol.async that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionAsyncFilterManager.getReceivingTypes()AsyncFilterManager.getSendingTypes() -
Uses of PacketType in com.comphenix.protocol.concurrency
Methods in com.comphenix.protocol.concurrency that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionAbstractConcurrentListenerMultimap.keySet()Retrieve every registered packet type:AbstractConcurrentListenerMultimap.removeListener(TListener listener, ListeningWhitelist whitelist)Removes the given listener from the packet event list.PacketTypeSet.values()Retrieve a view of this packet type set.Methods in com.comphenix.protocol.concurrency with parameters of type PacketTypeModifier and TypeMethodDescriptionvoidPacketTypeSet.addType(PacketType type)Add a particular type to the set.booleanPacketTypeSet.contains(PacketType type)Determine if the given packet type exists in the set.AbstractConcurrentListenerMultimap.getListener(PacketType type)Retrieve the registered listeners, in order from the lowest to the highest priority.voidPacketTypeSet.removeType(PacketType type)Remove a particular type to the set.Method parameters in com.comphenix.protocol.concurrency with type arguments of type PacketTypeModifier and TypeMethodDescriptionvoidPacketTypeSet.addAll(Iterable<? extends PacketType> types)Add the given types to the set of packet types.voidPacketTypeSet.removeAll(Iterable<? extends PacketType> types)Remove the given types from the set.Constructor parameters in com.comphenix.protocol.concurrency with type arguments of type PacketType -
Uses of PacketType in com.comphenix.protocol.events
Methods in com.comphenix.protocol.events that return PacketTypeModifier and TypeMethodDescriptionPacketEvent.getPacketType()Retrieve the packet type.PacketContainer.getType()Retrieve the packet type of this packet.Methods in com.comphenix.protocol.events that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionListeningWhitelist.getTypes()Retrieves a set of the packets that will be observed by the listeners.Methods in com.comphenix.protocol.events with parameters of type PacketTypeModifier and TypeMethodDescriptionprotected abstract DataInputStreamNetworkMarker.addHeader(DataInputStream input, PacketType type)Return the input stream prepended with the packet header.protected abstract ByteBufferNetworkMarker.addHeader(ByteBuffer buffer, PacketType type)Return the byte buffer prepended with the packet header.protected DataInputStreamNetworkMarker.EmptyBufferMarker.addHeader(DataInputStream input, PacketType type)protected ByteBufferNetworkMarker.EmptyBufferMarker.addHeader(ByteBuffer buffer, PacketType type)PacketAdapter.params(org.bukkit.plugin.Plugin plugin, PacketType... packets)Construct a helper object for passing parameters to the packet adapter.ListeningWhitelist.Builder.types(PacketType... types)Set the whitelist of packet types to copy when constructing new whitelists.PacketAdapter.AdapterParameteters.types(PacketType... packets)Set the packet types the listener is looking for.Method parameters in com.comphenix.protocol.events with type arguments of type PacketTypeModifier and TypeMethodDescriptionListeningWhitelist.Builder.types(Collection<PacketType> types)Set the whitelist of packet types to copy when constructing new whitelists.PacketAdapter.AdapterParameteters.types(Set<PacketType> packets)Set the packet types the listener is looking for.Constructors in com.comphenix.protocol.events with parameters of type PacketTypeModifierConstructorDescriptionNetworkMarker(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 parameters in com.comphenix.protocol.events with type arguments of type PacketTypeModifierConstructorDescriptionPacketAdapter(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.PacketAdapter(org.bukkit.plugin.Plugin plugin, Iterable<? extends PacketType> types)Initialize a packet listener with the given parameters. -
Uses of PacketType in com.comphenix.protocol.injector
Methods in com.comphenix.protocol.injector that return PacketTypeModifier and TypeMethodDescriptionListenerInvoker.getPacketType(Object packet)Retrieve the associated type of a packet.PacketFilterManager.getPacketType(Object packet)PacketConstructor.getType()Retrieve the type of the packets this constructor creates.Methods in com.comphenix.protocol.injector that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionPacketFilterManager.getReceivingFilterTypes()PacketFilterManager.getSendingFilterTypes()Methods in com.comphenix.protocol.injector with parameters of type PacketTypeModifier and TypeMethodDescriptionPacketFilterManager.createPacket(PacketType type)PacketFilterManager.createPacket(PacketType type, boolean forceDefaults)PacketFilterManager.createPacketConstructor(PacketType type, Object... arguments)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.booleanPacketFilterManager.isLoginPacket(PacketType type)Determine if a given packet may be sent during login.static ObjectStructureCache.newPacket(PacketType type)Creates an empty Minecraft packet of the given type.PacketConstructor.withPacket(PacketType type, Object[] values)Create a packet constructor that creates packets using the given types. -
Uses of PacketType in com.comphenix.protocol.injector.netty
Methods in com.comphenix.protocol.injector.netty that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionAbstractPacketInjector.getPacketHandlers()AbstractPlayerHandler.getSendingFilters()Methods in com.comphenix.protocol.injector.netty with parameters of type PacketTypeModifier and TypeMethodDescriptionprotected DataInputStreamNettyNetworkMarker.addHeader(DataInputStream input, PacketType type)protected ByteBufferNettyNetworkMarker.addHeader(ByteBuffer buffer, PacketType type)booleanAbstractPacketInjector.addPacketHandler(PacketType type, Set<ListenerOptions> options)voidAbstractPlayerHandler.addPacketHandler(PacketType type, Set<ListenerOptions> options)booleanAbstractPacketInjector.hasPacketHandler(PacketType type)booleanAbstractPacketInjector.removePacketHandler(PacketType type)voidAbstractPlayerHandler.removePacketHandler(PacketType type)Constructors in com.comphenix.protocol.injector.netty with parameters of type PacketTypeModifierConstructorDescriptionWirePacket(PacketType type, byte[] bytes)Constructs a new WirePacket with a given type and contents -
Uses of PacketType in com.comphenix.protocol.injector.packet
Methods in com.comphenix.protocol.injector.packet that return PacketTypeModifier and TypeMethodDescriptionstatic PacketTypePacketRegistry.getPacketType(Class<?> packet)Retrieve the packet type of a given packet.static PacketTypePacketRegistry.getPacketType(Class<?> packet, PacketType.Sender sender)Deprecated.sender no longer has any effectMethods in com.comphenix.protocol.injector.packet that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionstatic Set<PacketType>PacketRegistry.getClientPacketTypes()Retrieve every known and supported server packet type.PacketInjector.getPacketHandlers()Retrieve every intercepted packet type.static Set<PacketType>PacketRegistry.getServerPacketTypes()Retrieve every known and supported server packet type.Methods in com.comphenix.protocol.injector.packet with parameters of type PacketTypeModifier and TypeMethodDescriptionbooleanPacketInjector.addPacketHandler(PacketType type, Set<ListenerOptions> options)Start intercepting packets with the given packet type.static Class<?>PacketRegistry.getPacketClassFromType(PacketType type)Get the packet class associated with a given type.static Class<?>PacketRegistry.getPacketClassFromType(PacketType type, boolean forceVanilla)Deprecated.forceVanilla no longer has any effectbooleanPacketInjector.hasPacketHandler(PacketType type)Determine if packets with the given packet type is being intercepted.static booleanPacketRegistry.isSupported(PacketType type)Determine if the given packet type is supported on the current server.voidPacketRegistry.Register.registerPacket(PacketType type, Class<?> clazz, PacketType.Sender sender)booleanPacketInjector.removePacketHandler(PacketType type)Stop intercepting packets with the given packet type.PacketRegistry.tryGetPacketClass(PacketType type)Method parameters in com.comphenix.protocol.injector.packet with type arguments of type PacketTypeModifier and TypeMethodDescriptionvoidPacketInjector.inputBuffersChanged(Set<PacketType> set)Invoked when input buffers have changed. -
Uses of PacketType in com.comphenix.protocol.injector.player
Methods in com.comphenix.protocol.injector.player that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionPlayerInjectionHandler.getSendingFilters()Retrieve the current list of registered sending listeners.Methods in com.comphenix.protocol.injector.player with parameters of type PacketTypeModifier and TypeMethodDescriptionvoidPlayerInjectionHandler.addPacketHandler(PacketType type, Set<ListenerOptions> options)Add an underlying packet handler of the given type.booleanPlayerInjectionHandler.hasMainThreadListener(PacketType type)Determine if we have packet listeners with the given type that must be executed on the main thread.voidPlayerInjectionHandler.removePacketHandler(PacketType type)Remove an underlying packet handler of this type. -
Uses of PacketType in com.comphenix.protocol.timing
Methods in com.comphenix.protocol.timing that return types with arguments of type PacketTypeModifier and TypeMethodDescriptionTimedTracker.getStatistics()Retrieve an map (indexed by packet type) of all relevant statistics.Methods in com.comphenix.protocol.timing with parameters of type PacketTypeModifier and TypeMethodDescriptionvoidTimedTracker.endTracking(long trackingToken, PacketType type)Stop and record the execution time since the creation of the given tracking token.