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
ClientCommonPacketListenerImpl.onPacketError
(Packet pPacket, Exception pException) void
void
ClientLevel.sendPacketToServer
(Packet<?> pPacket) private void
ClientCommonPacketListenerImpl.sendWhen
(Packet<? extends ServerboundPacketListener> pPacket, BooleanSupplier pSendCondition, Duration pExpirationTime) boolean
ClientCommonPacketListenerImpl.shouldHandleMessage
(Packet<?> pPacket) ClientCommonPacketListenerImpl.storeDisconnectionReport
(Packet pPacket, Throwable pError) 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
Methods in net.minecraft.network that return types with arguments of type PacketModifier and TypeMethodDescriptionStreamCodec
<io.netty.buffer.ByteBuf, Packet<? super T>> ProtocolInfo.codec()
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_) private void
Connection.doSendPacket
(Packet<?> p_243260_, io.netty.channel.ChannelFutureListener p_428294_, 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<T> p_130546_, io.netty.buffer.ByteBuf p_130547_) private static <T extends PacketListener>
voidConnection.genericsFtw
(Packet<T> pPacket, PacketListener pListener) static void
ProtocolSwapHandler.handleInboundTerminalPacket
(io.netty.channel.ChannelHandlerContext p_320154_, Packet<?> p_320949_) static void
ProtocolSwapHandler.handleOutboundTerminalPacket
(io.netty.channel.ChannelHandlerContext p_320395_, Packet<?> p_320209_) default void
PacketListener.onPacketError
(Packet pPacket, Exception pException) void
void
void
Connection.send
(Packet<?> pPacket, io.netty.channel.ChannelFutureListener p_428328_, boolean p_428543_) private void
Connection.sendPacket
(Packet<?> p_129521_, io.netty.channel.ChannelFutureListener p_428388_, boolean p_294510_) default boolean
PacketListener.shouldHandleMessage
(Packet<?> pPacket) private static void
PacketBundlePacker.verifyNonTerminalPacket
(Packet<?> pPacket) Method parameters in net.minecraft.network with type arguments of type PacketModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFutureListener
PacketSendListener.exceptionallySend
(Supplier<Packet<?>> p_243289_) -
Uses of Packet in net.minecraft.network.protocol
Classes in net.minecraft.network.protocol with type parameters of type PacketModifier and TypeClassDescriptionfinal record
PacketType<T extends Packet<?>>
(package private) static final record
ProtocolInfoBuilder.CodecEntry<T extends PacketListener,
P extends Packet<? super T>, B extends io.netty.buffer.ByteBuf, C> 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 PacketModifier and TypeFieldDescriptionprivate final StreamCodec
<io.netty.buffer.ByteBuf, Packet<? super L>> ProtocolInfoBuilder.Implementation.codec
The field for thecodec
record component.private final IdDispatchCodec.Builder
<B, Packet<? super L>, PacketType<? extends Packet<? super L>>> ProtocolCodecBuilder.dispatchBuilder
private final IdDispatchCodec.Builder
<B, Packet<? super L>, PacketType<? extends Packet<? super L>>> ProtocolCodecBuilder.dispatchBuilder
BundlePacket.packets
Methods in net.minecraft.network.protocol with type parameters of type PacketModifier and TypeMethodDescription<T extends Packet<? super L>>
ProtocolCodecBuilder<B, L> ProtocolCodecBuilder.add
(PacketType<T> pPacketType, StreamCodec<? super B, T> pCodec) ProtocolInfoBuilder.addPacket
(PacketType<P> pType, StreamCodec<? super B, P> pSerializer) ProtocolInfoBuilder.addPacket
(PacketType<P> pType, StreamCodec<? super B, P> pSerializer, CodecModifier<B, P, C> pModifier) static <B extends io.netty.buffer.ByteBuf,
T extends Packet<?>>
StreamCodec<B, T> Packet.codec
(StreamMemberEncoder<B, T> pEncoder, StreamDecoder<B, T> pDecoder) Methods in net.minecraft.network.protocol that return PacketMethods in net.minecraft.network.protocol that return types with arguments of type PacketModifier and TypeMethodDescriptionStreamCodec
<B, Packet<? super L>> ProtocolCodecBuilder.build()
(package private) StreamCodec
<io.netty.buffer.ByteBuf, Packet<? super T>> ProtocolInfoBuilder.buildPacketCodec
(Function<io.netty.buffer.ByteBuf, B> pBufferFactory, List<ProtocolInfoBuilder.CodecEntry<T, ?, B, C>> pEntries, C pContext) StreamCodec
<io.netty.buffer.ByteBuf, Packet<? super L>> ProtocolInfoBuilder.Implementation.codec()
Returns the value of thecodec
record component.BundlePacket.subPackets()
PacketType
<? extends Packet<T>> Packet.type()
Methods in net.minecraft.network.protocol with parameters of type PacketModifier and TypeMethodDescriptionPacket
<?> static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread
(Packet<T> pPacket, T pProcessor, ServerLevel pLevel) Ensures that the given packet is handled on the main thread.static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread
(Packet<T> pPacket, T pProcessor, BlockableEventLoop<?> pExecutor) Ensures that the given packet is handled on the main thread.static <T extends PacketListener>
voidPacketUtils.fillCrashReport
(CrashReport pCrashReport, T pPacketListener, Packet<T> pPacket) static <T extends PacketListener>
ReportedExceptionPacketUtils.makeReportedException
(Exception pException, Packet<T> pPacket, T pPacketListener) BundlerInfo.startPacketBundling
(Packet<?> pPacket) void
BundlerInfo.unbundlePacket
(Packet<?> pPacket, Consumer<Packet<?>> pConsumer) Deprecated.default void
BundlerInfo.unbundlePacket
(Packet<?> pPacket, Consumer<Packet<?>> pConsumer, 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<? super T>>
BundlerInfoBundlerInfo.createForPacket
(PacketType<P> pType, Function<Iterable<Packet<? super T>>, P> pBundler, BundleDelimiterPacket<? super T> pPacket) void
BundlerInfo.unbundlePacket
(Packet<?> pPacket, Consumer<Packet<?>> pConsumer) Deprecated.UseBundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.default void
BundlerInfo.unbundlePacket
(Packet<?> pPacket, Consumer<Packet<?>> pConsumer, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet.<P extends BundlePacket<? super T>,
D extends BundleDelimiterPacket<? super T>>
ProtocolInfoBuilder<T, B, C> ProtocolInfoBuilder.withBundlePacket
(PacketType<P> pType, Function<Iterable<Packet<? super T>>, P> pBundler, D pPacket) Constructor parameters in net.minecraft.network.protocol with type arguments of type PacketModifierConstructorDescriptionprotected
BundlePacket
(Iterable<Packet<? super T>> pPackets) (package private)
Implementation
(ConnectionProtocol id, PacketFlow flow, StreamCodec<io.netty.buffer.ByteBuf, Packet<? super L>> codec, BundlerInfo bundlerInfo) Creates an instance of aImplementation
record class. -
Uses of Packet in net.minecraft.network.protocol.common
Classes in net.minecraft.network.protocol.common that implement PacketModifier and TypeClassDescriptionclass
final record
final record
final record
class
class
final record
final record
final record
final record
final record
final record
class
final record
final record
final record
class
class
final record
Methods in net.minecraft.network.protocol.common with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientCommonPacketListener>>
PacketType<T> CommonPacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerCommonPacketListener>>
PacketType<T> CommonPacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.configuration
Classes in net.minecraft.network.protocol.configuration that implement PacketModifier and TypeClassDescriptionclass
final record
class
final record
final record
class
final record
Methods in net.minecraft.network.protocol.configuration with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientConfigurationPacketListener>>
PacketType<T> ConfigurationPacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerConfigurationPacketListener>>
PacketType<T> ConfigurationPacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.cookie
Classes in net.minecraft.network.protocol.cookie that implement PacketModifier and TypeClassDescriptionfinal record
final record
Methods in net.minecraft.network.protocol.cookie with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientCookiePacketListener>>
PacketType<T> CookiePacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerCookiePacketListener>>
PacketType<T> CookiePacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.game
Classes in net.minecraft.network.protocol.game that implement PacketModifier and TypeClassDescriptionclass
class
final record
final record
class
class
class
Triggers a block event on the client.class
class
class
class
final record
final record
class
final record
class
class
final record
class
final record
class
class
final record
final record
final record
final record
final record
final record
class
final record
final record
final record
class
class
final record
class
class
class
class
class
final record
final record
class
class
static class
static class
static class
final record
final record
class
class
class
final record
class
final record
class
class
final record
final record
class
class
final record
final record
class
final record
final record
final record
class
final record
final record
final record
class
class
class
final record
final record
class
class
class
class
class
class
class
class
final record
class
class
final record
class
class
class
class
class
final record
class
class
final record
class
final record
final record
final record
final record
class
final record
class
class
class
class
final record
final record
class
class
final record
final record
final record
final record
final record
class
class
class
final record
class
class
final record
final record
final record
final record
final record
final record
final record
final record
class
final record
class
class
final record
final record
class
final record
final record
final record
class
class
class
class
class
static class
static class
static class
static class
final record
class
final record
final record
final record
class
class
class
final record
final record
class
final record
class
class
final record
class
final record
class
class
class
final record
class
class
final record
class
class
class
final record
class
class
Methods in net.minecraft.network.protocol.game with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientGamePacketListener>>
PacketType<T> GamePacketTypes.createClientbound
(String pId) private static <T extends Packet<ServerGamePacketListener>>
PacketType<T> GamePacketTypes.createServerbound
(String pId) Methods in net.minecraft.network.protocol.game with parameters of type PacketModifier and TypeMethodDescriptiondefault void
ServerPacketListener.onPacketError
(Packet p_341685_, Exception p_341609_) 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 PacketMethods in net.minecraft.network.protocol.handshake with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ServerHandshakePacketListener>>
PacketType<T> HandshakePacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.login
Classes in net.minecraft.network.protocol.login that implement PacketModifier and TypeClassDescriptionfinal record
class
class
final record
final record
final record
final record
class
class
Methods in net.minecraft.network.protocol.login with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientLoginPacketListener>>
PacketType<T> LoginPacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerLoginPacketListener>>
PacketType<T> LoginPacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.ping
Classes in net.minecraft.network.protocol.ping that implement PacketModifier and TypeClassDescriptionfinal record
class
Methods in net.minecraft.network.protocol.ping with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientPongPacketListener>>
PacketType<T> PingPacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerPingPacketListener>>
PacketType<T> PingPacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.network.protocol.status
Classes in net.minecraft.network.protocol.status that implement PacketModifier and TypeClassDescriptionfinal record
class
Methods in net.minecraft.network.protocol.status with type parameters of type PacketModifier and TypeMethodDescriptionprivate static <T extends Packet<ClientStatusPacketListener>>
PacketType<T> StatusPacketTypes.createClientbound
(String pName) private static <T extends Packet<ServerStatusPacketListener>>
PacketType<T> StatusPacketTypes.createServerbound
(String pName) -
Uses of Packet in net.minecraft.server
Methods in net.minecraft.server that return types with arguments of type PacketModifier and TypeMethodDescriptionServerScoreboard.getStartTrackingPackets
(Objective pObjective) ServerScoreboard.getStopTrackingPackets
(Objective pObjective) -
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 pSource, Packet<?> pPacket) Method parameters in net.minecraft.server.commands with type arguments of type PacketModifier and TypeMethodDescriptionprivate static int
TitleCommand.showTitle
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Component pTitle, String pTitleType, Function<Component, Packet<?>> pPacketGetter) -
Uses of Packet in net.minecraft.server.level
Fields in net.minecraft.server.level with type parameters of type PacketModifier and TypeFieldDescriptionServerEntity.broadcast
private final BiConsumer
<Packet<?>, List<UUID>> ServerEntity.broadcastWithIgnore
Methods in net.minecraft.server.level with parameters of type PacketModifier and TypeMethodDescriptionprivate void
ChunkHolder.broadcast
(List<ServerPlayer> pPlayers, Packet<?> pPacket) void
void
void
protected void
ChunkMap.broadcastAndSend
(Entity pEntity, Packet<?> pPacket) void
ChunkMap.TrackedEntity.broadcastAndSend
(Packet<?> pPacket) void
ServerChunkCache.broadcastAndSend
(Entity pEntity, Packet<?> pPacket) private void
ServerEntity.broadcastAndSend
(Packet<?> pPacket) void
ChunkMap.TrackedEntity.broadcastIgnorePlayers
(Packet<?> p_393917_, List<UUID> p_393866_) private boolean
ServerLevel.sendParticles
(ServerPlayer pPlayer, boolean pLongDistance, double pPosX, double pPosY, double pPosZ, Packet<?> pPacket) Method parameters in net.minecraft.server.level with type arguments of type PacketModifier and TypeMethodDescriptionvoid
ServerEntity.sendPairingData
(ServerPlayer pPlayer, Consumer<Packet<? super ClientGamePacketListener>> pConsumer) Constructor parameters in net.minecraft.server.level with type arguments of type PacketModifierConstructorDescriptionServerEntity
(ServerLevel pLevel, Entity pEntity, int pUpdateInterval, boolean pTrackDelta, Consumer<Packet<?>> pBroadcast, BiConsumer<Packet<?>, List<UUID>> pBroadcastWithIgnore) ServerEntity
(ServerLevel pLevel, Entity pEntity, int pUpdateInterval, boolean pTrackDelta, Consumer<Packet<?>> pBroadcast, BiConsumer<Packet<?>, List<UUID>> pBroadcastWithIgnore) -
Uses of Packet in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type PacketModifier and TypeMethodDescriptionvoid
ServerCommonPacketListenerImpl.onPacketError
(Packet pPacket, Exception pException) void
void
ServerCommonPacketListenerImpl.send
(Packet<?> pPacket, io.netty.channel.ChannelFutureListener p_428378_) void
boolean
ServerGamePacketListenerImpl.shouldHandleMessage
(Packet<?> pPacket) 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 PacketModifier and TypeMethodDescriptionvoid
SynchronizeRegistriesTask.handleResponse
(List<KnownPack> pPacks, Consumer<Packet<?>> pPacketSender) private void
SynchronizeRegistriesTask.sendRegistries
(Consumer<Packet<?>> pPacketSender, Set<KnownPack> pPacks) void
void
void
-
Uses of Packet in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type PacketModifier and TypeMethodDescriptionvoid
PlayerList.broadcast
(Player pExcept, double pX, double pY, double pZ, double pRadius, ResourceKey<Level> pDimension, Packet<?> pPacket) void
PlayerList.broadcastAll
(Packet<?> pPacket) void
PlayerList.broadcastAll
(Packet<?> pPacket, ResourceKey<Level> pDimension) -
Uses of Packet in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return PacketModifier and TypeMethodDescriptionEntity.getAddEntityPacket
(ServerEntity pEntity) Marker.getAddEntityPacket
(ServerEntity p_352275_) -
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
(ServerEntity pEntity) LeashFenceKnotEntity.getAddEntityPacket
(ServerEntity pEntity) Painting.getAddEntityPacket
(ServerEntity pEntity) -
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 TypeMethodDescriptionFishingHook.getAddEntityPacket
(ServerEntity pEntity) Projectile.getAddEntityPacket
(ServerEntity pEntity) -
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.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault 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
(MapId pMapId, Player pPlayer) (package private) Packet
<?> MapItemSavedData.HoldingPlayer.nextUpdatePacket
(MapId pMapId) -
Uses of Packet in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type Packet -
Uses of Packet in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type Packet -
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.entity
Methods in net.neoforged.neoforge.entity that return Packet -
Uses of Packet in net.neoforged.neoforge.network
Methods in net.neoforged.neoforge.network that return PacketModifier and TypeMethodDescriptionprivate static Packet
<?> PacketDistributor.makeClientboundPacket
(CustomPacketPayload payload, CustomPacketPayload... payloads) -
Uses of Packet in net.neoforged.neoforge.network.bundle
Methods in net.neoforged.neoforge.network.bundle that return types with arguments of type PacketMethod 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 TypeMethodDescriptionstatic <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 TypeMethodDescriptionstatic void
NetworkRegistry.checkPacket
(Packet<?> packet, ClientCommonPacketListener listener) Validates that aServerboundCustomPayloadPacket
may be sent to the server.static void
NetworkRegistry.checkPacket
(Packet<?> packet, ServerCommonPacketListener listener) Validates that aClientboundCustomPayloadPacket
may be sent to the client.static <T extends PacketListener>
voidNetworkRegistry.handlePacketUnchecked
(Packet<T> packet, PacketListener listener) Method parameters in net.neoforged.neoforge.network.registration with type arguments of type PacketModifier and TypeMethodDescriptionstatic <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.
BundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.