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 TypeMethodDescriptionvoidvoidClientLevel.sendPacketToServer(Packet<?> p_104734_) private voidClientCommonPacketListenerImpl.sendWhen(Packet<? extends ServerboundPacketListener> p_300852_, BooleanSupplier p_299754_, Duration p_299011_) 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 with type parameters of type PacketModifier and TypeFieldDescription(package private) final it.unimi.dsi.fastutil.objects.Object2IntMap<Class<? extends Packet<? super T>>>ConnectionProtocol.PacketSet.classToIdConnectionProtocol.PacketSet.extraClassesprivate final List<Function<FriendlyByteBuf,? extends Packet<? super T>>> ConnectionProtocol.PacketSet.idToDeserializerMethods in net.minecraft.network with type parameters of type PacketModifier and TypeMethodDescription<P extends Packet<? super T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.addPacket(Class<P> p_178331_, Function<FriendlyByteBuf, P> p_178332_) Methods in net.minecraft.network that return PacketModifier and TypeMethodDescriptionPacket<?>ConnectionProtocol.CodecData.createPacket(int p_298171_, FriendlyByteBuf p_299179_) Packet<?>ConnectionProtocol.PacketSet.createPacket(int p_178328_, FriendlyByteBuf p_178329_) default Packet<?>PacketSendListener.onFailure()Methods in net.minecraft.network that return types with arguments of type PacketModifier and TypeMethodDescriptionConnectionProtocol.getPacketsByIds(PacketFlow p_195621_) ConnectionProtocol.CodecData.packetsByIds()Methods in net.minecraft.network with parameters of type PacketModifier and TypeMethodDescriptionprotected voidConnection.channelRead0(io.netty.channel.ChannelHandlerContext p_129487_, Packet<?> p_129488_) protected voidPacketBundlePacker.decode(io.netty.channel.ChannelHandlerContext p_265208_, Packet<?> p_265182_, List<Object> p_265368_) protected voidPacketFlowValidator.decode(io.netty.channel.ChannelHandlerContext p_298853_, Packet<?> p_300545_, List<Object> p_299821_) private voidConnection.doSendPacket(Packet<?> p_243260_, PacketSendListener p_243290_, boolean p_299937_) protected voidPacketBundleUnpacker.encode(io.netty.channel.ChannelHandlerContext p_265691_, Packet<?> p_265038_, List<Object> p_265735_) protected voidPacketEncoder.encode(io.netty.channel.ChannelHandlerContext p_130545_, Packet<?> p_130546_, io.netty.buffer.ByteBuf p_130547_) protected voidPacketFlowValidator.encode(io.netty.channel.ChannelHandlerContext p_299696_, Packet<?> p_298941_, List<Object> p_300232_) private static <T extends PacketListener>
voidConnection.genericsFtw(Packet<T> p_129518_, PacketListener p_129519_) booleanConnectionProtocol.CodecData.isValidPacketType(Packet<?> p_300854_) intvoidvoidConnection.send(Packet<?> p_243248_, PacketSendListener p_243316_) voidConnection.send(Packet<?> p_298754_, PacketSendListener p_300685_, boolean p_298821_) private voidConnection.sendPacket(Packet<?> p_129521_, PacketSendListener p_243246_, boolean p_299777_) default booleanPacketListener.shouldHandleMessage(Packet<?> p_299735_) static voidProtocolSwapHandler.swapProtocolIfNeeded(io.netty.util.Attribute<ConnectionProtocol.CodecData<?>> p_301205_, Packet<?> p_301125_) private static voidPacketFlowValidator.validatePacket(io.netty.channel.ChannelHandlerContext p_297391_, Packet<?> p_300731_, List<Object> p_301049_, io.netty.util.AttributeKey<ConnectionProtocol.CodecData<?>> p_297339_) Method parameters in net.minecraft.network with type arguments of type PacketModifier and TypeMethodDescriptionstatic PacketSendListenerPacketSendListener.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
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 PacketMethods in net.minecraft.network.protocol that return PacketMethods in net.minecraft.network.protocol that return types with arguments of type PacketMethods in net.minecraft.network.protocol with parameters of type PacketModifier 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_) voidBundlerInfo.unbundlePacket(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Method parameters in net.minecraft.network.protocol with type arguments of type PacketModifier 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_) voidBundlerInfo.unbundlePacket(Packet<?> p_265095_, Consumer<Packet<?>> p_265715_) Constructor parameters in net.minecraft.network.protocol with type arguments of type Packet -
Uses of Packet in net.minecraft.network.protocol.common
Classes in net.minecraft.network.protocol.common that implement PacketModifier and TypeClassDescriptionfinal recordclassclassclassfinal recordfinal recordclassfinal recordfinal recordclassclassfinal record -
Uses of Packet in net.minecraft.network.protocol.configuration
Classes in net.minecraft.network.protocol.configuration that implement PacketModifier and TypeClassDescriptionfinal recordfinal recordfinal recordfinal record -
Uses of Packet in net.minecraft.network.protocol.game
Classes in net.minecraft.network.protocol.game that implement PacketModifier and TypeClassDescriptionclassclassclassclassfinal recordclassclassclassclassclassclassclassfinal recordfinal recordfinal recordclassclassclassclassclassclassclassclassfinal recordfinal recordfinal recordfinal recordclassclassfinal recordclassclassfinal recordclassclassclassclassclassfinal recordclassclassclassstatic classstatic classstatic classclassclassclassclassclassclassfinal recordclassclassclassfinal recordclassclassclassclassclassclassfinal recordfinal recordclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassfinal recordclassclassclassclassclassclassclassclassfinal recordfinal recordclassclassclassclassclassclassfinal recordclassfinal recordclassclassclassclassfinal recordfinal recordclassclassclassclassclassclassclassfinal recordfinal recordfinal recordfinal recordfinal recordclassclassfinal recordclassclassclassfinal recordclassclassclassclassclassclassstatic classstatic classstatic classstatic classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassConstructor parameters in net.minecraft.network.protocol.game with type arguments of type PacketModifierConstructorDescriptionClientboundBundlePacket(Iterable<Packet<ClientGamePacketListener>> p_265231_) -
Uses of Packet in net.minecraft.network.protocol.handshake
Classes in net.minecraft.network.protocol.handshake that implement Packet -
Uses of Packet in net.minecraft.network.protocol.login
Classes in net.minecraft.network.protocol.login that implement PacketModifier and TypeClassDescriptionfinal recordclassclassclassclassfinal recordfinal recordclassfinal record -
Uses of Packet in net.minecraft.network.protocol.status
Classes in net.minecraft.network.protocol.status that implement PacketModifier and TypeClassDescriptionclassfinal recordclassclass -
Uses of Packet in net.minecraft.server
Methods in net.minecraft.server that return types with arguments of type PacketModifier and TypeMethodDescriptionServerScoreboard.getStartTrackingPackets(Objective p_136230_) ServerScoreboard.getStopTrackingPackets(Objective p_136234_) -
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 p_311498_, Packet<?> p_310286_) Method parameters in net.minecraft.server.commands with type arguments of type PacketModifier and TypeMethodDescriptionprivate static intTitleCommand.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
Fields in net.minecraft.server.level with type parameters of type PacketMethods in net.minecraft.server.level with parameters of type PacketModifier and TypeMethodDescriptionprivate voidChunkHolder.broadcast(List<ServerPlayer> p_288998_, Packet<?> p_289013_) voidvoidvoidprotected voidChunkMap.broadcastAndSend(Entity p_140334_, Packet<?> p_140335_) voidChunkMap.TrackedEntity.broadcastAndSend(Packet<?> p_140500_) voidServerChunkCache.broadcastAndSend(Entity p_8395_, Packet<?> p_8396_) private voidServerEntity.broadcastAndSend(Packet<?> p_8539_) private booleanServerLevel.sendParticles(ServerPlayer p_8637_, boolean p_8638_, double p_8639_, double p_8640_, double p_8641_, Packet<?> p_8642_) Method parameters in net.minecraft.server.level with type arguments of type PacketModifier and TypeMethodDescriptionvoidServerEntity.sendPairingData(ServerPlayer p_289562_, Consumer<Packet<ClientGamePacketListener>> p_289563_) Constructor parameters in net.minecraft.server.level with type arguments of type PacketModifierConstructorDescriptionServerEntity(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) -
Uses of Packet in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type PacketModifier and TypeMethodDescriptionvoidvoidServerCommonPacketListenerImpl.send(Packet<?> p_300325_, PacketSendListener p_301165_) voidbooleanServerGamePacketListenerImpl.shouldHandleMessage(Packet<?> p_298646_) 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 Packet -
Uses of Packet in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type PacketModifier and TypeMethodDescriptionvoidPlayerList.broadcast(Player p_11242_, double p_11243_, double p_11244_, double p_11245_, double p_11246_, ResourceKey<Level> p_11247_, Packet<?> p_11248_) voidPlayerList.broadcastAll(Packet<?> p_11269_) voidPlayerList.broadcastAll(Packet<?> p_11271_, ResourceKey<Level> p_11272_) -
Uses of Packet in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return PacketModifier and TypeMethodDescriptionEntity.getAddEntityPacket()ExperienceOrb.getAddEntityPacket()Marker.getAddEntityPacket() -
Uses of Packet in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss that return Packet -
Uses of Packet in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return PacketModifier and TypeMethodDescriptionItemFrame.getAddEntityPacket()LeashFenceKnotEntity.getAddEntityPacket()Painting.getAddEntityPacket() -
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 TypeMethodDescriptionAbstractHurtingProjectile.getAddEntityPacket()FishingHook.getAddEntityPacket()Projectile.getAddEntityPacket() -
Uses of Packet in net.minecraft.world.item
Methods in net.minecraft.world.item that return PacketModifier 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
Methods in net.minecraft.world.level with parameters of type Packet -
Uses of Packet in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return Packet -
Uses of Packet in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps that return PacketModifier and TypeMethodDescriptionPacket<?>MapItemSavedData.getUpdatePacket(int p_164797_, Player p_164798_) (package private) Packet<?>MapItemSavedData.HoldingPlayer.nextUpdatePacket(int p_164816_) -
Uses of Packet in net.minecraftforge.common
Methods in net.minecraftforge.common that return PacketModifier and TypeMethodDescriptionstatic Packet<ClientGamePacketListener>ForgeHooks.getEntitySpawnPacket(Entity entity) -
Uses of Packet in net.minecraftforge.common.util
Methods in net.minecraftforge.common.util with parameters of type PacketModifier and TypeMethodDescriptionprivate voidPacketLogger.common(PacketFlow side, PacketFlow flow, Packet<?> packet) voidvoid -
Uses of Packet in net.minecraftforge.entity
Methods in net.minecraftforge.entity that return Packet -
Uses of Packet in net.minecraftforge.network
Classes in net.minecraftforge.network with type parameters of type PacketModifier and TypeInterfaceDescriptioninterfaceICustomPacket<T extends Packet<?>>private static interfaceNetworkDirection.Factory<T extends Packet<?>>Fields in net.minecraftforge.network with type parameters of type PacketModifier and TypeFieldDescriptionprivate final BiFunction<PacketDistributor<T>,T, Consumer<Packet<?>>> PacketDistributor.functorThe field for thefunctorrecord component.NetworkDirection.packetClassPacketDistributor.PacketTarget.packetConsumerThe field for thepacketConsumerrecord component.private static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet>,NetworkDirection> NetworkDirection.packetLookupMethods in net.minecraftforge.network with type parameters of type PacketModifier and TypeMethodDescription<T extends Packet<?>>
ICustomPacket<T>NetworkDirection.buildPacket(FriendlyByteBuf data, ResourceLocation channelName) Methods in net.minecraftforge.network that return PacketModifier and TypeMethodDescription(package private) Packet<?>Channel.toVanillaPacket(Connection connection, MSG message) Methods in net.minecraftforge.network that return types with arguments of type PacketModifier and TypeMethodDescriptionPacketDistributor.clientToServer(Void ignored) BiFunction<PacketDistributor<T>,T, Consumer<Packet<?>>> PacketDistributor.functor()Returns the value of thefunctorrecord component.NetworkDirection.getPacketClass()PacketDistributor.networkManagerList(List<Connection> connections) PacketDistributor.PacketTarget.packetConsumer()Returns the value of thepacketConsumerrecord component.PacketDistributor.playerConsumer(ServerPlayer player) PacketDistributor.playerListAll(Void ignored) PacketDistributor.playerListDimConsumer(ResourceKey<Level> dimension) PacketDistributor.playerListPointConsumer(PacketDistributor.TargetPoint tp) PacketDistributor.trackingChunk(LevelChunk chunk) PacketDistributor.trackingEntity(Entity entity) PacketDistributor.trackingEntityAndSelf(Entity entity) Methods in net.minecraftforge.network with parameters of type PacketConstructor parameters in net.minecraftforge.network with type arguments of type PacketModifierConstructorDescriptionprivateNetworkDirection(LogicalSide logicalSide, Class<? extends Packet> clazz, int i, NetworkDirection.Factory factory) PacketDistributor(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor) PacketDistributor(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor, NetworkDirection direction) Creates an instance of aPacketDistributorrecord class.PacketTarget(Consumer<Packet<?>> packetConsumer, NetworkDirection direction) Creates an instance of aPacketTargetrecord class. -
Uses of Packet in net.minecraftforge.network.config
Fields in net.minecraftforge.network.config with type parameters of type PacketMethods in net.minecraftforge.network.config with parameters of type PacketMethod parameters in net.minecraftforge.network.config with type arguments of type PacketConstructor parameters in net.minecraftforge.network.config with type arguments of type PacketModifierConstructorDescriptionConfigurationTaskContext(Connection connection, Consumer<Packet<?>> send, Consumer<ConfigurationTask.Type> finish) -
Uses of Packet in net.minecraftforge.network.filters
Fields in net.minecraftforge.network.filters with type parameters of type PacketModifier and TypeFieldDescriptionVanillaPacketFilter.handlersVanillaPacketFilter.handlersVanillaPacketFilter.handlersMethods in net.minecraftforge.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.minecraftforge.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.minecraftforge.network.filters with parameters of type PacketModifier and TypeMethodDescriptionprotected voidVanillaPacketFilter.encode(io.netty.channel.ChannelHandlerContext ctx, Packet<?> msg, List<Object> out) Method parameters in net.minecraftforge.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.minecraftforge.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.minecraftforge.network.tasks
Method parameters in net.minecraftforge.network.tasks with type arguments of type Packet