Uses of Interface
net.minecraft.network.protocol.Packet
Package
Description
-
Uses of Packet in net.minecraft.client.multiplayer
-
Uses of Packet in net.minecraft.network
Modifier and TypeFieldDescription(package private) final Packet<?>
Connection.PacketHolder.packet
Modifier and TypeFieldDescriptionConnectionProtocol.PacketSet.classToId
private final List<Function<FriendlyByteBuf,
? extends Packet<T>>> ConnectionProtocol.PacketSet.idToDeserializer
private static final Map<Class<? extends Packet<?>>,
ConnectionProtocol> ConnectionProtocol.PROTOCOL_BY_PACKET
Modifier and TypeMethodDescription<P extends Packet<T>>
ConnectionProtocol.PacketSet<T>ConnectionProtocol.PacketSet.addPacket
(Class<P> p_178331_, Function<FriendlyByteBuf, P> p_178332_) Modifier and TypeMethodDescriptionPacket<?>
ConnectionProtocol.createPacket
(PacketFlow p_178322_, int p_178323_, FriendlyByteBuf p_178324_) Packet<?>
ConnectionProtocol.PacketSet.createPacket
(int p_178328_, FriendlyByteBuf p_178329_) Modifier and TypeMethodDescriptionConnectionProtocol.PacketSet.getAllPackets()
ConnectionProtocol.getPacketsByIds
(PacketFlow p_195621_) Modifier and TypeMethodDescriptionprotected void
Connection.channelRead0
(io.netty.channel.ChannelHandlerContext p_129487_, Packet<?> p_129488_) private void
Connection.doSendPacket
(Packet<?> p_178304_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_178305_, ConnectionProtocol p_178306_, ConnectionProtocol p_178307_) protected void
PacketEncoder.encode
(io.netty.channel.ChannelHandlerContext p_130545_, Packet<?> p_130546_, io.netty.buffer.ByteBuf p_130547_) private static <T extends PacketListener>
voidConnection.genericsFtw
(Packet<T> p_129518_, PacketListener p_129519_) ConnectionProtocol.getPacketId
(PacketFlow p_129598_, Packet<?> p_129599_) static ConnectionProtocol
ConnectionProtocol.getProtocolForPacket
(Packet<?> p_129593_) void
void
Connection.send
(Packet<?> p_129515_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_129516_) private void
Connection.sendPacket
(Packet<?> p_129521_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_129522_) ModifierConstructorDescriptionPacketHolder
(Packet<?> p_129561_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_129562_) -
Uses of Packet in net.minecraft.network.protocol
Modifier and TypeMethodDescriptionstatic <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_) -
Uses of Packet in net.minecraft.network.protocol.game
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
final record
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
class
class
class
final record
class
class
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
class
class
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
class
class
class
class
class
class
class
class
class
class
class
class
final record
class
class
class
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
class
class
-
Uses of Packet in net.minecraft.network.protocol.handshake
-
Uses of Packet in net.minecraft.network.protocol.login
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
-
Uses of Packet in net.minecraft.network.protocol.status
Modifier and TypeClassDescriptionclass
class
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
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_) void
ServerPlayer.trackChunk
(ChunkPos p_184136_, Packet<?> p_184137_) 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
-
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 TypeMethodDescriptionPacket<?>
AreaEffectCloud.getAddEntityPacket()
abstract Packet<?>
Entity.getAddEntityPacket()
Packet<?>
ExperienceOrb.getAddEntityPacket()
Packet<?>
LightningBolt.getAddEntityPacket()
Packet<?>
LivingEntity.getAddEntityPacket()
Packet<?>
Marker.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.boss
-
Uses of Packet in net.minecraft.world.entity.boss.enderdragon
-
Uses of Packet in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionPacket<?>
ItemFrame.getAddEntityPacket()
Packet<?>
LeashFenceKnotEntity.getAddEntityPacket()
Packet<?>
Painting.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionPacket<?>
FallingBlockEntity.getAddEntityPacket()
Packet<?>
ItemEntity.getAddEntityPacket()
Packet<?>
PrimedTnt.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionPacket<?>
AbstractHurtingProjectile.getAddEntityPacket()
Packet<?>
EvokerFangs.getAddEntityPacket()
Packet<?>
EyeOfEnder.getAddEntityPacket()
Packet<?>
FishingHook.getAddEntityPacket()
Packet<?>
Projectile.getAddEntityPacket()
-
Uses of Packet in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionPacket<?>
AbstractMinecart.getAddEntityPacket()
Packet<?>
Boat.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.minecraftforge.common.util
-
Uses of Packet in net.minecraftforge.debug.client.model
Modifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener>
CustomTransformTypeTest.ItemHangerBlockEntity.getUpdatePacket()
-
Uses of Packet in net.minecraftforge.debug.entity
-
Uses of Packet in net.minecraftforge.entity
-
Uses of Packet in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate final BiFunction<PacketDistributor<T>,
Supplier<T>, Consumer<Packet<?>>> PacketDistributor.functor
NetworkDirection.packetClass
PacketDistributor.PacketTarget.packetConsumer
private static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet>,
NetworkDirection> NetworkDirection.packetLookup
Modifier and TypeMethodDescription<T extends Packet<?>>
ICustomPacket<T>NetworkDirection.buildPacket
(org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf, Integer> packetData, ResourceLocation channelName) Modifier and TypeMethodDescriptionstatic Packet<?>
NetworkHooks.getEntitySpawningPacket
(Entity entity) Modifier and TypeMethodDescriptionPacketDistributor.clientToServer
(Supplier<Void> voidSupplier) NetworkDirection.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) ModifierConstructorDescriptionprivate
NetworkDirection
(BiFunction<ICustomPacket<?>, Supplier<NetworkEvent.Context>, NetworkEvent> eventSupplier, LogicalSide logicalSide, Class<? extends Packet> clazz, int i) PacketDistributor
(BiFunction<PacketDistributor<T>, Supplier<T>, Consumer<Packet<?>>> functor, NetworkDirection direction) (package private)
PacketTarget
(Consumer<Packet<?>> packetConsumer, PacketDistributor<?> distributor) -
Uses of Packet in net.minecraftforge.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 TypeMethodDescriptionForgeConnectionNetworkFilter.buildHandlers
(Connection manager) ForgeConnectionNetworkFilter.buildHandlers
(Connection manager) ForgeConnectionNetworkFilter.buildHandlers
(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 boolean
VanillaPacketSplitter.heuristicIsDefinitelySmallEnough
(Packet<?> packet) private static void
ForgeConnectionNetworkFilter.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
ForgeConnectionNetworkFilter.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.minecraftforge.network.simple
Modifier and TypeMethodDescription<MSG> Packet<?>
SimpleChannel.toVanillaPacket
(MSG message, NetworkDirection direction)