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 packet, Exception cause) voidvoidClientLevel.sendPacketToServer(Packet<?> packet) private voidClientCommonPacketListenerImpl.sendWhen(Packet<? extends ServerboundPacketListener> packet, BooleanSupplier condition, Duration expireAfterDuration) booleanClientCommonPacketListenerImpl.shouldHandleMessage(Packet<?> packet) ClientCommonPacketListenerImpl.storeDisconnectionReport(@Nullable Packet packet, Throwable cause) Constructors in net.minecraft.client.multiplayer with parameters of type PacketModifierConstructorDescriptionprivateDeferredPacket(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
Subclasses with type arguments of type Packet in net.minecraft.networkModifier and TypeClassDescriptionclassclassclassclassPacketEncoder<T extends PacketListener>Main netty packet encoder.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 ctx, Packet<?> packet) protected voidPacketBundlePacker.decode(io.netty.channel.ChannelHandlerContext ctx, Packet<?> msg, List<Object> out) private voidConnection.doSendPacket(Packet<?> packet, @Nullable io.netty.channel.ChannelFutureListener listener, boolean flush) protected voidPacketBundleUnpacker.encode(io.netty.channel.ChannelHandlerContext ctx, Packet<?> msg, List<Object> out) protected voidPacketEncoder.encode(io.netty.channel.ChannelHandlerContext ctx, Packet<T> packet, io.netty.buffer.ByteBuf output) private static <T extends PacketListener>
voidConnection.genericsFtw(Packet<T> packet, PacketListener listener) static voidProtocolSwapHandler.handleInboundTerminalPacket(io.netty.channel.ChannelHandlerContext ctx, Packet<?> packet) static voidProtocolSwapHandler.handleOutboundTerminalPacket(io.netty.channel.ChannelHandlerContext ctx, Packet<?> packet) default voidPacketListener.onPacketError(Packet packet, Exception cause) <T extends PacketListener>
voidPacketProcessor.scheduleIfPossible(T listener, Packet<T> packet) voidvoidvoidConnection.send(Packet<?> packet, @Nullable io.netty.channel.ChannelFutureListener listener, boolean flush) private voidConnection.sendPacket(Packet<?> packet, @Nullable io.netty.channel.ChannelFutureListener listener, boolean flush) default booleanPacketListener.shouldHandleMessage(Packet<?> packet) private static voidPacketBundlePacker.verifyNonTerminalPacket(Packet<?> msg) Method parameters in net.minecraft.network with type arguments of type PacketModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFutureListenerPacketSendListener.exceptionallySend(Supplier<@Nullable Packet<?>> handler) Constructors in net.minecraft.network with parameters of type PacketModifierConstructorDescriptionprivateListenerAndPacket(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<?>>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> type, StreamCodec<? super B, T> serializer) ProtocolInfoBuilder.addPacket(PacketType<P> type, StreamCodec<? super B, P> serializer) ProtocolInfoBuilder.addPacket(PacketType<P> type, StreamCodec<? super B, P> serializer, CodecModifier<B, P, C> modifier) static <B extends io.netty.buffer.ByteBuf, T extends Packet<?>>
StreamCodec<B, T> Packet.codec(StreamMemberEncoder<B, T> writer, StreamDecoder<B, T> reader) 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()private StreamCodec<io.netty.buffer.ByteBuf, Packet<? super T>> ProtocolInfoBuilder.buildPacketCodec(Function<io.netty.buffer.ByteBuf, B> contextWrapper, List<ProtocolInfoBuilder.CodecEntry<T, ?, B, C>> codecs, C context) 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> packet, T listener, PacketProcessor packetProcessor) static <T extends PacketListener>
voidPacketUtils.ensureRunningOnSameThread(Packet<T> packet, T listener, ServerLevel level) Ensures that the given packet is handled on the main thread.static <T extends PacketListener>
voidPacketUtils.fillCrashReport(CrashReport report, T listener, @Nullable Packet<T> packet) static <T extends PacketListener>
ReportedExceptionPacketUtils.makeReportedException(Exception cause, Packet<T> packet, T listener) @Nullable BundlerInfo.BundlerBundlerInfo.startPacketBundling(Packet<?> packet) voidBundlerInfo.unbundlePacket(Packet<?> packet, Consumer<Packet<?>> output) Deprecated.default voidBundlerInfo.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<? super T>>
BundlerInfoBundlerInfo.createForPacket(PacketType<P> bundlePacketType, Function<Iterable<Packet<? super T>>, P> constructor, BundleDelimiterPacket<? super T> delimiterPacket) voidBundlerInfo.unbundlePacket(Packet<?> packet, Consumer<Packet<?>> output) Deprecated.UseBundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)instead, as it supports packet filtering and is more efficient.default voidBundlerInfo.unbundlePacket(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, 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> bundlerPacket, Function<Iterable<Packet<? super T>>, P> constructor, D delimiterPacket) Constructor parameters in net.minecraft.network.protocol with type arguments of type PacketModifierConstructorDescriptionprotectedBundlePacket(Iterable<Packet<? super T>> packets) privateImplementation(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 id) private static <T extends Packet<ServerCommonPacketListener>>
PacketType<T> CommonPacketTypes.createServerbound(String id) -
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 id) private static <T extends Packet<ServerConfigurationPacketListener>>
PacketType<T> ConfigurationPacketTypes.createServerbound(String id) -
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 id) private static <T extends Packet<ServerCookiePacketListener>>
PacketType<T> CookiePacketTypes.createServerbound(String id) -
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 recordfinal recordclassclassclassclassclassfinal recordclassfinal recordclassclassclassstatic classstatic classstatic classfinal recordfinal recordclassclassclassfinal recordclassfinal recordclassclassfinal recordfinal recordclassclassfinal recordfinal recordclassfinal recordfinal recordfinal recordclassfinal recordfinal recordfinal recordclassclassclassfinal recordfinal recordclassclassclassclassclassclassclassclassfinal recordfinal recordclassfinal recordclassfinal recordclassclassclassfinal recordclassclassfinal recordclassfinal recordfinal recordfinal recordfinal recordclassfinal recordclassclassclassclassfinal recordfinal recordclassclassfinal recordfinal recordfinal recordfinal recordfinal recordclassclassclassfinal recordclassfinal recordclassfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordclassfinal recordclassclassfinal recordfinal recordclassfinal recordfinal recordfinal recordclassfinal recordclassclassclassstatic classstatic classstatic classstatic classfinal recordclassfinal recordfinal recordfinal recordclassclassclassfinal recordfinal recordclassfinal recordclassclassfinal recordclassfinal recordclassclassclassfinal recordfinal recordclassclassfinal recordclassfinal recordclassclassfinal 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 id) private static <T extends Packet<ServerGamePacketListener>>
PacketType<T> GamePacketTypes.createServerbound(String id) Methods in net.minecraft.network.protocol.game with parameters of type PacketModifier and TypeMethodDescriptiondefault voidServerPacketListener.onPacketError(Packet packet, Exception e) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type PacketModifierConstructorDescriptionClientboundBundlePacket(Iterable<Packet<? super ClientGamePacketListener>> packets) -
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 id) -
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 id) private static <T extends Packet<ServerLoginPacketListener>>
PacketType<T> LoginPacketTypes.createServerbound(String id) -
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 id) private static <T extends Packet<ServerPingPacketListener>>
PacketType<T> PingPacketTypes.createServerbound(String id) -
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 id) private static <T extends Packet<ServerStatusPacketListener>>
PacketType<T> StatusPacketTypes.createServerbound(String id) -
Uses of Packet in net.minecraft.server
Methods in net.minecraft.server that return types with arguments of type PacketModifier and TypeMethodDescriptionServerScoreboard.getStartTrackingPackets(Objective objective) ServerScoreboard.getStopTrackingPackets(Objective objective) -
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 source, Packet<?> packet) Method parameters in net.minecraft.server.commands with type arguments of type PacketModifier and TypeMethodDescriptionprivate static intTitleCommand.showTitle(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String type, Function<Component, Packet<?>> factory) -
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> players, Packet<?> packet) private booleanServerLevel.sendParticles(ServerPlayer player, boolean overrideLimiter, double x, double y, double z, Packet<?> packet) voidChunkMap.sendToTrackingPlayers(Entity entity, Packet<? super ClientGamePacketListener> packet) voidChunkMap.TrackedEntity.sendToTrackingPlayers(Packet<? super ClientGamePacketListener> packet) voidServerChunkCache.sendToTrackingPlayers(Entity entity, Packet<? super ClientGamePacketListener> packet) voidServerEntity.Synchronizer.sendToTrackingPlayers(Packet<? super ClientGamePacketListener> packet) protected voidChunkMap.sendToTrackingPlayersAndSelf(Entity entity, Packet<? super ClientGamePacketListener> packet) voidChunkMap.TrackedEntity.sendToTrackingPlayersAndSelf(Packet<? super ClientGamePacketListener> packet) voidServerChunkCache.sendToTrackingPlayersAndSelf(Entity entity, Packet<? super ClientGamePacketListener> packet) voidServerEntity.Synchronizer.sendToTrackingPlayersAndSelf(Packet<? super ClientGamePacketListener> packet) voidChunkMap.sendToTrackingPlayersFiltered(Entity entity, Packet<? super ClientGamePacketListener> packet, Predicate<ServerPlayer> targetPredicate) voidChunkMap.TrackedEntity.sendToTrackingPlayersFiltered(Packet<? super ClientGamePacketListener> packet, Predicate<ServerPlayer> targetPredicate) voidServerEntity.Synchronizer.sendToTrackingPlayersFiltered(Packet<? super ClientGamePacketListener> packet, Predicate<ServerPlayer> predicate) Method parameters in net.minecraft.server.level with type arguments of type PacketModifier and TypeMethodDescriptionvoidServerEntity.sendPairingData(ServerPlayer player, Consumer<Packet<? super ClientGamePacketListener>> broadcast) -
Uses of Packet in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type PacketModifier and TypeMethodDescriptionvoidServerCommonPacketListenerImpl.onPacketError(Packet packet, Exception e) voidvoidServerCommonPacketListenerImpl.send(Packet<?> packet, @Nullable io.netty.channel.ChannelFutureListener listener) voidbooleanServerGamePacketListenerImpl.shouldHandleMessage(Packet<?> packet) 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> acceptedPacks, Consumer<Packet<?>> connection) private voidSynchronizeRegistriesTask.sendRegistries(Consumer<Packet<?>> connection, Set<KnownPack> negotiatedPacks) 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 except, double x, double y, double z, double range, ResourceKey<Level> dimension, Packet<?> packet) voidPlayerList.broadcastAll(Packet<?> packet) voidPlayerList.broadcastAll(Packet<?> packet, ResourceKey<Level> dimension) -
Uses of Packet in net.minecraft.util.debug
Methods in net.minecraft.util.debug with parameters of type PacketModifier and TypeMethodDescriptionvoidServerDebugSubscribers.broadcastToAll(DebugSubscription<?> subscription, Packet<?> packet) private voidLevelDebugSynchronizers.broadcastToTracking(Entity trackedEntity, DebugSubscription<?> subscription, Packet<? super ClientGamePacketListener> packet) private voidLevelDebugSynchronizers.broadcastToTracking(ChunkPos trackedChunk, DebugSubscription<?> subscription, Packet<? super ClientGamePacketListener> packet) protected final voidTrackingDebugSynchronizer.sendToPlayersTrackingChunk(ServerLevel level, ChunkPos trackedChunk, Packet<? super ClientGamePacketListener> packet) protected final voidTrackingDebugSynchronizer.sendToPlayersTrackingEntity(ServerLevel level, Entity trackedEntity, Packet<? super ClientGamePacketListener> packet) -
Uses of Packet in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return PacketModifier and TypeMethodDescriptionEntity.getAddEntityPacket(ServerEntity serverEntity) Marker.getAddEntityPacket(ServerEntity serverEntity) -
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 serverEntity) LeashFenceKnotEntity.getAddEntityPacket(ServerEntity serverEntity) -
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 PacketModifier and TypeMethodDescriptionFallingBlockEntity.getAddEntityPacket(ServerEntity serverEntity) -
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 serverEntity) Projectile.getAddEntityPacket(ServerEntity serverEntity) -
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 id, Player player) private @Nullable Packet<?> MapItemSavedData.HoldingPlayer.nextUpdatePacket(MapId id) -
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
Subclasses with type arguments of type Packet in net.neoforged.neoforge.network.filtersModifier and TypeClassDescriptionclassA generic packet splitter that can be used to split packets that are too large to be sent in one go.classA filter for vanilla impl packets.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.