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.packetThe field for thepacketrecord component.Methods in net.minecraft.client.multiplayer that return PacketModifier and TypeMethodDescriptionPacket<? extends ServerboundPacketListener> ClientCommonPacketListenerImpl.DeferredPacket.packet()Returns the value of thepacketrecord component.Methods in net.minecraft.client.multiplayer with parameters of type PacketModifier and TypeMethodDescriptionvoidClientCommonPacketListenerImpl.onPacketError(Packet p_341624_, Exception p_341639_) voidvoidClientLevel.sendPacketToServer(Packet<?> pPacket) private voidClientCommonPacketListenerImpl.sendWhen(Packet<? extends ServerboundPacketListener> pPacket, BooleanSupplier pSendCondition, Duration pExpirationTime) booleanClientCommonPacketListenerImpl.shouldHandleMessage(Packet<?> p_341905_) ClientCommonPacketListenerImpl.storeDisconnectionReport(@Nullable 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 aDeferredPacketrecord 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 declared as PacketModifier and TypeFieldDescriptionPacketProcessor.ListenerAndPacket.packetThe field for thepacketrecord component.Methods in net.minecraft.network that return PacketModifier and TypeMethodDescriptionPacketProcessor.ListenerAndPacket.packet()Returns the value of thepacketrecord component.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 voidConnection.channelRead0(io.netty.channel.ChannelHandlerContext pContext, Packet<?> pPacket) protected voidPacketBundlePacker.decode(io.netty.channel.ChannelHandlerContext pContext, Packet<?> pPacket, List<Object> p_265368_) private voidConnection.doSendPacket(Packet<?> pPacket, @Nullable io.netty.channel.ChannelFutureListener pSendListener, boolean pFlush) protected voidPacketBundleUnpacker.encode(io.netty.channel.ChannelHandlerContext pContext, Packet<?> pPacket, List<Object> p_265735_) protected voidPacketEncoder.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 voidProtocolSwapHandler.handleInboundTerminalPacket(io.netty.channel.ChannelHandlerContext pContext, Packet<?> pPacket) static voidProtocolSwapHandler.handleOutboundTerminalPacket(io.netty.channel.ChannelHandlerContext pContext, Packet<?> pPacket) default voidPacketListener.onPacketError(Packet pPacket, Exception pException) <T extends PacketListener>
voidPacketProcessor.scheduleIfPossible(T pListener, Packet<T> pPacket) voidvoidvoidConnection.send(Packet<?> pPacket, @Nullable io.netty.channel.ChannelFutureListener pSendListener, boolean pFlush) private voidConnection.sendPacket(Packet<?> pPacket, @Nullable io.netty.channel.ChannelFutureListener pSendListener, boolean pFlush) default booleanPacketListener.shouldHandleMessage(Packet<?> pPacket) private static voidPacketBundlePacker.verifyNonTerminalPacket(Packet<?> pPacket) Method parameters in net.minecraft.network with type arguments of type PacketModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFutureListenerPacketSendListener.exceptionallySend(Supplier<@Nullable Packet<?>> pPacketSupplier) Constructors in net.minecraft.network with parameters of type PacketModifierConstructorDescription(package private)ListenerAndPacket(T listener, Packet<T> packet) Creates an instance of aListenerAndPacketrecord class. -
Uses of Packet in net.minecraft.network.protocol
Classes in net.minecraft.network.protocol with type parameters of type PacketModifier and TypeClassDescriptionfinal recordPacketType<T extends Packet<?>>(package private) static final recordProtocolInfoBuilder.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 TypeClassDescriptionclassBundleDelimiterPacket<T extends PacketListener>classBundlePacket<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.codecThe field for thecodecrecord component.private final IdDispatchCodec.Builder<B, Packet<? super L>, PacketType<? extends Packet<? super L>>> ProtocolCodecBuilder.dispatchBuilderprivate final IdDispatchCodec.Builder<B, Packet<? super L>, PacketType<? extends Packet<? super L>>> ProtocolCodecBuilder.dispatchBuilderBundlePacket.packetsMethods 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 thecodecrecord component.BundlePacket.subPackets()PacketType<? extends Packet<T>> Packet.type()Methods in net.minecraft.network.protocol with parameters of type PacketModifier and TypeMethodDescription@Nullable Packet<?> static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread(Packet<T> pPacket, T pListener, PacketProcessor pPacketProcessor) 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.fillCrashReport(CrashReport pCrashReport, T pPacketListener, @Nullable Packet<T> pPacket) static <T extends PacketListener>
ReportedExceptionPacketUtils.makeReportedException(Exception pException, Packet<T> pPacket, T pPacketListener) @Nullable BundlerInfo.BundlerBundlerInfo.startPacketBundling(Packet<?> pPacket) voidBundlerInfo.unbundlePacket(Packet<?> pPacket, Consumer<Packet<?>> pConsumer) Deprecated.default voidBundlerInfo.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) voidBundlerInfo.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 voidBundlerInfo.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 PacketModifierConstructorDescriptionprotectedBundlePacket(Iterable<Packet<? super T>> pPackets) (package private)Implementation(ConnectionProtocol id, PacketFlow flow, StreamCodec<io.netty.buffer.ByteBuf, Packet<? super L>> codec, @Nullable BundlerInfo bundlerInfo) Creates an instance of aImplementationrecord class. -
Uses of Packet in net.minecraft.network.protocol.common
Classes in net.minecraft.network.protocol.common that implement PacketModifier and TypeClassDescriptionclassfinal recordfinal recordfinal recordclassclassfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordclassfinal recordfinal recordfinal recordclassclassfinal recordMethods 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 TypeClassDescriptionfinal recordclassfinal recordclassfinal recordfinal recordfinal recordclassfinal recordMethods 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 recordfinal recordMethods 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 TypeClassDescriptionclassclassfinal recordfinal recordclassclassclassTriggers a block event on the client.classclassclassclassfinal recordfinal recordclassfinal recordclassclassfinal recordclassfinal recordclassclassfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordclassfinal recordfinal recordfinal recordclassfinal recordfinal recordclassclassclassclassclassfinal recordfinal recordclassclassclassstatic classstatic classstatic classfinal recordfinal recordclassclassclassfinal recordclassfinal recordclassclassfinal recordfinal recordclassclassfinal recordfinal recordclassfinal recordfinal recordfinal recordclassfinal recordfinal recordfinal recordclassclassclassfinal recordfinal recordclassclassclassclassclassclassclassclassfinal recordfinal recordclassfinal recordclassclassclassclassclassfinal recordclassclassfinal recordclassfinal recordfinal recordfinal recordfinal recordclassfinal recordclassclassclassclassfinal recordfinal recordclassclassfinal recordfinal recordfinal recordfinal recordfinal recordclassclassclassfinal recordclassclassfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordclassfinal recordclassclassfinal recordfinal recordclassfinal recordfinal recordfinal recordclassclassclassclassclassstatic classstatic classstatic classstatic classfinal recordclassfinal recordfinal recordfinal recordclassclassclassfinal recordfinal recordclassfinal recordclassclassfinal recordclassfinal recordclassclassclassfinal recordclassclassfinal recordclassclassclassfinal recordclassclassMethods 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 voidServerPacketListener.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 recordclassclassfinal recordfinal recordfinal recordfinal recordclassclassMethods 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 recordclassMethods 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 recordclassMethods 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 voidServerPackCommand.sendToAllConnections(CommandSourceStack pSource, Packet<?> pPacket) Method parameters in net.minecraft.server.commands with type arguments of type PacketModifier and TypeMethodDescriptionprivate static intTitleCommand.showTitle(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Component pTitle, String pTitleType, Function<Component, Packet<?>> pPacketGetter) -
Uses of Packet in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type PacketModifier and TypeMethodDescriptionprivate voidChunkHolder.broadcast(List<ServerPlayer> pPlayers, Packet<?> pPacket) private booleanServerLevel.sendParticles(ServerPlayer pPlayer, boolean pLongDistance, double pPosX, double pPosY, double pPosZ, Packet<?> pPacket) voidChunkMap.sendToTrackingPlayers(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidChunkMap.TrackedEntity.sendToTrackingPlayers(Packet<? super ClientGamePacketListener> p_140490_) voidServerChunkCache.sendToTrackingPlayers(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidServerEntity.Synchronizer.sendToTrackingPlayers(Packet<? super ClientGamePacketListener> pPacket) protected voidChunkMap.sendToTrackingPlayersAndSelf(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidChunkMap.TrackedEntity.sendToTrackingPlayersAndSelf(Packet<? super ClientGamePacketListener> p_449188_) voidServerChunkCache.sendToTrackingPlayersAndSelf(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidServerEntity.Synchronizer.sendToTrackingPlayersAndSelf(Packet<? super ClientGamePacketListener> pPacket) voidChunkMap.sendToTrackingPlayersFiltered(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket, Predicate<ServerPlayer> pFilter) voidChunkMap.TrackedEntity.sendToTrackingPlayersFiltered(Packet<? super ClientGamePacketListener> p_449059_, Predicate<ServerPlayer> p_449352_) voidServerEntity.Synchronizer.sendToTrackingPlayersFiltered(Packet<? super ClientGamePacketListener> pPacket, Predicate<ServerPlayer> pFilter) Method parameters in net.minecraft.server.level with type arguments of type PacketModifier and TypeMethodDescriptionvoidServerEntity.sendPairingData(ServerPlayer pPlayer, Consumer<Packet<? super ClientGamePacketListener>> pConsumer) -
Uses of Packet in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type PacketModifier and TypeMethodDescriptionvoidServerCommonPacketListenerImpl.onPacketError(Packet p_365354_, Exception p_363385_) voidvoidServerCommonPacketListenerImpl.send(Packet<?> pPacket, @Nullable io.netty.channel.ChannelFutureListener pSendListener) voidbooleanServerGamePacketListenerImpl.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 PacketModifier and TypeMethodDescriptionvoidSynchronizeRegistriesTask.handleResponse(List<KnownPack> pPacks, Consumer<Packet<?>> pPacketSender) private voidSynchronizeRegistriesTask.sendRegistries(Consumer<Packet<?>> pPacketSender, Set<KnownPack> pPacks) voidvoidvoidvoidvoid -
Uses of Packet in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type PacketModifier and TypeMethodDescriptionvoidPlayerList.broadcast(@Nullable Player pExcept, double pX, double pY, double pZ, double pRadius, ResourceKey<Level> pDimension, Packet<?> pPacket) voidPlayerList.broadcastAll(Packet<?> pPacket) voidPlayerList.broadcastAll(Packet<?> pPacket, ResourceKey<Level> pDimension) -
Uses of Packet in net.minecraft.util.debug
Methods in net.minecraft.util.debug with parameters of type PacketModifier and TypeMethodDescriptionvoidServerDebugSubscribers.broadcastToAll(DebugSubscription<?> pSubscription, Packet<?> pPacket) private voidLevelDebugSynchronizers.broadcastToTracking(Entity pEntity, DebugSubscription<?> pSubscription, Packet<? super ClientGamePacketListener> pPacket) private voidLevelDebugSynchronizers.broadcastToTracking(ChunkPos pChunkPos, DebugSubscription<?> pSubscription, Packet<? super ClientGamePacketListener> pPacket) protected final voidTrackingDebugSynchronizer.sendToPlayersTrackingChunk(ServerLevel pLevel, ChunkPos pChunkPos, Packet<? super ClientGamePacketListener> pPacket) protected final voidTrackingDebugSynchronizer.sendToPlayersTrackingEntity(ServerLevel pLevel, Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) -
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.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon 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 p_352300_) LeashFenceKnotEntity.getAddEntityPacket(ServerEntity p_352402_) -
Uses of Packet in net.minecraft.world.entity.decoration.painting
Methods in net.minecraft.world.entity.decoration.painting that return Packet -
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 p_352092_) Projectile.getAddEntityPacket(ServerEntity p_352459_) -
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 PacketModifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener> BlockEntity.getUpdatePacket() -
Uses of Packet in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return PacketModifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener> VaultBlockEntity.getUpdatePacket() -
Uses of Packet in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps that return PacketModifier and TypeMethodDescription@Nullable Packet<?> MapItemSavedData.getUpdatePacket(MapId pMapId, Player pPlayer) (package private) @Nullable Packet<?> MapItemSavedData.HoldingPlayer.nextUpdatePacket(MapId pMapId) -
Uses of Packet in net.neoforged.neoforge.attachment
Method parameters in net.neoforged.neoforge.attachment with type arguments of type PacketModifier and TypeMethodDescriptionstatic voidAttachmentSync.syncInitialEntityAttachments(Entity entity, ServerPlayer to, Consumer<Packet<? super ClientGamePacketListener>> packetConsumer) Handles initial syncing of entity attachments, except for a player's own attachments. -
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<? super ClientGamePacketListener> 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.handlersVanillaPacketFilter.handlersVanillaPacketFilter.handlersMethods 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 voidGenericPacketSplitter.encode(io.netty.channel.ChannelHandlerContext ctx, Packet<?> packet, List<Object> out) protected voidVanillaPacketFilter.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 PacketModifierConstructorDescriptionprotectedVanillaPacketFilter(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) protectedVanillaPacketFilter(Map<Class<? extends Packet<?>>, BiConsumer<Packet<?>, List<? super Packet<?>>>> handlers) protectedVanillaPacketFilter(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 voidNetworkRegistry.checkPacket(Packet<?> packet, ClientCommonPacketListener listener) Validates that aServerboundCustomPayloadPacketmay be sent to the server.static voidNetworkRegistry.checkPacket(Packet<?> packet, ServerCommonPacketListener listener) Validates that aClientboundCustomPayloadPacketmay 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.