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 ConnectionMethods in net.minecraft.client.multiplayer that return ConnectionConstructors in net.minecraft.client.multiplayer with parameters of type ConnectionModifierConstructorDescriptionprotectedClientCommonPacketListenerImpl(Minecraft p_300051_, Connection p_300688_, CommonListenerCookie p_300429_) ClientConfigurationPacketListenerImpl(Minecraft p_301278_, Connection p_299257_, CommonListenerCookie p_300907_) 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_298329_) -
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_310083_, ServerPackManager.PackPromptStatus p_309566_) private static PackLoadFeedbackDownloadedPackSource.createPackResponseSender(Connection p_312565_) -
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 Consumer<Connection>Connection.activationHandlerprivate 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_, SampleLogger p_300093_) 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_297681_) -
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.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_299469_, Connection p_300872_, CommonListenerCookie p_300277_) ServerConfigurationPacketListenerImpl(MinecraftServer p_301415_, Connection p_298106_, CommonListenerCookie p_301309_) ServerGamePacketListenerImpl(MinecraftServer p_9770_, Connection p_9771_, ServerPlayer p_9772_, CommonListenerCookie p_300908_) 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 TypeMethodDescriptionvoidPlayerList.placeNewPlayer(Connection p_11262_, ServerPlayer p_11263_, CommonListenerCookie p_297215_) -
Uses of Connection in net.minecraftforge.client
Methods in net.minecraftforge.client that return ConnectionModifier and TypeMethodDescriptionprivate static ConnectionForgeHooksClient.getClientConnection()Methods in net.minecraftforge.client with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidForgeHooksClient.firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager) static voidForgeHooksClient.firePlayerRespawn(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager) static booleanForgeHooksClient.onClientDisconnect(Connection connection, Minecraft mc, Screen parent, Component message) -
Uses of Connection in net.minecraftforge.client.event
Fields in net.minecraftforge.client.event declared as ConnectionMethods in net.minecraftforge.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.minecraftforge.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.minecraftforge.common
Methods in net.minecraftforge.common with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidForgeHooks.handleClientConfigurationComplete(Connection connection) static booleanForgeHooks.onCustomPayload(ICustomPacket<?> packet, Connection connection) -
Uses of Connection in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type ConnectionModifier and TypeMethodDescriptiondefault voidIForgeBlockEntity.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.minecraftforge.common.util
Fields in net.minecraftforge.common.util declared as ConnectionConstructors in net.minecraftforge.common.util with parameters of type Connection -
Uses of Connection in net.minecraftforge.event
Methods in net.minecraftforge.event with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidForgeEventFactory.gatherLoginConfigTasks(Connection connection, Consumer<ConfigurationTask> add) static voidForgeEventFactory.onChannelRegistrationChange(Connection connection, ChannelRegistrationChangeEvent.Type changeType, HashSet<ResourceLocation> changed) static voidForgeEventFactory.onConnectionStart(Connection connection) -
Uses of Connection in net.minecraftforge.event.network
Fields in net.minecraftforge.event.network declared as ConnectionModifier and TypeFieldDescriptionprivate final ConnectionConnectionStartEvent.connectionprivate final ConnectionCustomPayloadEvent.Context.connectionTheConnectionfor this message.private final ConnectionGatherLoginConfigurationTasksEvent.connectionprivate final ConnectionChannelRegistrationChangeEvent.sourceMethods in net.minecraftforge.event.network that return ConnectionModifier and TypeMethodDescriptionConnectionStartEvent.getConnection()CustomPayloadEvent.Context.getConnection()GatherLoginConfigurationTasksEvent.getConnection()ChannelRegistrationChangeEvent.getSource()Constructors in net.minecraftforge.event.network with parameters of type ConnectionModifierConstructorDescriptionChannelRegistrationChangeEvent(Connection source, ChannelRegistrationChangeEvent.Type changeType, Set<ResourceLocation> channels) ConnectionStartEvent(Connection connection) Context(Connection connection, NetworkDirection networkDirection) GatherLoginConfigurationTasksEvent(Connection connection, Consumer<ConfigurationTask> add) -
Uses of Connection in net.minecraftforge.network
Fields in net.minecraftforge.network declared as ConnectionFields in net.minecraftforge.network with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate Map<io.netty.util.AttributeKey<?>,Function<Connection, ?>> ChannelBuilder.attributes(package private) final Map<io.netty.util.AttributeKey<?>,Function<Connection, ?>> NetworkInstance.attributes(package private) final Consumer<Connection>NetworkInstance.channelHandlerprivate Consumer<Connection>ChannelBuilder.connectionHandlerstatic final PacketDistributor<List<Connection>>PacketDistributor.NMLISTSend to the supplied list of NetworkManager instances in the Supplier
PacketDistributor.with(T)List of NetworkManagerMethods in net.minecraftforge.network with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidChannelListManager.addChannels(Connection connection) static voidChannelListManager.addChannels(Connection connection, Collection<ResourceLocation> channels) static voidChannelListManager.addChannels(Connection connection, ResourceLocation... channels) static NetworkContextNetworkContext.get(Connection connection) Gets the associated NetworkContext from the connection, creating a new instance if necessary.booleanChannel.isRemotePresent(Connection connection) Returns true if the channel is present in the given connection.static voidNetworkRegistry.onConnectionStart(Connection connection) static voidChannelListManager.removeChannels(Connection connection, Collection<ResourceLocation> channels) static voidChannelListManager.removeChannels(Connection connection, ResourceLocation... channels) voidChannel.send(MSG msg, Connection connection) private static voidChannelListManager.sendChannels(EventNetworkChannel channel, Connection connection, Collection<ResourceLocation> channels) (package private) Packet<?>Channel.toVanillaPacket(Connection connection, MSG message) Method parameters in net.minecraftforge.network with type arguments of type ConnectionModifier and TypeMethodDescription<T> ChannelBuilderChannelBuilder.attribute(io.netty.util.AttributeKey<T> key, Function<Connection, T> factory) Registers a AttributeKey to be filled when a new connection is created.ChannelBuilder.connectionHandler(Consumer<Connection> handler) Registers a function that will be called when a new connection is established.PacketDistributor.networkManagerList(List<Connection> connections) Constructors in net.minecraftforge.network with parameters of type ConnectionModifierConstructorDescription(package private)ForgePacketHandler(Connection connection) privateNetworkContext(Connection connection) Constructor parameters in net.minecraftforge.network with type arguments of type ConnectionModifierConstructorDescription(package private)NetworkInstance(ResourceLocation channelName, int networkProtocolVersion, Channel.VersionTest clientAcceptedVersions, Channel.VersionTest serverAcceptedVersions, Map<io.netty.util.AttributeKey<?>, Function<Connection, ?>> attributes, Consumer<Connection> channelHandler) (package private)NetworkInstance(ResourceLocation channelName, int networkProtocolVersion, Channel.VersionTest clientAcceptedVersions, Channel.VersionTest serverAcceptedVersions, Map<io.netty.util.AttributeKey<?>, Function<Connection, ?>> attributes, Consumer<Connection> channelHandler) -
Uses of Connection in net.minecraftforge.network.config
Fields in net.minecraftforge.network.config declared as ConnectionMethods in net.minecraftforge.network.config that return ConnectionConstructors in net.minecraftforge.network.config with parameters of type ConnectionModifierConstructorDescriptionConfigurationTaskContext(Connection connection, Consumer<Packet<?>> send, Consumer<ConfigurationTask.Type> finish) -
Uses of Connection in net.minecraftforge.network.filters
Fields in net.minecraftforge.network.filters with type parameters of type ConnectionModifier and TypeFieldDescriptionprivate static final Map<String,Function<Connection, VanillaPacketFilter>> NetworkFilters.instancesMethods in net.minecraftforge.network.filters with parameters of type ConnectionModifier and TypeMethodDescriptionstatic voidNetworkFilters.injectIfNecessary(Connection manager) protected booleanVanillaConnectionNetworkFilter.isNecessary(Connection connection) protected abstract booleanVanillaPacketFilter.isNecessary(Connection manager) Whether this filter is necessary on the given connection. -
Uses of Connection in net.minecraftforge.server
Methods in net.minecraftforge.server with parameters of type ConnectionModifier and TypeMethodDescriptionstatic booleanServerLifecycleHooks.handleServerLogin(ClientIntentionPacket packet, Connection connection) private static booleanServerLifecycleHooks.rejectConnection(Connection connection, ConnectionType type, String message)