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 TypeFieldDescriptionprotected final Connection
ClientCommonPacketListenerImpl.connection
private final Connection
ClientHandshakePacketListenerImpl.connection
Fields in net.minecraft.client.multiplayer with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate final List
<Connection> ServerStatusPinger.connections
A list of NetworkManagers that have pending pingsMethods 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 pMinecraft, Connection pConnection, CommonListenerCookie pCommonListenerCookie) ClientConfigurationPacketListenerImpl
(Minecraft pMinecraft, Connection pConnection, CommonListenerCookie pCommonListenerCookie) ClientHandshakePacketListenerImpl
(Connection pConnection, Minecraft pMinecraft, ServerData pServerData, Screen pParent, boolean pNewWorld, Duration pWorldLoadDuration, Consumer<Component> pUpdateStatus, TransferState pCookies) ClientPacketListener
(Minecraft pMinecraft, Connection pConnection, CommonListenerCookie pCommonListenerCookie) -
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 pConnection, ServerPackManager.PackPromptStatus pPackPromptStatus) private static PackLoadFeedback
DownloadedPackSource.createPackResponseSender
(Connection pConnection) -
Uses of Connection in net.minecraft.network
Subclasses of Connection in net.minecraft.networkModifier and TypeClassDescriptionclass
Variant ofConnection
that monitors the amount of received packets and disables receiving if the set limit is exceeded.Fields 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 pAddress) Prepares a clientside Connection for a local in-memory connection ("single player").static Connection
Connection.connectToServer
(InetSocketAddress pAddress, boolean pUseEpollIfAvailable, LocalSampleLogger pSampleLogger) 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 Connection -
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
protected 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
A list containing all NetworkManager instances of all endpointsMethods 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 pServer, Connection pConnection) ServerCommonPacketListenerImpl
(MinecraftServer pServer, Connection pConnection, CommonListenerCookie pCookie) ServerConfigurationPacketListenerImpl
(MinecraftServer pServer, Connection pConnection, CommonListenerCookie pCookie) ServerGamePacketListenerImpl
(MinecraftServer pServer, Connection pConnection, ServerPlayer pPlayer, CommonListenerCookie pCookie) ServerHandshakePacketListenerImpl
(MinecraftServer pServer, Connection pConnection) ServerLoginPacketListenerImpl
(MinecraftServer pServer, Connection pConnection, boolean pTransferred) ServerStatusPacketListenerImpl
(ServerStatus pStatus, Connection pConnection) ServerStatusPacketListenerImpl
(ServerStatus pStatus, Connection pConnection, @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 pConnection, ServerPlayer pPlayer, CommonListenerCookie pCookie) -
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 TypeMethodDescriptionICommonPacketListener.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, HolderLookup.Provider lookupProvider) 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, HolderLookup.Provider holderLookup) -
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
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) -
Uses of Connection in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling that return ConnectionModifier and TypeMethodDescriptiondefault Connection
IPayloadContext.connection()
Returns the connection. -
Uses of Connection in net.neoforged.neoforge.network.registration
Methods in net.neoforged.neoforge.network.registration with parameters of type ConnectionModifier and TypeMethodDescriptionstatic void
NetworkRegistry.configureMockConnection
(Connection connection) Configures a mock connection for use in game tests.static @Nullable ConnectionType
ChannelAttributes.getConnectionType
(Connection connection) static ConnectionType
NetworkRegistry.getConnectionType
(Connection connection) static Set
<ResourceLocation> ChannelAttributes.getOrCreateAdHocChannels
(Connection connection) Returns a mutable set of the currently known ad-hoc channels.static Set
<ResourceLocation> ChannelAttributes.getOrCreateCommonChannels
(Connection connection, ConnectionProtocol protocol) Returns a mutable set of the currently known common channels for the given protocol.static @Nullable NetworkPayloadSetup
ChannelAttributes.getPayloadSetup
(Connection connection) static boolean
NetworkRegistry.hasChannel
(Connection connection, @Nullable ConnectionProtocol protocol, ResourceLocation payloadId) Indicates whether the given connection has a connection setup that can transmit the given payload id.static void
NetworkRegistry.onMinecraftRegister
(Connection connection, Set<ResourceLocation> resourceLocations) Invoked to add to the known ad-hoc channels on a connection.static void
NetworkRegistry.onMinecraftUnregister
(Connection connection, Set<ResourceLocation> resourceLocations) Invoked to remove from the known ad-hoc channels on a connection.static void
ChannelAttributes.setConnectionType
(Connection connection, ConnectionType type) static void
ChannelAttributes.setPayloadSetup
(Connection connection, NetworkPayloadSetup setup) -
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, HolderLookup.Provider holderLookup) -
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, HolderLookup.Provider lookupProvider)