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 ConnectionClientCommonPacketListenerImpl.connectionprivate final ConnectionClientHandshakePacketListenerImpl.connectionFields in net.minecraft.client.multiplayer with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate final List<Connection> ServerStatusPinger.connectionsA 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 ConnectionModifierConstructorDescriptionprotectedClientCommonPacketListenerImpl(Minecraft minecraft, Connection connection, CommonListenerCookie commonListenerCookie) ClientConfigurationPacketListenerImpl(Minecraft minecraft, Connection connection, CommonListenerCookie commonListenerCookie) ClientHandshakePacketListenerImpl(Connection connection, Minecraft minecraft, ServerData serverData, Screen parent, boolean newWorld, Duration worldLoadDuration, Consumer<Component> updateStatus, TransferState cookies) ClientPacketListener(Minecraft minecraft, Connection connection, CommonListenerCookie commonListenerCookie) -
Uses of Connection in net.minecraft.client.resources.server
Methods in net.minecraft.client.resources.server with parameters of type ConnectionModifier and TypeMethodDescriptionvoidDownloadedPackSource.configureForServerControl(Connection connection, ServerPackManager.PackPromptStatus packPromptStatus) private static PackLoadFeedbackDownloadedPackSource.createPackResponseSender(Connection connection) -
Uses of Connection in net.minecraft.network
Subclasses of Connection in net.minecraft.networkModifier and TypeClassDescriptionclassVariant ofConnectionthat 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.pendingActionsMethods in net.minecraft.network that return ConnectionModifier and TypeMethodDescriptionstatic ConnectionConnection.connectToLocalServer(SocketAddress address) Prepares a clientside Connection for a local in-memory connection ("single player").static ConnectionConnection.connectToServer(InetSocketAddress address, boolean useEpollIfAvailable, LocalSampleLogger sampleLogger) Methods in net.minecraft.network with parameters of type ConnectionModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFutureConnection.connect(InetSocketAddress address, boolean useEpollIfAvailable, Connection connection) 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 ConnectionMemoryServerHandshakePacketListenerImpl.connectionprotected final ConnectionServerCommonPacketListenerImpl.connectionprivate final ConnectionServerHandshakePacketListenerImpl.connection(package private) final ConnectionServerLoginPacketListenerImpl.connectionprivate final ConnectionServerStatusPacketListenerImpl.connectionFields in net.minecraft.server.network with type parameters of type ConnectionModifier and TypeFieldDescription(package private) final List<Connection> ServerConnectionListener.connectionsA 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 server, Connection connection) ServerCommonPacketListenerImpl(MinecraftServer server, Connection connection, CommonListenerCookie cookie) ServerConfigurationPacketListenerImpl(MinecraftServer server, Connection connection, CommonListenerCookie cookie) ServerGamePacketListenerImpl(MinecraftServer server, Connection connection, ServerPlayer player, CommonListenerCookie cookie) ServerHandshakePacketListenerImpl(MinecraftServer server, Connection connection) ServerLoginPacketListenerImpl(MinecraftServer server, Connection connection, boolean transferred) ServerStatusPacketListenerImpl(ServerStatus status, Connection connection) ServerStatusPacketListenerImpl(ServerStatus status, Connection connection, @Nullable String statusCache) -
Uses of Connection in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type ConnectionModifier and TypeMethodDescriptionvoidPlayerList.placeNewPlayer(Connection connection, ServerPlayer player, CommonListenerCookie cookie) -
Uses of Connection in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidClientHooks.firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager) static voidClientHooks.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 ConnectionClientPlayerNetworkEvent.LoggingOut.getConnection()Returns the network connection for the player, may benull.Constructors in net.neoforged.neoforge.client.event with parameters of type ConnectionModifierConstructorDescriptionprotectedClientPlayerNetworkEvent(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 voidIBlockEntityExtension.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 ConnectionFakePlayer.FakePlayerNetHandler.DUMMY_CONNECTION -
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_CONNECTIONMethods in net.neoforged.neoforge.network.connection that return ConnectionModifier and TypeMethodDescriptionstatic ConnectionConnectionUtils.getConnection(io.netty.channel.ChannelHandlerContext connection) Gets theConnectionobject from theChannelHandlerContextobject.Methods in net.neoforged.neoforge.network.connection with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidConnectionUtils.setConnection(io.netty.channel.ChannelHandlerContext connection, Connection value) Sets theConnectionobject to theChannelHandlerContextobject. -
Uses of Connection in net.neoforged.neoforge.network.filters
Methods in net.neoforged.neoforge.network.filters with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidNetworkFilters.cleanIfNecessary(Connection manager) GenericPacketSplitter.getRemoteCompatibility(Connection manager) static voidNetworkFilters.injectIfNecessary(Connection manager) booleanDynamicChannelHandler.isNecessary(Connection manager) booleanGenericPacketSplitter.isNecessary(Connection manager) booleanVanillaConnectionNetworkFilter.isNecessary(Connection manager) abstract booleanVanillaPacketFilter.isNecessary(Connection manager) Whether this filter is necessary on the given connection.static booleanGenericPacketSplitter.isRemoteCompatible(Connection manager) -
Uses of Connection in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling that return ConnectionModifier and TypeMethodDescriptiondefault ConnectionIPayloadContext.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 voidNetworkRegistry.configureMockConnection(Connection connection) Configures a mock connection for use in game tests.static @Nullable ConnectionTypeChannelAttributes.getConnectionType(Connection connection) static ConnectionTypeNetworkRegistry.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 NetworkPayloadSetupChannelAttributes.getPayloadSetup(Connection connection) static booleanNetworkRegistry.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 voidNetworkRegistry.onMinecraftRegister(Connection connection, Set<ResourceLocation> resourceLocations) Invoked to add to the known ad-hoc channels on a connection.static voidNetworkRegistry.onMinecraftUnregister(Connection connection, Set<ResourceLocation> resourceLocations) Invoked to remove from the known ad-hoc channels on a connection.static voidChannelAttributes.setConnectionType(Connection connection, ConnectionType type) static voidChannelAttributes.setPayloadSetup(Connection connection, NetworkPayloadSetup setup)