Uses of Enum Class
net.minecraft.network.ConnectionProtocol
Packages that use ConnectionProtocol
Package
Description
-
Uses of ConnectionProtocol in net.minecraft.network
Subclasses with type arguments of type ConnectionProtocol in net.minecraft.networkModifier and TypeClassDescriptionenumDescribes the set of packets a connection understands at a given point.Methods in net.minecraft.network that return ConnectionProtocolModifier and TypeMethodDescriptionProtocolInfo.Details.id()ProtocolInfo.id()PacketListener.protocol()static ConnectionProtocolReturns the enum constant of this class with the specified name.static ConnectionProtocol[]ConnectionProtocol.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ConnectionProtocol in net.minecraft.network.protocol
Fields in net.minecraft.network.protocol declared as ConnectionProtocolModifier and TypeFieldDescriptionprivate final ConnectionProtocolProtocolInfoBuilder.Implementation.idThe field for theidrecord component.private final ConnectionProtocolProtocolInfoBuilder.protocolMethods in net.minecraft.network.protocol that return ConnectionProtocolModifier and TypeMethodDescriptionProtocolInfoBuilder.Implementation.id()Returns the value of theidrecord component.Methods in net.minecraft.network.protocol with parameters of type ConnectionProtocolModifier and TypeMethodDescriptionprivate static ProtocolInfo.DetailsProtocolInfoBuilder.buildDetails(ConnectionProtocol protocol, PacketFlow flow, List<? extends ProtocolInfoBuilder.CodecEntry<?, ?, ?, ?>> codecs) static <T extends ClientboundPacketListener, B extends io.netty.buffer.ByteBuf>
SimpleUnboundProtocol<T, B> ProtocolInfoBuilder.clientboundProtocol(ConnectionProtocol id, Consumer<ProtocolInfoBuilder<T, B, Unit>> config) static <T extends ClientboundPacketListener, B extends io.netty.buffer.ByteBuf, C>
UnboundProtocol<T, B, C> ProtocolInfoBuilder.contextClientboundProtocol(ConnectionProtocol id, Consumer<ProtocolInfoBuilder<T, B, C>> config) private static <L extends PacketListener, B extends io.netty.buffer.ByteBuf, C>
UnboundProtocol<L, B, C> ProtocolInfoBuilder.contextProtocol(ConnectionProtocol id, PacketFlow flow, Consumer<ProtocolInfoBuilder<L, B, C>> config) static <T extends ServerboundPacketListener, B extends io.netty.buffer.ByteBuf, C>
UnboundProtocol<T, B, C> ProtocolInfoBuilder.contextServerboundProtocol(ConnectionProtocol id, Consumer<ProtocolInfoBuilder<T, B, C>> config) private static <L extends PacketListener, B extends io.netty.buffer.ByteBuf>
SimpleUnboundProtocol<L, B> ProtocolInfoBuilder.protocol(ConnectionProtocol id, PacketFlow flow, Consumer<ProtocolInfoBuilder<L, B, Unit>> config) static <T extends ServerboundPacketListener, B extends io.netty.buffer.ByteBuf>
SimpleUnboundProtocol<T, B> ProtocolInfoBuilder.serverboundProtocol(ConnectionProtocol id, Consumer<ProtocolInfoBuilder<T, B, Unit>> config) Constructors in net.minecraft.network.protocol with parameters of type ConnectionProtocolModifierConstructorDescriptionprivateImplementation(ConnectionProtocol id, PacketFlow flow, StreamCodec<io.netty.buffer.ByteBuf, Packet<? super L>> codec, @Nullable BundlerInfo bundlerInfo) Creates an instance of aImplementationrecord class.ProtocolInfoBuilder(ConnectionProtocol protocol, PacketFlow flow) -
Uses of ConnectionProtocol in net.minecraft.network.protocol.common.custom
Methods in net.minecraft.network.protocol.common.custom with parameters of type ConnectionProtocolModifier and TypeMethodDescriptionstatic <B extends FriendlyByteBuf>
StreamCodec<B, CustomPacketPayload> CustomPacketPayload.codec(CustomPacketPayload.FallbackProvider<B> fallback, List<CustomPacketPayload.TypeAndCodec<? super B, ?>> types, ConnectionProtocol protocol, PacketFlow packetFlow) -
Uses of ConnectionProtocol in net.minecraft.network.protocol.configuration
Methods in net.minecraft.network.protocol.configuration that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientConfigurationPacketListener.protocol()default ConnectionProtocolServerConfigurationPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientGamePacketListener.protocol()default ConnectionProtocolServerGamePacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.handshake
Methods in net.minecraft.network.protocol.handshake that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolServerHandshakePacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.login
Methods in net.minecraft.network.protocol.login that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientLoginPacketListener.protocol()default ConnectionProtocolServerLoginPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.network.protocol.status
Methods in net.minecraft.network.protocol.status that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolClientStatusPacketListener.protocol()default ConnectionProtocolServerStatusPacketListener.protocol() -
Uses of ConnectionProtocol in net.minecraft.util.profiling.jfr
Methods in net.minecraft.util.profiling.jfr with parameters of type ConnectionProtocolModifier and TypeMethodDescriptionvoidJfrProfiler.onPacketReceived(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int readableBytes) voidJvmProfiler.NoOpProfiler.onPacketReceived(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int readableBytes) voidJvmProfiler.onPacketReceived(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int readableBytes) voidJfrProfiler.onPacketSent(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int writtenBytes) voidJvmProfiler.NoOpProfiler.onPacketSent(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int writtenBytes) voidJvmProfiler.onPacketSent(ConnectionProtocol protocol, PacketType<?> packetId, SocketAddress remoteAddress, int writtenBytes) -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling that return ConnectionProtocolModifier and TypeMethodDescriptiondefault ConnectionProtocolIPayloadContext.protocol()Returns the protocol of the connection. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload declared as ConnectionProtocolModifier and TypeFieldDescriptionprivate final ConnectionProtocolCommonRegisterPayload.protocolThe field for theprotocolrecord component.Fields in net.neoforged.neoforge.network.payload with type parameters of type ConnectionProtocolModifier and TypeFieldDescriptionprivate final Map<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> ModdedNetworkQueryPayload.queriesThe field for thequeriesrecord component.Methods in net.neoforged.neoforge.network.payload that return ConnectionProtocolModifier and TypeMethodDescriptionCommonRegisterPayload.protocol()Returns the value of theprotocolrecord component.private static @Nullable ConnectionProtocolCommonRegisterPayload.protocolById(String id) Methods in net.neoforged.neoforge.network.payload that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionModdedNetworkQueryPayload.queries()Returns the value of thequeriesrecord component.Method parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifier and TypeMethodDescriptionstatic ModdedNetworkQueryPayloadModdedNetworkQueryPayload.fromRegistry(Map<ConnectionProtocol, Map<Identifier, PayloadRegistration<?>>> registry) Constructors in net.neoforged.neoforge.network.payload with parameters of type ConnectionProtocolModifierConstructorDescriptionCommonRegisterPayload(int version, ConnectionProtocol protocol, Set<Identifier> channels) Creates an instance of aCommonRegisterPayloadrecord class.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type ConnectionProtocolModifierConstructorDescriptionCreates an instance of aModdedNetworkQueryPayloadrecord class. -
Uses of ConnectionProtocol in net.neoforged.neoforge.network.registration
Fields in net.neoforged.neoforge.network.registration with type parameters of type ConnectionProtocolModifier and TypeFieldDescriptionprivate final Map<ConnectionProtocol, Map<Identifier, NetworkChannel>> NetworkPayloadSetup.channelsThe field for thechannelsrecord component.protected static final Map<ConnectionProtocol, Map<Identifier, IPayloadHandler<?>>> NetworkRegistry.CLIENTBOUND_HANDLERSstatic final io.netty.util.AttributeKey<Map<ConnectionProtocol, Set<Identifier>>> ChannelAttributes.COMMON_CHANNELSKnown common channels fromCommonRegisterPayload.protected static final Map<ConnectionProtocol, Map<Identifier, PayloadRegistration<?>>> NetworkRegistry.PAYLOAD_REGISTRATIONSRegistry of all custom payload handlers.private final List<ConnectionProtocol> PayloadRegistration.protocolsThe field for theprotocolsrecord component.protected static final Map<ConnectionProtocol, Map<Identifier, IPayloadHandler<?>>> NetworkRegistry.SERVERBOUND_HANDLERSMethods in net.neoforged.neoforge.network.registration that return types with arguments of type ConnectionProtocolModifier and TypeMethodDescriptionNetworkPayloadSetup.channels()Returns the value of thechannelsrecord component.PayloadRegistration.protocols()Returns the value of theprotocolsrecord component.Methods in net.neoforged.neoforge.network.registration with parameters of type ConnectionProtocolModifier and TypeMethodDescription@Nullable NetworkChannelNetworkPayloadSetup.getChannel(ConnectionProtocol protocol, Identifier id) NetworkPayloadSetup.getChannels(ConnectionProtocol protocol) static @Nullable StreamCodec<? super FriendlyByteBuf, ? extends CustomPacketPayload> NetworkRegistry.getCodec(Identifier id, ConnectionProtocol protocol, PacketFlow flow) Attempts to retrieve theStreamCodecfor a non-vanilla payload.static Set<Identifier> ChannelAttributes.getOrCreateCommonChannels(Connection connection, ConnectionProtocol protocol) Returns a mutable set of the currently known common channels for the given protocol.protected static booleanNetworkRegistry.hasAdhocChannel(ConnectionProtocol protocol, Identifier id, PacketFlow flow) Checks if a given payload is ad-hoc readable, that is, may be read without a negotiated channel being present.static booleanNetworkRegistry.hasChannel(Connection connection, @Nullable ConnectionProtocol protocol, Identifier payloadId) Indicates whether the given connection has a connection setup that can transmit the given payload id.protected static <T extends CustomPacketPayload>
voidNetworkRegistry.registerHandler(Map<ConnectionProtocol, Map<Identifier, IPayloadHandler<?>>> handlers, ConnectionProtocol protocol, PacketFlow flow, CustomPacketPayload.Type<T> type, IPayloadHandler<T> handler) Method parameters in net.neoforged.neoforge.network.registration with type arguments of type ConnectionProtocolModifier and TypeMethodDescriptionstatic NetworkPayloadSetupNetworkPayloadSetup.from(Map<ConnectionProtocol, NegotiationResult> results) Returns A modded network with the given configuration and play channels..static voidNetworkRegistry.initializeNeoForgeConnection(ServerConfigurationPacketListener listener, Map<ConnectionProtocol, Set<ModdedNetworkQueryComponent>> clientChannels) Invoked by the server when it completes the negotiation with the client during the configuration phase.static <T extends CustomPacketPayload, B extends FriendlyByteBuf>
voidNetworkRegistry.register(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, @Nullable IPayloadHandler<T> serverHandler, @Nullable IPayloadHandler<T> clientHandler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Registers a new payload.private <T extends CustomPacketPayload, B extends FriendlyByteBuf>
voidPayloadRegistrar.register(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, @Nullable IPayloadHandler<T> serverHandler, @Nullable IPayloadHandler<T> clientHandler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) protected static <T extends CustomPacketPayload>
voidNetworkRegistry.registerHandler(Map<ConnectionProtocol, Map<Identifier, IPayloadHandler<?>>> handlers, ConnectionProtocol protocol, PacketFlow flow, CustomPacketPayload.Type<T> type, IPayloadHandler<T> handler) Constructor parameters in net.neoforged.neoforge.network.registration with type arguments of type ConnectionProtocolModifierConstructorDescriptionNetworkPayloadSetup(Map<ConnectionProtocol, Map<Identifier, NetworkChannel>> channels) Creates an instance of aNetworkPayloadSetuprecord class.PayloadRegistration(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> codec, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Creates an instance of aPayloadRegistrationrecord class.