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 ConnectionClientCommonPacketListenerImpl.connectionprivate final ConnectionClientHandshakePacketListenerImpl.connectionFields 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 ConnectionModifierConstructorDescriptionprotectedClientCommonPacketListenerImpl(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_, TransferState p_320762_) 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 TypeMethodDescriptionvoidDownloadedPackSource.configureForServerControl(Connection p_314502_, ServerPackManager.PackPromptStatus p_314463_) private static PackLoadFeedbackDownloadedPackSource.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.pendingActionsMethods in net.minecraft.network that return ConnectionModifier and TypeMethodDescriptionstatic ConnectionConnection.connectToLocalServer(SocketAddress p_129494_) static ConnectionConnection.connectToServer(InetSocketAddress p_178301_, boolean p_178302_, LocalSampleLogger p_324075_) Methods in net.minecraft.network with parameters of type ConnectionModifier and TypeMethodDescriptionstatic io.netty.channel.ChannelFutureConnection.connect(InetSocketAddress p_290034_, boolean p_290035_, Connection p_290031_) Method parameters in net.minecraft.network with type arguments of type ConnectionModifier and TypeMethodDescriptionvoidConnection.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 ConnectionMemoryServerHandshakePacketListenerImpl.connectionfinal 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.connectionsMethods 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_, boolean p_320815_) 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 TypeMethodDescriptionvoidPlayerList.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 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.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type ConnectionModifier and TypeMethodDescriptionvoidBlockPropertyTests.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_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 ConnectionTypeNetworkRegistry.getConnectionType(Connection connection) private static Set<ResourceLocation> NetworkRegistry.getKnownAdHocChannelsOfOtherEnd(Connection connection) Returns a mutable map of the currently known ad-hoc channels.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. -
Uses of Connection in net.neoforged.neoforge.oldtest.block
Methods in net.neoforged.neoforge.oldtest.block with parameters of type ConnectionModifier and TypeMethodDescriptionvoidFullPotsAccessorDemo.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 TypeMethodDescriptionvoidCustomItemDisplayContextTest.ItemHangerBlockEntity.onDataPacket(Connection net, ClientboundBlockEntityDataPacket pkt, HolderLookup.Provider lookupProvider)