Uses of Class
net.minecraft.network.Connection
Package
Description
-
Uses of Connection in net.minecraft.client
-
Uses of Connection in net.minecraft.client.gui.screens
-
Uses of Connection in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate Connection
ClientHandshakePacketListenerImpl.connection
private Connection
ClientPacketListener.connection
Modifier and TypeMethodDescriptionClientHandshakePacketListenerImpl.getConnection()
ClientPacketListener.getConnection()
ModifierConstructorDescriptionClientHandshakePacketListenerImpl(Connection p_104526_, Minecraft p_104527_, Screen p_104528_, Consumer<Component> p_104529_)
ClientPacketListener(Minecraft p_104906_, Screen p_104907_, Connection p_104908_, com.mojang.authlib.GameProfile p_104909_)
-
Uses of Connection in net.minecraft.network
Modifier and TypeMethodDescriptionstatic Connection
Connection.connectToLocalServer(SocketAddress p_129494_)
static Connection
Connection.connectToServer(InetSocketAddress p_178301_, boolean p_178302_)
PacketListener.getConnection()
-
Uses of Connection in net.minecraft.realms
-
Uses of Connection in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate Connection
MemoryServerHandshakePacketListenerImpl.connection
ServerGamePacketListenerImpl.connection
private Connection
ServerHandshakePacketListenerImpl.connection
ServerLoginPacketListenerImpl.connection
private Connection
ServerStatusPacketListenerImpl.connection
Modifier and TypeFieldDescription(package private) List<Connection>
ServerConnectionListener.connections
Modifier and TypeMethodDescriptionMemoryServerHandshakePacketListenerImpl.getConnection()
ServerGamePacketListenerImpl.getConnection()
ServerHandshakePacketListenerImpl.getConnection()
ServerLoginPacketListenerImpl.getConnection()
ServerStatusPacketListenerImpl.getConnection()
ModifierConstructorDescriptionMemoryServerHandshakePacketListenerImpl(MinecraftServer p_9691_, Connection p_9692_)
ServerGamePacketListenerImpl(MinecraftServer p_9770_, Connection p_9771_, ServerPlayer p_9772_)
ServerHandshakePacketListenerImpl(MinecraftServer p_9969_, Connection p_9970_)
ServerLoginPacketListenerImpl(MinecraftServer p_10027_, Connection p_10028_)
ServerStatusPacketListenerImpl(MinecraftServer p_10087_, Connection p_10088_)
-
Uses of Connection in net.minecraft.server.players
Modifier and TypeMethodDescriptionvoid
PlayerList.placeNewPlayer(Connection p_11262_, ServerPlayer p_11263_)
-
Uses of Connection in net.minecraftforge.client
Modifier and TypeMethodDescriptionprivate static Connection
ForgeHooksClient.getClientToServerNetworkManager()
Modifier and TypeMethodDescriptionstatic void
ForgeHooksClient.firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager)
static void
ForgeHooksClient.firePlayerRespawn(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager)
-
Uses of Connection in net.minecraftforge.client.event
ModifierConstructorDescription(package private)
ClientPlayerNetworkEvent(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager)
LoggedInEvent(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager)
LoggedOutEvent(MultiPlayerGameMode controller, LocalPlayer player, Connection networkManager)
RespawnEvent(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager)
-
Uses of Connection in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault void
IForgeBlockEntity.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
Modifier and TypeFieldDescriptionprivate static Connection
FakePlayer.FakePlayerNetHandler.DUMMY_CONNECTION
-
Uses of Connection in net.minecraftforge.debug.block
Modifier and TypeMethodDescriptionvoid
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.onDataPacket(Connection net, ClientboundBlockEntityDataPacket pkt)
-
Uses of Connection in net.minecraftforge.fmlclient
Modifier and TypeMethodDescriptionstatic void
ClientHooks.firePlayerLogin(MultiPlayerGameMode pc, LocalPlayer player, Connection networkManager)
Deprecated, for removal: This API element is subject to removal in a future version.static void
ClientHooks.firePlayerRespawn(MultiPlayerGameMode pc, LocalPlayer oldPlayer, LocalPlayer newPlayer, Connection networkManager)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Connection in net.minecraftforge.fmllegacy.common.network
-
Uses of Connection in net.minecraftforge.fmllegacy.network
Modifier and TypeFieldDescriptionprivate Connection
FMLHandshakeHandler.manager
private Connection
PacketDispatcher.NetworkManagerDispatcher.manager
private Connection
NetworkEvent.Context.networkManager
TheConnection
for this message.Modifier and TypeFieldDescriptionstatic PacketDistributor<List<Connection>>
PacketDistributor.NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
PacketDistributor.with(Supplier)
List of NetworkManagerModifier and TypeMethodDescriptionvoid
FMLMCRegisterPacketHandler.addChannels(Set<ResourceLocation> locations, Connection manager)
(package private) boolean
NetworkInstance.dispatch(NetworkDirection side, ICustomPacket<?> packet, Connection manager)
static FMLConnectionData
NetworkHooks.getConnectionData(Connection mgr)
private static FMLMCRegisterPacketHandler.ChannelList
FMLMCRegisterPacketHandler.getFrom(Connection manager)
static void
NetworkHooks.handleClientLoginSuccess(Connection manager)
boolean
NetworkInstance.isRemotePresent(Connection manager)
static boolean
NetworkHooks.isVanillaConnection(Connection manager)
static boolean
NetworkHooks.onCustomPayload(ICustomPacket<?> packet, Connection manager)
static void
NetworkHooks.registerClientLoginChannel(Connection manager)
(package private) static void
FMLHandshakeHandler.registerHandshake(Connection manager, NetworkDirection direction)
Create a new handshake instance.static void
NetworkHooks.registerServerLoginChannel(Connection manager, ClientIntentionPacket packet)
static void
NetworkHooks.sendMCRegistryPackets(Connection manager, String direction)
void
FMLMCRegisterPacketHandler.sendRegistry(Connection manager, NetworkDirection dir)
(package private) void
FMLLoginWrapper.sendServerToClientLoginPacket(ResourceLocation resourceLocation, FriendlyByteBuf buffer, int index, Connection manager)
(package private) static boolean
FMLHandshakeHandler.tickLogin(Connection networkManager)
static boolean
NetworkHooks.tickNegotiation(ServerLoginPacketListenerImpl netHandlerLoginServer, Connection networkManager, ServerPlayer player)
static void
NetworkHooks.validatePacketDirection(NetworkDirection packetDirection, Optional<NetworkDirection> expectedDirection, Connection connection)
private static boolean
NetworkHooks.validateSideForProcessing(ICustomPacket<?> packet, NetworkInstance ni, Connection manager)
Modifier and TypeMethodDescriptionstatic ConnectionType
NetworkHooks.getConnectionType(Supplier<Connection> connection)
PacketDistributor.networkManagerList(Supplier<List<Connection>> nmListSupplier)
ModifierConstructorDescription(package private)
Context(Connection netHandler, NetworkDirection networkDirection, int index)
(package private)
Context(Connection networkManager, NetworkDirection networkDirection, PacketDispatcher dispatcher)
private
FMLHandshakeHandler(Connection networkManager, NetworkDirection side)
(package private)
NetworkManagerDispatcher(Connection manager, int packetIndex, BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier)
-
Uses of Connection in net.minecraftforge.fmllegacy.network.event
Modifier and TypeMethodDescriptionboolean
EventNetworkChannel.isRemotePresent(Connection manager)
-
Uses of Connection in net.minecraftforge.fmllegacy.network.simple
Modifier and TypeMethodDescriptionboolean
SimpleChannel.isRemotePresent(Connection manager)
Returns true if the channel is present in the given connection.<MSG> void
SimpleChannel.sendTo(MSG message, Connection manager, NetworkDirection direction)
-
Uses of Connection in net.minecraftforge.fmllegacy.server
Modifier and TypeMethodDescriptionstatic boolean
ServerLifecycleHooks.handleServerLogin(ClientIntentionPacket packet, Connection manager)
private static void
ServerLifecycleHooks.rejectConnection(Connection manager, ConnectionType type, String message)
-
Uses of Connection in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate static Map<String,Function<Connection,VanillaPacketFilter>>
NetworkFilters.instances
Modifier and TypeMethodDescriptionForgeConnectionNetworkFilter.buildHandlers(Connection manager)
VanillaPacketSplitter.getRemoteCompatibility(Connection manager)
static void
NetworkFilters.injectIfNecessary(Connection manager)
protected boolean
ForgeConnectionNetworkFilter.isNecessary(Connection manager)
protected boolean
VanillaConnectionNetworkFilter.isNecessary(Connection manager)
protected abstract boolean
VanillaPacketFilter.isNecessary(Connection manager)
Whether this filter is necessary on the given connection.static boolean
VanillaPacketSplitter.isRemoteCompatible(Connection manager)