Uses of Class
net.minecraft.network.Connection
Packages that use 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
Fields in net.minecraft.client declared as Connection -
Uses of Connection in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as Connection -
Uses of Connection in net.minecraft.client.gui.screens.multiplayer
Fields in net.minecraft.client.gui.screens.multiplayer declared as ConnectionConstructors in net.minecraft.client.gui.screens.multiplayer with parameters of type Connection -
Uses of Connection in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as ConnectionModifier and TypeFieldDescriptionfinal Connection
ClientCommonPacketListenerImpl.connection
private final Connection
ClientHandshakePacketListenerImpl.connection
Fields in net.minecraft.client.multiplayer with type parameters of type ConnectionMethods in net.minecraft.client.multiplayer that return ConnectionModifier and TypeMethodDescriptionClientCommonPacketListenerImpl.getConnection()
ClientPacketListener.getConnection()
Constructors in net.minecraft.client.multiplayer with parameters of type ConnectionModifierConstructorDescriptionprotected
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
Methods in net.minecraft.client.resources.server with parameters of type ConnectionModifier 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
Subclasses of Connection in net.minecraft.networkFields in net.minecraft.network with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate final Queue<Consumer<Connection>>
Connection.pendingActions
Methods in net.minecraft.network that return ConnectionModifier and TypeMethodDescriptionstatic Connection
Connection.connectToLocalServer
(SocketAddress p_129494_) static Connection
Connection.connectToServer
(InetSocketAddress p_178301_, boolean p_178302_, SampleLogger p_298674_) Methods in net.minecraft.network with parameters of type ConnectionModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFuture
Connection.connect
(InetSocketAddress p_290034_, boolean p_290035_, Connection p_290031_) Method parameters in net.minecraft.network with type arguments of type ConnectionModifier and TypeMethodDescriptionvoid
Connection.runOnceConnected
(Consumer<Connection> p_294674_) -
Uses of Connection in net.minecraft.realms
Fields in net.minecraft.realms declared as Connection -
Uses of Connection in net.minecraft.server.network
Fields in net.minecraft.server.network declared as ConnectionModifier 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
Fields in net.minecraft.server.network with type parameters of type ConnectionModifier and TypeFieldDescription(package private) final List<Connection>
ServerConnectionListener.connections
Methods in net.minecraft.server.network that return ConnectionMethods in net.minecraft.server.network that return types with arguments of type ConnectionConstructors in net.minecraft.server.network with parameters of type ConnectionModifierConstructorDescriptionMemoryServerHandshakePacketListenerImpl
(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
Methods in net.minecraft.server.players with parameters of type ConnectionModifier and TypeMethodDescriptionvoid
PlayerList.placeNewPlayer
(Connection p_11262_, ServerPlayer p_11263_, CommonListenerCookie p_301988_) -
Uses of Connection in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type ConnectionModifier 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
Fields in net.neoforged.neoforge.client.event declared as ConnectionMethods in net.neoforged.neoforge.client.event that return ConnectionModifier and TypeMethodDescriptionClientPlayerNetworkEvent.getConnection()
Returns the network connection for the player.@Nullable Connection
ClientPlayerNetworkEvent.LoggingOut.getConnection()
Returns the network connection for the player, may benull
.Constructors in net.neoforged.neoforge.client.event with parameters of type ConnectionModifierConstructorDescriptionprotected
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
Methods in net.neoforged.neoforge.common.extensions that return ConnectionModifier and TypeMethodDescriptionIClientCommonPacketListenerExtension.getConnection()
Exposes the raw underlying connection.IServerCommonPacketListenerExtension.getConnection()
Returns the connection this listener is attached to.Methods in net.neoforged.neoforge.common.extensions with parameters of type ConnectionModifier 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
Subclasses of Connection in net.neoforged.neoforge.common.utilFields in net.neoforged.neoforge.common.util declared as ConnectionModifier and TypeFieldDescriptionprivate static final Connection
FakePlayer.FakePlayerNetHandler.DUMMY_CONNECTION
-
Uses of Connection in net.neoforged.neoforge.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type ConnectionModifier and TypeMethodDescriptionvoid
BlockPropertyTests.LightBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt) -
Uses of Connection in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ConnectionMethods in net.neoforged.neoforge.event.entity.player that return ConnectionConstructors in net.neoforged.neoforge.event.entity.player with parameters of type ConnectionModifierConstructorDescriptionPlayerNegotiationEvent
(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures) -
Uses of Connection in net.neoforged.neoforge.network.connection
Fields in net.neoforged.neoforge.network.connection with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate static io.netty.util.AttributeKey<Connection>
ConnectionUtils.ATTRIBUTE_CONNECTION
Methods in net.neoforged.neoforge.network.connection that return ConnectionModifier and TypeMethodDescriptionstatic Connection
ConnectionUtils.getConnection
(io.netty.channel.ChannelHandlerContext connection) Gets theConnection
object from theChannelHandlerContext
object.Methods in net.neoforged.neoforge.network.connection with parameters of type ConnectionModifier 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
Fields in net.neoforged.neoforge.network.filters with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate static final Map<String,
Function<Connection, DynamicChannelHandler>> NetworkFilters.instances
Methods in net.neoforged.neoforge.network.filters with parameters of type ConnectionModifier 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) Constructors in net.neoforged.neoforge.network.filters with parameters of type Connection -
Uses of Connection in net.neoforged.neoforge.network.registration
Methods in net.neoforged.neoforge.network.registration with parameters of type ConnectionModifier 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
Methods in net.neoforged.neoforge.oldtest.block with parameters of type ConnectionModifier and TypeMethodDescriptionvoid
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt) -
Uses of Connection in net.neoforged.neoforge.oldtest.client.model
Methods in net.neoforged.neoforge.oldtest.client.model with parameters of type ConnectionModifier and TypeMethodDescriptionvoid
CustomItemDisplayContextTest.ItemHangerBlockEntity.onDataPacket
(Connection net, ClientboundBlockEntityDataPacket pkt)