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
void
ClientLevel.sendPacketToServer
(Packet<?> p_104734_) private void
ClientCommonPacketListenerImpl.sendWhen
(Packet<? extends ServerboundPacketListener> p_296259_, BooleanSupplier p_296086_, Duration p_294812_) 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 TypeFieldDescription(package private) final it.unimi.dsi.fastutil.objects.Object2IntMap<Class<? extends Packet<? super T>>>
ConnectionProtocol.PacketSet.classToId
ConnectionProtocol.PacketSet.extraClasses
private final List<Function<FriendlyByteBuf,
? extends Packet<? super T>>> ConnectionProtocol.PacketSet.idToDeserializer
Modifier and TypeMethodDescription<P extends Packet<? super T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.addPacket
(Class<P> p_178331_, Function<FriendlyByteBuf, P> p_178332_) Modifier and TypeMethodDescriptionPacket<?>
ConnectionProtocol.CodecData.createPacket
(int p_294972_, FriendlyByteBuf p_296217_) Packet<?>
ConnectionProtocol.PacketSet.createPacket
(int p_178328_, FriendlyByteBuf p_178329_) default Packet<?>
PacketSendListener.onFailure()
Modifier and TypeMethodDescriptionConnectionProtocol.getPacketsByIds
(PacketFlow p_195621_) ConnectionProtocol.CodecData.packetsByIds()
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_) protected void
PacketFlowValidator.decode
(io.netty.channel.ChannelHandlerContext p_294271_, Packet<?> p_296315_, List<Object> p_294768_) private void
Connection.doSendPacket
(Packet<?> p_243260_, PacketSendListener p_243290_, boolean p_294125_) protected void
PacketBundleUnpacker.encode
(io.netty.channel.ChannelHandlerContext p_265691_, Packet<?> p_265038_, List<Object> p_265735_) protected void
PacketEncoder.encode
(io.netty.channel.ChannelHandlerContext p_130545_, Packet<?> p_130546_, io.netty.buffer.ByteBuf p_130547_) protected void
PacketFlowValidator.encode
(io.netty.channel.ChannelHandlerContext p_296253_, Packet<?> p_296139_, List<Object> p_295975_) private static <T extends PacketListener>
voidConnection.genericsFtw
(Packet<T> p_129518_, PacketListener p_129519_) boolean
ConnectionProtocol.CodecData.isValidPacketType
(Packet<?> p_294142_) int
void
void
Connection.send
(Packet<?> p_243248_, PacketSendListener p_243316_) void
Connection.send
(Packet<?> p_295839_, PacketSendListener p_294866_, boolean p_294265_) private void
Connection.sendPacket
(Packet<?> p_129521_, PacketSendListener p_243246_, boolean p_294510_) default boolean
PacketListener.shouldHandleMessage
(Packet<?> p_295210_) static void
ProtocolSwapHandler.swapProtocolIfNeeded
(io.netty.util.Attribute<ConnectionProtocol.CodecData<?>> p_295842_, Packet<?> p_294980_) private static void
PacketFlowValidator.validatePacket
(io.netty.channel.ChannelHandlerContext p_294940_, Packet<?> p_294901_, List<Object> p_296334_, io.netty.util.AttributeKey<ConnectionProtocol.CodecData<?>> p_296035_) Modifier and TypeMethodDescriptionstatic PacketSendListener
PacketSendListener.exceptionallySend
(Supplier<Packet<?>> p_243289_) <P extends BundlePacket<T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.withBundlePacket
(Class<P> p_265034_, Function<Iterable<Packet<T>>, P> p_265591_) -
Uses of Packet in net.minecraft.network.protocol
Modifier and TypeClassDescriptionclass
BundleDelimiterPacket<T extends PacketListener>
class
BundlePacket<T extends PacketListener>
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_) BundlerInfo.startPacketBundling
(Packet<?> p_265162_) void
BundlerInfo.unbundlePacket
(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Modifier and TypeMethodDescriptionstatic <T extends PacketListener,
P extends BundlePacket<T>>
BundlerInfoBundlerInfo.createForPacket
(Class<P> p_265438_, Function<Iterable<Packet<T>>, P> p_265627_, BundleDelimiterPacket<T> p_265373_) void
BundlerInfo.unbundlePacket
(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) -
Uses of Packet in net.minecraft.network.protocol.common
Modifier and TypeClassDescriptionfinal record
class
class
class
class
class
final record
final record
class
class
class
-
Uses of Packet in net.minecraft.network.protocol.configuration
Modifier and TypeClassDescriptionfinal record
final record
final record
final record
-
Uses of Packet in net.minecraft.network.protocol.game
Modifier and TypeClassDescriptionclass
class
class
class
final record
class
class
class
class
class
class
class
final record
final record
final record
class
class
class
class
class
class
class
class
final record
final record
final record
final record
class
class
final record
class
class
final record
class
class
class
class
class
final record
class
class
class
static class
static class
static class
class
class
class
class
class
class
final record
class
class
class
final record
class
class
class
class
class
class
final record
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
final record
class
class
class
class
class
class
class
class
class
final record
class
class
class
class
class
class
final record
class
final record
class
class
class
class
class
class
class
class
class
class
class
final record
final record
final record
final record
final record
class
class
final record
class
class
class
class
class
class
class
class
class
static class
static class
static class
static class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
ModifierConstructorDescriptionClientboundBundlePacket
(Iterable<Packet<ClientGamePacketListener>> p_265231_) -
Uses of Packet in net.minecraft.network.protocol.handshake
-
Uses of Packet in net.minecraft.network.protocol.login
Modifier and TypeClassDescriptionfinal record
class
class
class
class
final record
final record
class
final record
-
Uses of Packet in net.minecraft.network.protocol.status
Modifier and TypeClassDescriptionclass
final record
class
class
-
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 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_) Modifier and TypeMethodDescriptionvoid
ServerEntity.sendPairingData
(ServerPlayer p_289562_, Consumer<Packet<ClientGamePacketListener>> p_289563_) 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
-
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()
ExperienceOrb.getAddEntityPacket()
Marker.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.boss
-
Uses of Packet in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionItemFrame.getAddEntityPacket()
LeashFenceKnotEntity.getAddEntityPacket()
Painting.getAddEntityPacket()
-
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()
FishingHook.getAddEntityPacket()
Projectile.getAddEntityPacket()
-
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.saveddata.maps
Modifier and TypeMethodDescriptionPacket<?>
MapItemSavedData.getUpdatePacket
(int p_164797_, Player p_164798_) (package private) Packet<?>
MapItemSavedData.HoldingPlayer.nextUpdatePacket
(int p_164816_) -
Uses of Packet in net.neoforged.neoforge.common.util
Modifier and TypeMethodDescriptionvoid
void
FakePlayer.FakePlayerNetHandler.send
(Packet<?> packet, @Nullable PacketSendListener sendListener) -
Uses of Packet in net.neoforged.neoforge.debug.block
Modifier and TypeMethodDescriptionLevelSensitiveLightBlockTest.LightBlockEntity.getUpdatePacket()
-
Uses of Packet in net.neoforged.neoforge.debug.client.model
Modifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener>
CustomItemDisplayContextTest.ItemHangerBlockEntity.getUpdatePacket()
-
Uses of Packet in net.neoforged.neoforge.debug.entity
-
Uses of Packet in net.neoforged.neoforge.entity
-
Uses of Packet in net.neoforged.neoforge.network
Modifier and TypeInterfaceDescriptionprivate static interface
LoginNetworkDirection.Factory<T extends Packet<?>>
private static interface
PlayNetworkDirection.Factory<T extends Packet<?>>
Modifier and TypeFieldDescriptionprivate final BiFunction<INetworkDirection.PacketData,
ResourceLocation, Packet<?>> NetworkEvent.PacketDispatcher.NetworkManagerDispatcher.customPacketSupplier
private final BiFunction<PacketDistributor<T>,
Supplier<T>, Consumer<Packet<?>>> PacketDistributor.functor
private static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet<?>>,
LoginNetworkDirection> LoginNetworkDirection.PACKET_LOOKUP
LoginNetworkDirection.packetClass
PlayNetworkDirection.packetClass
PacketDistributor.PacketTarget.packetConsumer
private static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet<?>>,
PlayNetworkDirection> PlayNetworkDirection.packetLookup
Modifier and TypeMethodDescriptionstatic <T extends Packet<?>>
LoginNetworkDirectionLoginNetworkDirection.directionForPayload
(Class<T> customPacket) static <T extends Packet<?>>
PlayNetworkDirectionPlayNetworkDirection.directionForPayload
(Class<T> customPacket) Modifier and TypeMethodDescriptionPacket<?>
INetworkDirection.buildPacket
(INetworkDirection.PacketData packetData, ResourceLocation channelName) Packet<?>
LoginNetworkDirection.buildPacket
(INetworkDirection.PacketData packetData, ResourceLocation channelName) Packet<?>
PlayNetworkDirection.buildPacket
(INetworkDirection.PacketData packetData, ResourceLocation channelName) static Packet<ClientGamePacketListener>
NetworkHooks.getEntitySpawningPacket
(Entity entity) Modifier and TypeMethodDescriptionPacketDistributor.clientToServer
(Supplier<Void> voidSupplier) LoginNetworkDirection.getPacketClass()
PlayNetworkDirection.getPacketClass()
PacketDistributor.networkManagerList
(Supplier<List<Connection>> nmListSupplier) PacketDistributor.playerConsumer
(Supplier<ServerPlayer> entityPlayerMPSupplier) PacketDistributor.playerListAll
(Supplier<Void> voidSupplier) PacketDistributor.playerListDimConsumer
(Supplier<ResourceKey<Level>> dimensionTypeSupplier) PacketDistributor.playerListPointConsumer
(Supplier<PacketDistributor.TargetPoint> targetPointSupplier) PacketDistributor.trackingChunk
(Supplier<LevelChunk> chunkPosSupplier) PacketDistributor.trackingEntity
(Supplier<Entity> entitySupplier) PacketDistributor.trackingEntityAndSelf
(Supplier<Entity> entitySupplier) Modifier and TypeMethodDescriptiondefault PlayNetworkDirection
ICustomPacketPayloadWithBuffer.getDirection
(Packet<?> packet) The network direction in which this payload can be transmitted.default LoginNetworkDirection
ICustomQueryPayloadWithBuffer.getDirection
(Packet<?> packet) The network direction in which this payload can be transmitted.static boolean
NetworkHooks.onCustomPayload
(Packet<?> packet, ICustomPacketPayloadWithBuffer payload, Connection manager) static boolean
NetworkHooks.onCustomQuery
(Packet<?> packet, ICustomQueryPayloadWithBuffer payload, Connection manager) void
private static boolean
NetworkHooks.validateSideForProcessing
(Packet<?> packet, ICustomPacketPayloadWithBuffer payload, NetworkInstance ni, Connection manager) private static boolean
NetworkHooks.validateSideForProcessing
(Packet<?> packet, ICustomQueryPayloadWithBuffer payload, NetworkInstance ni, Connection manager) ModifierConstructorDescriptionprivate
LoginNetworkDirection
(BiFunction<ICustomQueryPayloadWithBuffer, NetworkEvent.Context, NetworkEvent> eventSupplier, net.neoforged.fml.LogicalSide logicalSide, Class<? extends Packet<?>> clazz, int i, LoginNetworkDirection.Factory<?> factory) (package private)
NetworkManagerDispatcher
(Connection manager, int packetIndex, BiFunction<INetworkDirection.PacketData, ResourceLocation, Packet<?>> customPacketSupplier) PacketDistributor
(BiFunction<PacketDistributor<T>, Supplier<T>, Consumer<Packet<?>>> functor, PlayNetworkDirection direction) (package private)
PacketTarget
(Consumer<Packet<?>> packetConsumer, PacketDistributor<?> distributor) private
PlayNetworkDirection
(BiFunction<ICustomPacketPayloadWithBuffer, NetworkEvent.Context, NetworkEvent> eventSupplier, net.neoforged.fml.LogicalSide logicalSide, Class<? extends Packet<?>> clazz, int i, PlayNetworkDirection.Factory<?> factory) -
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 TypeMethodDescriptionNeoForgeConnectionNetworkFilter.buildHandlers
(@Nullable Connection manager) NeoForgeConnectionNetworkFilter.buildHandlers
(@Nullable Connection manager) NeoForgeConnectionNetworkFilter.buildHandlers
(@Nullable Connection manager) 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.protected static <T extends Packet<?>>
Map.Entry<Class<? extends Packet<?>>,BiConsumer<Packet<?>, List<? super Packet<?>>>> Helper function for building the handler map.Modifier and TypeMethodDescriptionstatic void
VanillaPacketSplitter.appendPackets
(ConnectionProtocol protocol, PacketFlow direction, Packet<?> packet, List<? super Packet<?>> out) Append the given packet to the given list.protected void
VanillaPacketFilter.encode
(io.netty.channel.ChannelHandlerContext ctx, Packet<?> msg, List<Object> out) private static <T extends PacketListener>
voidVanillaPacketSplitter.genericsFtw
(Packet<T> pkt, Object listener) private static boolean
VanillaPacketSplitter.heuristicIsDefinitelySmallEnough
(Packet<?> packet) private static void
NeoForgeConnectionNetworkFilter.splitPacket
(Packet<?> packet, List<? super Packet<?>> out) Modifier and TypeMethodDescriptionstatic void
VanillaPacketSplitter.appendPackets
(ConnectionProtocol protocol, PacketFlow direction, Packet<?> packet, List<? super Packet<?>> out) Append the given packet to the given list.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.private static void
NeoForgeConnectionNetworkFilter.splitPacket
(Packet<?> packet, List<? super Packet<?>> out) 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.simple
Modifier and TypeMethodDescription<MSG> Packet<?>
SimpleChannel.toVanillaPacket
(MSG message, PlayNetworkDirection direction)