Uses of Interface
net.minecraft.network.protocol.Packet
Package
Description
-
Uses of Packet in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate final Packet
<? extends ServerboundPacketListener> ClientCommonPacketListenerImpl.DeferredPacket.packet
The field for thepacket
record component.Modifier and TypeMethodDescriptionPacket
<? extends ServerboundPacketListener> ClientCommonPacketListenerImpl.DeferredPacket.packet()
Returns the value of thepacket
record component.Modifier and TypeMethodDescriptionvoid
ClientCommonPacketListenerImpl.onPacketError
(Packet p_341624_, Exception p_341639_) void
void
ClientLevel.sendPacketToServer
(Packet<?> p_104734_) private void
ClientCommonPacketListenerImpl.sendWhen
(Packet<? extends ServerboundPacketListener> p_296259_, BooleanSupplier p_296086_, Duration p_294812_) boolean
ClientCommonPacketListenerImpl.shouldHandleMessage
(Packet<?> p_341905_) ClientCommonPacketListenerImpl.storeDisconnectionReport
(Packet p_350430_, Throwable p_350533_) ModifierConstructorDescription(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
-
Uses of Packet in net.minecraft.network
Modifier and TypeMethodDescriptionStreamCodec
<io.netty.buffer.ByteBuf, Packet<? super T>> ProtocolInfo.codec()
Modifier 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_, 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<T> p_130546_, io.netty.buffer.ByteBuf p_130547_) private static <T extends PacketListener>
voidConnection.genericsFtw
(Packet<T> p_129518_, PacketListener p_129519_) 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 p_341593_, Exception p_341607_) 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_) private static void
PacketBundlePacker.verifyNonTerminalPacket
(Packet<?> p_319833_) Modifier and TypeMethodDescriptionstatic PacketSendListener
PacketSendListener.exceptionallySend
(Supplier<Packet<?>> p_243289_) -
Uses of Packet in net.minecraft.network.protocol
Modifier 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> Modifier and TypeClassDescriptionclass
BundleDelimiterPacket<T extends PacketListener>
class
BundlePacket<T extends PacketListener>
Modifier 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
Modifier and TypeMethodDescription<T extends Packet<? super L>>
ProtocolCodecBuilder<B, L> ProtocolCodecBuilder.add
(PacketType<T> p_319852_, StreamCodec<? super B, T> p_320657_) <P extends Packet<? super T>>
ProtocolInfoBuilder<T, B> ProtocolInfoBuilder.addPacket
(PacketType<P> p_320673_, StreamCodec<? super B, P> p_319828_) static <B extends io.netty.buffer.ByteBuf,
T extends Packet<?>>
StreamCodec<B, T> Packet.codec
(StreamMemberEncoder<B, T> p_319871_, StreamDecoder<B, T> p_319793_) Modifier 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> p_320922_, List<ProtocolInfoBuilder.CodecEntry<T, ?, B>> p_320733_) 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()
Modifier 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_) static <T extends PacketListener>
voidPacketUtils.fillCrashReport
(CrashReport p_340891_, T p_340866_, Packet<T> p_340900_) static <T extends PacketListener>
ReportedExceptionPacketUtils.makeReportedException
(Exception p_341646_, Packet<T> p_341629_, T p_341619_) BundlerInfo.startPacketBundling
(Packet<?> p_265162_) void
BundlerInfo.unbundlePacket
(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Deprecated.default void
BundlerInfo.unbundlePacket
(Packet<?> bundlePacket, Consumer<Packet<?>> packetSender, io.netty.channel.ChannelHandlerContext context) Unwrap and flattens a bundle packet.Modifier and TypeMethodDescriptionstatic <T extends PacketListener,
P extends BundlePacket<? super T>>
BundlerInfoBundlerInfo.createForPacket
(PacketType<P> p_320816_, Function<Iterable<Packet<? super T>>, P> p_265627_, BundleDelimiterPacket<? super 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.<P extends BundlePacket<? super T>,
D extends BundleDelimiterPacket<? super T>>
ProtocolInfoBuilder<T, B> ProtocolInfoBuilder.withBundlePacket
(PacketType<P> p_320954_, Function<Iterable<Packet<? super T>>, P> p_320241_, D p_320202_) ModifierConstructorDescriptionprotected
BundlePacket
(Iterable<Packet<? super T>> p_265290_) (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
Modifier and TypeClassDescriptionfinal record
final record
final record
class
class
final record
final record
final record
final record
final record
class
final record
final record
class
class
final record
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientCommonPacketListener>>
PacketType<T> CommonPacketTypes.createClientbound
(String p_320509_) private static <T extends Packet<ServerCommonPacketListener>>
PacketType<T> CommonPacketTypes.createServerbound
(String p_320505_) -
Uses of Packet in net.minecraft.network.protocol.configuration
Modifier and TypeClassDescriptionclass
final record
class
final record
final record
class
final record
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientConfigurationPacketListener>>
PacketType<T> ConfigurationPacketTypes.createClientbound
(String p_320514_) private static <T extends Packet<ServerConfigurationPacketListener>>
PacketType<T> ConfigurationPacketTypes.createServerbound
(String p_320087_) -
Uses of Packet in net.minecraft.network.protocol.cookie
Modifier and TypeClassDescriptionfinal record
final record
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientCookiePacketListener>>
PacketType<T> CookiePacketTypes.createClientbound
(String p_320264_) private static <T extends Packet<ServerCookiePacketListener>>
PacketType<T> CookiePacketTypes.createServerbound
(String p_320414_) -
Uses of Packet in net.minecraft.network.protocol.game
Modifier and TypeClassDescriptionclass
class
class
final record
final record
class
class
class
class
class
class
class
class
final record
class
final record
class
class
final record
class
class
class
class
final record
final record
final record
final record
final record
final record
class
class
final record
class
class
final record
class
class
class
class
class
final record
final record
class
class
static class
static class
static class
class
class
class
class
class
class
final record
class
class
final record
final record
class
class
class
class
class
class
final record
final record
final record
class
class
class
final record
final record
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
final record
class
class
final record
class
class
class
class
final record
final record
class
class
class
final record
final record
class
class
class
class
class
class
class
final record
final record
final record
final record
final record
final record
class
class
class
final record
class
class
final record
final record
final record
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
final record
class
class
class
final record
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientGamePacketListener>>
PacketType<T> GamePacketTypes.createClientbound
(String p_319846_) private static <T extends Packet<ServerGamePacketListener>>
PacketType<T> GamePacketTypes.createServerbound
(String p_320667_) Modifier and TypeMethodDescriptiondefault void
ServerPacketListener.onPacketError
(Packet p_341685_, Exception p_341609_) ModifierConstructorDescriptionClientboundBundlePacket
(Iterable<Packet<? super ClientGamePacketListener>> p_265231_) -
Uses of Packet in net.minecraft.network.protocol.handshake
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ServerHandshakePacketListener>>
PacketType<T> HandshakePacketTypes.createServerbound
(String p_320131_) -
Uses of Packet in net.minecraft.network.protocol.login
Modifier and TypeClassDescriptionfinal record
final record
class
class
class
final record
final record
class
class
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientLoginPacketListener>>
PacketType<T> LoginPacketTypes.createClientbound
(String p_320367_) private static <T extends Packet<ServerLoginPacketListener>>
PacketType<T> LoginPacketTypes.createServerbound
(String p_320772_) -
Uses of Packet in net.minecraft.network.protocol.ping
Modifier and TypeClassDescriptionfinal record
class
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientPongPacketListener>>
PacketType<T> PingPacketTypes.createClientbound
(String p_320541_) private static <T extends Packet<ServerPingPacketListener>>
PacketType<T> PingPacketTypes.createServerbound
(String p_320332_) -
Uses of Packet in net.minecraft.network.protocol.status
Modifier and TypeClassDescriptionfinal record
class
Modifier and TypeMethodDescriptionprivate static <T extends Packet<ClientStatusPacketListener>>
PacketType<T> StatusPacketTypes.createClientbound
(String p_320562_) private static <T extends Packet<ServerStatusPacketListener>>
PacketType<T> StatusPacketTypes.createServerbound
(String p_319783_) -
Uses of Packet in net.minecraft.server
Modifier and TypeMethodDescriptionServerScoreboard.getStartTrackingPackets
(Objective p_136230_) ServerScoreboard.getStopTrackingPackets
(Objective p_136234_) -
Uses of Packet in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static void
ServerPackCommand.sendToAllConnections
(CommandSourceStack p_314494_, Packet<?> p_314523_) Modifier 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
Modifier 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_) ModifierConstructorDescriptionServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) -
Uses of Packet in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
void
ServerCommonPacketListenerImpl.send
(Packet<?> p_295099_, PacketSendListener p_296321_) void
boolean
ServerGamePacketListenerImpl.shouldHandleMessage
(Packet<?> p_295183_) -
Uses of Packet in net.minecraft.server.network.config
Modifier and TypeMethodDescriptionvoid
SynchronizeRegistriesTask.handleResponse
(List<KnownPack> p_326076_, Consumer<Packet<?>> p_326167_) private void
SynchronizeRegistriesTask.sendRegistries
(Consumer<Packet<?>> p_325923_, Set<KnownPack> p_326322_) void
void
void
-
Uses of Packet in net.minecraft.server.players
Modifier 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
Modifier and TypeMethodDescriptionEntity.getAddEntityPacket
(ServerEntity p_352110_) ExperienceOrb.getAddEntityPacket
(ServerEntity p_352351_) Marker.getAddEntityPacket
(ServerEntity p_352275_) -
Uses of Packet in net.minecraft.world.entity.boss
-
Uses of Packet in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionItemFrame.getAddEntityPacket
(ServerEntity p_352300_) LeashFenceKnotEntity.getAddEntityPacket
(ServerEntity p_352402_) Painting.getAddEntityPacket
(ServerEntity p_352062_) -
Uses of Packet in net.minecraft.world.entity.item
-
Uses of Packet in net.minecraft.world.entity.monster.warden
-
Uses of Packet in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionAbstractHurtingProjectile.getAddEntityPacket
(ServerEntity p_352396_) FishingHook.getAddEntityPacket
(ServerEntity p_352092_) Projectile.getAddEntityPacket
(ServerEntity p_352459_) -
Uses of Packet in net.minecraft.world.item
Modifier 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
-
Uses of Packet in net.minecraft.world.level.block.entity
-
Uses of Packet in net.minecraft.world.level.block.entity.vault
-
Uses of Packet in net.minecraft.world.level.saveddata.maps
Modifier and TypeMethodDescriptionPacket
<?> MapItemSavedData.getUpdatePacket
(MapId p_323760_, Player p_164798_) (package private) Packet
<?> MapItemSavedData.HoldingPlayer.nextUpdatePacket
(MapId p_324558_) -
Uses of Packet in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptionvoid
Sends a packet to the target of this listener.void
IServerCommonPacketListenerExtension.send
(Packet<?> packet, @Nullable PacketSendListener listener) Sends a packet to the client of this listener. -
Uses of Packet in net.neoforged.neoforge.common.util
Modifier and TypeMethodDescriptionvoid
void
FakePlayer.FakePlayerNetHandler.send
(Packet<?> packet, @Nullable PacketSendListener sendListener) -
Uses of Packet in net.neoforged.neoforge.common.world
Modifier and TypeMethodDescriptionPacket
<?> LevelChunkAuxiliaryLightManager.sendLightDataTo
(ClientboundLevelChunkWithLightPacket chunkPacket) -
Uses of Packet in net.neoforged.neoforge.debug.block
-
Uses of Packet in net.neoforged.neoforge.entity
-
Uses of Packet in net.neoforged.neoforge.network
Modifier and TypeMethodDescriptionprivate static Packet
<?> PacketDistributor.makeClientboundPacket
(CustomPacketPayload payload, CustomPacketPayload... payloads) -
Uses of Packet in net.neoforged.neoforge.network.bundle
Modifier and TypeMethodDescription -
Uses of Packet in net.neoforged.neoforge.network.configuration
-
Uses of Packet in net.neoforged.neoforge.network.filters
Modifier and TypeFieldDescriptionVanillaPacketFilter.handlers
VanillaPacketFilter.handlers
VanillaPacketFilter.handlers
Modifier 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.Modifier and TypeMethodDescriptionprivate static Packet
<?> GenericPacketSplitter.createPacket
(PacketFlow flow, byte[] payload) Modifier 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.Modifier 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) Modifier 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.ModifierConstructorDescriptionprotected
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
-
Uses of Packet in net.neoforged.neoforge.network.registration
Modifier 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.Modifier 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) Modifier 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. -
Uses of Packet in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeMethodDescription@Nullable Packet
<ClientGamePacketListener> CustomItemDisplayContextTest.ItemHangerBlockEntity.getUpdatePacket()
-
Uses of Packet in net.neoforged.neoforge.oldtest.entity
Modifier and TypeMethodDescriptionPartEntityTest.TestEntityPart.getAddEntityPacket
(ServerEntity serverEntity) -
Uses of Packet in net.neoforged.testframework.gametest
Modifier and TypeMethodDescription<T extends Packet<? extends ClientCommonPacketListener>>
Stream<T> GameTestPlayer.getOutboundPackets
(Class<T> type) Modifier and TypeMethodDescriptionprivate Stream
<Packet<? extends ClientCommonPacketListener>> GameTestPlayer.outboundPackets()
BundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.