Uses of Class
net.minecraft.network.Connection
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Connection in net.minecraft.client
-
Uses of Connection in net.minecraft.client.gui.screens
-
Uses of Connection in net.minecraft.client.gui.screens.multiplayer
-
Uses of Connection in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionfinal Connection
ClientCommonPacketListenerImpl.connection
private final Connection
ClientHandshakePacketListenerImpl.connection
Modifier and TypeMethodDescriptionClientCommonPacketListenerImpl.getConnection()
ClientPacketListener.getConnection()
ModifierConstructorDescriptionprotected
ClientCommonPacketListenerImpl
(Minecraft p_295454_, Connection p_294773_, CommonListenerCookie p_294647_) ClientConfigurationPacketListenerImpl
(Minecraft p_295262_, Connection p_296339_, CommonListenerCookie p_294706_) ClientHandshakePacketListenerImpl
(Connection p_261697_, Minecraft p_261835_, ServerData p_261938_, Screen p_261783_, boolean p_261562_, Duration p_261673_, Consumer<Component> p_261945_) ClientPacketListener
(Minecraft p_253924_, Connection p_253614_, CommonListenerCookie p_295121_) -
Uses of Connection in net.minecraft.client.resources.server
Modifier and TypeMethodDescriptionvoid
DownloadedPackSource.configureForServerControl
(Connection p_314502_, ServerPackManager.PackPromptStatus p_314463_) private static PackLoadFeedback
DownloadedPackSource.createPackResponseSender
(Connection p_314519_) -
Uses of Connection in net.minecraft.network
Modifier and TypeFieldDescriptionprivate final Queue<Consumer<Connection>>
Connection.pendingActions
Modifier and TypeMethodDescriptionstatic Connection
Connection.connectToLocalServer
(SocketAddress p_129494_) static Connection
Connection.connectToServer
(InetSocketAddress p_178301_, boolean p_178302_, SampleLogger p_298674_) Modifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFuture
Connection.connect
(InetSocketAddress p_290034_, boolean p_290035_, Connection p_290031_) Modifier and TypeMethodDescriptionvoid
Connection.runOnceConnected
(Consumer<Connection> p_294674_) -
Uses of Connection in net.minecraft.realms
-
Uses of Connection in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate final Connection
MemoryServerHandshakePacketListenerImpl.connection
final Connection
ServerCommonPacketListenerImpl.connection
private final Connection
ServerHandshakePacketListenerImpl.connection
(package private) final Connection
ServerLoginPacketListenerImpl.connection
private final Connection
ServerStatusPacketListenerImpl.connection
Modifier and TypeFieldDescription(package private) final List<Connection>
ServerConnectionListener.connections
ModifierConstructorDescriptionMemoryServerHandshakePacketListenerImpl
(MinecraftServer p_9691_, Connection p_9692_) ServerCommonPacketListenerImpl
(MinecraftServer p_295057_, Connection p_294822_, CommonListenerCookie p_301980_) ServerConfigurationPacketListenerImpl
(MinecraftServer p_294645_, Connection p_295787_, CommonListenerCookie p_302003_) ServerGamePacketListenerImpl
(MinecraftServer p_9770_, Connection p_9771_, ServerPlayer p_9772_, CommonListenerCookie p_301978_) ServerHandshakePacketListenerImpl
(MinecraftServer p_9969_, Connection p_9970_) ServerLoginPacketListenerImpl
(MinecraftServer p_10027_, Connection p_10028_) ServerStatusPacketListenerImpl
(ServerStatus p_272864_, Connection p_273586_) ServerStatusPacketListenerImpl
(ServerStatus p_272864_, Connection p_273586_, @Nullable String statusCache) -
Uses of Connection in net.minecraft.server.players
Modifier and TypeMethodDescriptionvoid
PlayerList.placeNewPlayer
(Connection p_11262_, ServerPlayer p_11263_, CommonListenerCookie p_301988_) -
Uses of Connection in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic void
ClientHooks.firePlayerLogin
(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager) static void
ClientHooks.firePlayerRespawn
(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) -
Uses of Connection in net.neoforged.neoforge.client.event
Modifier and TypeMethodDescriptionClientPlayerNetworkEvent.getConnection()
Returns the network connection for the player.@Nullable Connection
ClientPlayerNetworkEvent.LoggingOut.getConnection()
Returns the network connection for the player, may benull
.ModifierConstructorDescriptionprotected
ClientPlayerNetworkEvent
(MultiPlayerGameMode multiPlayerGameMode, LocalPlayer player, Connection connection) Clone
(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) LoggingIn
(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager) LoggingOut
(@Nullable MultiPlayerGameMode controller, @Nullable LocalPlayer player, @Nullable Connection networkManager) -
Uses of Connection in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptionIClientCommonPacketListenerExtension.getConnection()
Exposes the raw underlying connection.IServerCommonPacketListenerExtension.getConnection()
Returns the connection this listener is attached to.Modifier and TypeMethodDescriptiondefault void
IBlockEntityExtension.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt) Called when you receive a TileEntityData packet for the location this TileEntity is currently in. -
Uses of Connection in net.neoforged.neoforge.common.util
Modifier and TypeFieldDescriptionprivate static final Connection
FakePlayer.FakePlayerNetHandler.DUMMY_CONNECTION
-
Uses of Connection in net.neoforged.neoforge.debug.block
Modifier and TypeMethodDescriptionvoid
BlockPropertyTests.LightBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt) -
Uses of Connection in net.neoforged.neoforge.event.entity.player
ModifierConstructorDescriptionPlayerNegotiationEvent
(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures) -
Uses of Connection in net.neoforged.neoforge.network.connection
Modifier and TypeFieldDescriptionprivate static io.netty.util.AttributeKey<Connection>
ConnectionUtils.ATTRIBUTE_CONNECTION
Modifier and TypeMethodDescriptionstatic Connection
ConnectionUtils.getConnection
(io.netty.channel.ChannelHandlerContext connection) Gets theConnection
object from theChannelHandlerContext
object.Modifier and TypeMethodDescriptionstatic void
ConnectionUtils.setConnection
(io.netty.channel.ChannelHandlerContext connection, Connection value) Sets theConnection
object to theChannelHandlerContext
object. -
Uses of Connection in net.neoforged.neoforge.network.filters
Modifier and TypeFieldDescriptionprivate static final Map<String,
Function<Connection, DynamicChannelHandler>> NetworkFilters.instances
Modifier and TypeMethodDescriptionstatic void
NetworkFilters.cleanIfNecessary
(Connection manager) GenericPacketSplitter.getRemoteCompatibility
(Connection manager) static void
NetworkFilters.injectIfNecessary
(Connection manager) boolean
DynamicChannelHandler.isNecessary
(Connection manager) boolean
GenericPacketSplitter.isNecessary
(Connection manager) boolean
VanillaConnectionNetworkFilter.isNecessary
(Connection manager) abstract boolean
VanillaPacketFilter.isNecessary
(Connection manager) Whether this filter is necessary on the given connection.static boolean
GenericPacketSplitter.isRemoteCompatible
(Connection manager) -
Uses of Connection in net.neoforged.neoforge.network.registration
Modifier and TypeMethodDescriptionvoid
NetworkRegistry.configureMockConnection
(Connection connection) Configures a mock connection.boolean
NetworkRegistry.isVanillaConnection
(Connection connection) Indicates if the given connection is a vanilla connection. -
Uses of Connection in net.neoforged.neoforge.oldtest.block
Modifier and TypeMethodDescriptionvoid
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt) -
Uses of Connection in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeMethodDescriptionvoid
CustomItemDisplayContextTest.ItemHangerBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt)