Uses of Interface
net.minecraft.network.protocol.Packet
Packages that use Packet
Package
Description
-
Uses of Packet in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as PacketModifier and TypeFieldDescriptionprivate final Packet<? extends ServerboundPacketListener>
ClientCommonPacketListenerImpl.DeferredPacket.packet
The field for thepacket
record component.Methods in net.minecraft.client.multiplayer that return PacketModifier and TypeMethodDescriptionPacket<? extends ServerboundPacketListener>
ClientCommonPacketListenerImpl.DeferredPacket.packet()
Returns the value of thepacket
record component.Methods in net.minecraft.client.multiplayer with parameters of type PacketModifier and TypeMethodDescriptionvoid
void
ClientLevel.sendPacketToServer
(Packet<?> p_104734_) private void
ClientCommonPacketListenerImpl.sendWhen
(Packet<? extends ServerboundPacketListener> p_296259_, BooleanSupplier p_296086_, Duration p_294812_) Constructors in net.minecraft.client.multiplayer with parameters of type PacketModifierConstructorDescription(package private)
DeferredPacket
(Packet<? extends ServerboundPacketListener> packet, BooleanSupplier sendCondition, long expirationTime) Creates an instance of aDeferredPacket
record class. -
Uses of Packet in net.minecraft.client.multiplayer.prediction
Methods in net.minecraft.client.multiplayer.prediction that return Packet -
Uses of Packet in net.minecraft.network
Fields in net.minecraft.network with type parameters of type PacketModifier and TypeFieldDescription(package private) final it.unimi.dsi.fastutil.objects.Object2IntMap<Class<? extends Packet<? super T>>>
ConnectionProtocol.PacketSet.classToId
private final List<BiFunction<FriendlyByteBuf,
io.netty.channel.ChannelHandlerContext, ? extends Packet<? super T>>> ConnectionProtocol.PacketSet.contextualIdToDeserializer
ConnectionProtocol.PacketSet.extraClasses
private final List<Function<FriendlyByteBuf,
? extends Packet<? super T>>> ConnectionProtocol.PacketSet.idToDeserializer
Deprecated.Methods in net.minecraft.network with type parameters of type PacketModifier and TypeMethodDescription<P extends Packet<? super T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.addContextualPacket
(Class<P> p_178331_, BiFunction<FriendlyByteBuf, io.netty.channel.ChannelHandlerContext, P> readerBuilder) <P extends Packet<? super T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.addPacket
(Class<P> p_178331_, Function<FriendlyByteBuf, P> p_178332_) Methods in net.minecraft.network that return PacketModifier and TypeMethodDescriptionPacket<?>
ConnectionProtocol.CodecData.createPacket
(int p_294972_, FriendlyByteBuf p_296217_) Deprecated.UseConnectionProtocol.CodecData.createPacket(int, FriendlyByteBuf, io.netty.channel.ChannelHandlerContext)
instead, which provides the channel context for creating custom packet payloads.Packet<?>
ConnectionProtocol.CodecData.createPacket
(int p_294972_, FriendlyByteBuf p_296217_, io.netty.channel.ChannelHandlerContext p_130535_) Creates a new packet from the discriminator and the buffer.Packet<?>
ConnectionProtocol.PacketSet.createPacket
(int p_178328_, FriendlyByteBuf p_178329_) Deprecated.UseConnectionProtocol.PacketSet.createPacket(int, FriendlyByteBuf, io.netty.channel.ChannelHandlerContext)
instead, which provides the channel context for creating custom packet payloads.Packet<?>
ConnectionProtocol.PacketSet.createPacket
(int p_178328_, FriendlyByteBuf p_178329_, io.netty.channel.ChannelHandlerContext p_130535_) Creates a new packet from the given discriminator and buffer.default Packet<?>
PacketSendListener.onFailure()
Methods in net.minecraft.network that return types with arguments of type PacketModifier and TypeMethodDescriptionConnectionProtocol.getPacketsByIds
(PacketFlow p_195621_) ConnectionProtocol.CodecData.packetsByIds()
Methods in net.minecraft.network with parameters of type PacketModifier and TypeMethodDescriptionprotected void
Connection.channelRead0
(io.netty.channel.ChannelHandlerContext p_129487_, Packet<?> p_129488_) protected void
PacketBundlePacker.decode
(io.netty.channel.ChannelHandlerContext p_265208_, Packet<?> p_265182_, List<Object> p_265368_) protected void
PacketFlowValidator.decode
(io.netty.channel.ChannelHandlerContext p_294271_, Packet<?> p_296315_, List<Object> p_294768_) private void
Connection.doSendPacket
(Packet<?> p_243260_, PacketSendListener p_243290_, boolean p_294125_) protected void
PacketBundleUnpacker.encode
(io.netty.channel.ChannelHandlerContext p_265691_, Packet<?> p_265038_, List<Object> p_265735_) protected void
PacketEncoder.encode
(io.netty.channel.ChannelHandlerContext p_130545_, Packet<?> p_130546_, io.netty.buffer.ByteBuf p_130547_) protected void
PacketFlowValidator.encode
(io.netty.channel.ChannelHandlerContext p_296253_, Packet<?> p_296139_, List<Object> p_295975_) private static <T extends PacketListener>
voidConnection.genericsFtw
(Packet<T> p_129518_, PacketListener p_129519_) boolean
ConnectionProtocol.CodecData.isValidPacketType
(Packet<?> p_294142_) int
void
void
Connection.send
(Packet<?> p_243248_, PacketSendListener p_243316_) void
Connection.send
(Packet<?> p_295839_, PacketSendListener p_294866_, boolean p_294265_) private void
Connection.sendPacket
(Packet<?> p_129521_, PacketSendListener p_243246_, boolean p_294510_) default boolean
PacketListener.shouldHandleMessage
(Packet<?> p_295210_) static void
ProtocolSwapHandler.swapProtocolIfNeeded
(io.netty.util.Attribute<ConnectionProtocol.CodecData<?>> p_295842_, Packet<?> p_294980_) private static void
PacketFlowValidator.validatePacket
(io.netty.channel.ChannelHandlerContext p_294940_, Packet<?> p_294901_, List<Object> p_296334_, io.netty.util.AttributeKey<ConnectionProtocol.CodecData<?>> p_296035_) Method parameters in net.minecraft.network with type arguments of type PacketModifier and TypeMethodDescriptionstatic PacketSendListener
PacketSendListener.exceptionallySend
(Supplier<Packet<?>> p_243289_) <P extends BundlePacket<T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.withBundlePacket
(Class<P> p_265034_, Function<Iterable<Packet<? super T>>, P> p_265591_) -
Uses of Packet in net.minecraft.network.protocol
Classes in net.minecraft.network.protocol that implement PacketModifier and TypeClassDescriptionclass
BundleDelimiterPacket<T extends PacketListener>
class
BundlePacket<T extends PacketListener>
Fields in net.minecraft.network.protocol with type parameters of type PacketMethods in net.minecraft.network.protocol that return PacketMethods in net.minecraft.network.protocol that return types with arguments of type PacketMethods in net.minecraft.network.protocol with parameters of type PacketModifier and TypeMethodDescriptionPacket<?>
static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread
(Packet<T> p_131360_, T p_131361_, ServerLevel p_131362_) static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread
(Packet<T> p_131364_, T p_131365_, BlockableEventLoop<?> p_131366_) BundlerInfo.startPacketBundling
(Packet<?> p_265162_) void
BundlerInfo.unbundlePacket
(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Deprecated.UseBundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.default void
BundlerInfo.unbundlePacket
(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet.Method parameters in net.minecraft.network.protocol with type arguments of type PacketModifier and TypeMethodDescriptionstatic <T extends PacketListener,
P extends BundlePacket<T>>
BundlerInfoBundlerInfo.createForPacket
(Class<P> p_265438_, Function<Iterable<Packet<? super T>>, P> p_265627_, BundleDelimiterPacket<T> p_265373_) void
BundlerInfo.unbundlePacket
(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Deprecated.UseBundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.default void
BundlerInfo.unbundlePacket
(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet.Constructor parameters in net.minecraft.network.protocol with type arguments of type Packet -
Uses of Packet in net.minecraft.network.protocol.common
Classes in net.minecraft.network.protocol.common that implement PacketModifier and TypeClassDescriptionfinal record
class
class
class
final record
final record
class
final record
final record
class
class
final record
-
Uses of Packet in net.minecraft.network.protocol.configuration
Classes in net.minecraft.network.protocol.configuration that implement PacketModifier and TypeClassDescriptionfinal record
final record
final record
final record
-
Uses of Packet in net.minecraft.network.protocol.game
Classes in net.minecraft.network.protocol.game that implement PacketModifier and TypeClassDescriptionclass
class
class
class
final record
class
class
class
class
class
class
class
final record
final record
final record
class
class
class
class
class
class
class
class
final record
final record
final record
final record
class
class
final record
class
class
final record
class
class
class
class
class
final record
class
class
class
static class
static class
static class
class
class
class
class
class
class
final record
class
class
class
final record
class
class
class
class
class
class
final record
final record
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
final record
class
class
class
class
class
class
class
class
final record
final record
class
class
class
class
class
class
final record
class
final record
class
class
class
class
final record
final record
class
class
class
class
class
class
class
final record
final record
final record
final record
final record
class
class
final record
class
class
class
final record
class
class
class
class
class
class
static class
static class
static class
static class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Constructor parameters in net.minecraft.network.protocol.game with type arguments of type PacketModifierConstructorDescriptionClientboundBundlePacket
(Iterable<Packet<? super ClientGamePacketListener>> p_265231_) -
Uses of Packet in net.minecraft.network.protocol.handshake
Classes in net.minecraft.network.protocol.handshake that implement Packet -
Uses of Packet in net.minecraft.network.protocol.login
Classes in net.minecraft.network.protocol.login that implement PacketModifier and TypeClassDescriptionfinal record
class
class
class
class
final record
final record
class
final record
-
Uses of Packet in net.minecraft.network.protocol.status
Classes in net.minecraft.network.protocol.status that implement PacketModifier and TypeClassDescriptionclass
final record
class
class
-
Uses of Packet in net.minecraft.server
Methods in net.minecraft.server that return types with arguments of type PacketModifier and TypeMethodDescriptionServerScoreboard.getStartTrackingPackets
(Objective p_136230_) ServerScoreboard.getStopTrackingPackets
(Objective p_136234_) -
Uses of Packet in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type PacketModifier and TypeMethodDescriptionprivate static void
ServerPackCommand.sendToAllConnections
(CommandSourceStack p_314494_, Packet<?> p_314523_) Method parameters in net.minecraft.server.commands with type arguments of type PacketModifier and TypeMethodDescriptionprivate static int
TitleCommand.showTitle
(CommandSourceStack p_142781_, Collection<ServerPlayer> p_142782_, Component p_142783_, String p_142784_, Function<Component, Packet<?>> p_142785_) -
Uses of Packet in net.minecraft.server.level
Fields in net.minecraft.server.level with type parameters of type PacketMethods in net.minecraft.server.level with parameters of type PacketModifier and TypeMethodDescriptionprivate void
ChunkHolder.broadcast
(List<ServerPlayer> p_288998_, Packet<?> p_289013_) void
void
void
protected void
ChunkMap.broadcastAndSend
(Entity p_140334_, Packet<?> p_140335_) void
ChunkMap.TrackedEntity.broadcastAndSend
(Packet<?> p_140500_) void
ServerChunkCache.broadcastAndSend
(Entity p_8395_, Packet<?> p_8396_) private void
ServerEntity.broadcastAndSend
(Packet<?> p_8539_) private boolean
ServerLevel.sendParticles
(ServerPlayer p_8637_, boolean p_8638_, double p_8639_, double p_8640_, double p_8641_, Packet<?> p_8642_) Constructor parameters in net.minecraft.server.level with type arguments of type PacketModifierConstructorDescriptionServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) -
Uses of Packet in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type PacketModifier and TypeMethodDescriptionvoid
void
ServerCommonPacketListenerImpl.send
(Packet<?> p_295099_, PacketSendListener p_296321_) void
boolean
ServerGamePacketListenerImpl.shouldHandleMessage
(Packet<?> p_295183_) Method parameters in net.minecraft.server.network with type arguments of type Packet -
Uses of Packet in net.minecraft.server.network.config
Method parameters in net.minecraft.server.network.config with type arguments of type Packet -
Uses of Packet in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type PacketModifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(Player p_11242_, double p_11243_, double p_11244_, double p_11245_, double p_11246_, ResourceKey<Level> p_11247_, Packet<?> p_11248_) void
PlayerList.broadcastAll
(Packet<?> p_11269_) void
PlayerList.broadcastAll
(Packet<?> p_11271_, ResourceKey<Level> p_11272_) -
Uses of Packet in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return PacketModifier and TypeMethodDescriptionEntity.getAddEntityPacket()
ExperienceOrb.getAddEntityPacket()
Marker.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss that return Packet -
Uses of Packet in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return PacketModifier and TypeMethodDescriptionItemFrame.getAddEntityPacket()
LeashFenceKnotEntity.getAddEntityPacket()
Painting.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item that return Packet -
Uses of Packet in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden that return Packet -
Uses of Packet in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return PacketModifier and TypeMethodDescriptionAbstractHurtingProjectile.getAddEntityPacket()
FishingHook.getAddEntityPacket()
Projectile.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.item
Methods in net.minecraft.world.item that return PacketModifier and TypeMethodDescriptionPacket<?>
ComplexItem.getUpdatePacket
(ItemStack p_40744_, Level p_40745_, Player p_40746_) Packet<?>
MapItem.getUpdatePacket
(ItemStack p_42876_, Level p_42877_, Player p_42878_) -
Uses of Packet in net.minecraft.world.level
Methods in net.minecraft.world.level with parameters of type Packet -
Uses of Packet in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return Packet -
Uses of Packet in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps that return PacketModifier and TypeMethodDescriptionPacket<?>
MapItemSavedData.getUpdatePacket
(int p_164797_, Player p_164798_) (package private) Packet<?>
MapItemSavedData.HoldingPlayer.nextUpdatePacket
(int p_164816_) -
Uses of Packet in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type PacketModifier and TypeMethodDescriptionvoid
Sends a packet to the server.void
Sends a packet to the client which this listener is attached to.void
IServerCommonPacketListenerExtension.send
(Packet<?> packet, PacketSendListener packetSendListener) Sends a packet to the client which this listener is attached to. -
Uses of Packet in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type PacketModifier and TypeMethodDescriptionvoid
void
FakePlayer.FakePlayerNetHandler.send
(Packet<?> packet, @Nullable PacketSendListener sendListener) -
Uses of Packet in net.neoforged.neoforge.common.world
Methods in net.neoforged.neoforge.common.world that return PacketModifier and TypeMethodDescriptionPacket<?>
LevelChunkAuxiliaryLightManager.sendLightDataTo
(ClientboundLevelChunkWithLightPacket chunkPacket) -
Uses of Packet in net.neoforged.neoforge.debug.block
Methods in net.neoforged.neoforge.debug.block that return Packet -
Uses of Packet in net.neoforged.neoforge.entity
Methods in net.neoforged.neoforge.entity that return Packet -
Uses of Packet in net.neoforged.neoforge.network
Fields in net.neoforged.neoforge.network with type parameters of type PacketModifier and TypeFieldDescriptionprivate final BiFunction<PacketDistributor<T>,
T, Consumer<Packet<?>>> PacketDistributor.functor
PacketDistributor.PacketTarget.packetConsumer
Methods in net.neoforged.neoforge.network that return types with arguments of type PacketModifier and TypeMethodDescriptionPacketDistributor.clientToServer()
PacketDistributor.playerConsumer
(ServerPlayer entityPlayerMP) PacketDistributor.playerListAll()
PacketDistributor.playerListDimConsumer
(ResourceKey<Level> dimensionType) PacketDistributor.playerListPointConsumer
(PacketDistributor.TargetPoint targetPoint) PacketDistributor.trackingChunk
(LevelChunk chunkPos) PacketDistributor.trackingEntity
(Entity entity) PacketDistributor.trackingEntityAndSelf
(Entity entity) Methods in net.neoforged.neoforge.network with parameters of type PacketConstructor parameters in net.neoforged.neoforge.network with type arguments of type PacketModifierConstructorDescriptionPacketDistributor
(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor, PacketFlow flow) PacketDistributor
(Function<PacketDistributor<T>, Consumer<Packet<?>>> functor, PacketFlow flow) (package private)
PacketTarget
(Consumer<Packet<?>> packetConsumer, PacketDistributor<?> distributor) -
Uses of Packet in net.neoforged.neoforge.network.bundle
Fields in net.neoforged.neoforge.network.bundle with type parameters of type PacketMethods in net.neoforged.neoforge.network.bundle that return types with arguments of type PacketMethods in net.neoforged.neoforge.network.bundle with parameters of type PacketModifier and TypeMethodDescriptionMethod parameters in net.neoforged.neoforge.network.bundle with type arguments of type PacketConstructor parameters in net.neoforged.neoforge.network.bundle with type arguments of type Packet -
Uses of Packet in net.neoforged.neoforge.network.configuration
Method parameters in net.neoforged.neoforge.network.configuration with type arguments of type Packet -
Uses of Packet in net.neoforged.neoforge.network.filters
Fields in net.neoforged.neoforge.network.filters with type parameters of type PacketModifier and TypeFieldDescriptionVanillaPacketFilter.handlers
VanillaPacketFilter.handlers
VanillaPacketFilter.handlers
Methods in net.neoforged.neoforge.network.filters with type parameters of type PacketModifier and TypeMethodDescriptionprotected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.Methods in net.neoforged.neoforge.network.filters that return PacketModifier and TypeMethodDescriptionprivate static Packet<?>
GenericPacketSplitter.createPacket
(PacketFlow flow, byte[] payload) Methods in net.neoforged.neoforge.network.filters that return types with arguments of type PacketModifier and TypeMethodDescriptionprotected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.Methods in net.neoforged.neoforge.network.filters with parameters of type PacketModifier and TypeMethodDescriptionprotected void
GenericPacketSplitter.encode
(io.netty.channel.ChannelHandlerContext ctx, Packet<?> packet, List<Object> out) protected void
VanillaPacketFilter.encode
(io.netty.channel.ChannelHandlerContext ctx, Packet<?> msg, List<Object> out) Method parameters in net.neoforged.neoforge.network.filters with type arguments of type PacketModifier and TypeMethodDescriptionprotected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.Constructor parameters in net.neoforged.neoforge.network.filters with type arguments of type PacketModifierConstructorDescriptionprotected
VanillaPacketFilter
(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) protected
VanillaPacketFilter
(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) protected
VanillaPacketFilter
(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) -
Uses of Packet in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling with parameters of type Packet -
Uses of Packet in net.neoforged.neoforge.network.registration
Methods in net.neoforged.neoforge.network.registration that return types with arguments of type PacketModifier and TypeMethodDescription<T extends PacketListener>
List<Packet<?>>NetworkRegistry.filterGameBundlePackets
(io.netty.channel.ChannelHandlerContext context, Iterable<Packet<? super T>> packets) Filters the given packets for a bundle packet in the game phase of the connection.Methods in net.neoforged.neoforge.network.registration with parameters of type PacketModifier and TypeMethodDescriptionboolean
NetworkRegistry.canSendPacket
(Packet<?> packet, ClientCommonPacketListener listener) Indicates if the given packet can be sent via the given listener.boolean
NetworkRegistry.canSendPacket
(Packet<?> packet, ServerCommonPacketListener listener) Indicates if the given packet can be sent via the given listener.void
void
private static <T extends PacketListener>
voidNetworkRegistry.ClientPacketHandler.resolvePacketGenerics
(Packet<T> packet, ClientCommonPacketListener listener) private static <T extends PacketListener>
voidNetworkRegistry.ServerPacketHandler.resolvePacketGenerics
(Packet<T> packet, ServerCommonPacketListener listener) boolean
NetworkRegistry.shouldSendPacketRaw
(Packet<?> packet) Method parameters in net.neoforged.neoforge.network.registration with type arguments of type PacketModifier and TypeMethodDescription<T extends PacketListener>
List<Packet<?>>NetworkRegistry.filterGameBundlePackets
(io.netty.channel.ChannelHandlerContext context, Iterable<Packet<? super T>> packets) Filters the given packets for a bundle packet in the game phase of the connection. -
Uses of Packet in net.neoforged.neoforge.oldtest.client.model
Methods in net.neoforged.neoforge.oldtest.client.model that return PacketModifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener>
CustomItemDisplayContextTest.ItemHangerBlockEntity.getUpdatePacket()
-
Uses of Packet in net.neoforged.neoforge.oldtest.entity
Methods in net.neoforged.neoforge.oldtest.entity that return Packet -
Uses of Packet in net.neoforged.testframework.gametest
Methods in net.neoforged.testframework.gametest with type parameters of type PacketModifier and TypeMethodDescription<T extends Packet<? extends ClientCommonPacketListener>>
Stream<T>GameTestPlayer.getOutboundPackets
(Class<T> type) Methods in net.neoforged.testframework.gametest that return types with arguments of type PacketModifier and TypeMethodDescriptionprivate Stream<Packet<? extends ClientCommonPacketListener>>
GameTestPlayer.outboundPackets()
ConnectionProtocol.PacketSet.contextualIdToDeserializer
instead it allows for context to be passed to the deserializer