Uses of Enum Class
net.minecraft.network.protocol.PacketFlow
Packages that use PacketFlow
Package
Description
-
Uses of PacketFlow in net.minecraft.network
Fields in net.minecraft.network declared as PacketFlowMethods in net.minecraft.network that return PacketFlowModifier and TypeMethodDescriptiondefault PacketFlow
ClientboundPacketListener.flow()
PacketListener.flow()
ProtocolInfo.flow()
default PacketFlow
ServerboundPacketListener.flow()
Connection.getDirection()
Connection.getReceiving()
Connection.getSending()
Methods in net.minecraft.network with parameters of type PacketFlowModifier and TypeMethodDescriptionstatic void
Connection.configureInMemoryPipeline
(io.netty.channel.ChannelPipeline p_295541_, PacketFlow p_294540_) static void
Connection.configureSerialization
(io.netty.channel.ChannelPipeline p_265436_, PacketFlow p_265104_, boolean p_341592_, BandwidthDebugMonitor p_299246_) Constructors in net.minecraft.network with parameters of type PacketFlow -
Uses of PacketFlow in net.minecraft.network.protocol
Fields in net.minecraft.network.protocol declared as PacketFlowModifier and TypeFieldDescriptionprivate final PacketFlow
PacketType.flow
The field for theflow
record component.private final PacketFlow
ProtocolCodecBuilder.flow
private final PacketFlow
ProtocolInfoBuilder.flow
private final PacketFlow
ProtocolInfoBuilder.Implementation.flow
The field for theflow
record component.Methods in net.minecraft.network.protocol that return PacketFlowModifier and TypeMethodDescriptionPacketType.flow()
Returns the value of theflow
record component.ProtocolInfoBuilder.Implementation.flow()
Returns the value of theflow
record component.PacketFlow.getOpposite()
static PacketFlow
Returns the enum constant of this class with the specified name.static PacketFlow[]
PacketFlow.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.network.protocol with parameters of type PacketFlowModifier and TypeMethodDescriptionprivate static <L extends PacketListener>
ProtocolInfo<L> ProtocolInfoBuilder.protocol
(ConnectionProtocol p_319927_, PacketFlow p_320658_, Consumer<ProtocolInfoBuilder<L, FriendlyByteBuf>> p_320484_) private static <L extends PacketListener,
B extends io.netty.buffer.ByteBuf>
ProtocolInfo.Unbound<L, B> ProtocolInfoBuilder.protocolUnbound
(ConnectionProtocol p_320849_, PacketFlow p_320146_, Consumer<ProtocolInfoBuilder<L, B>> p_320140_) Constructors in net.minecraft.network.protocol with parameters of type PacketFlowModifierConstructorDescription(package private)
Implementation
(ConnectionProtocol id, PacketFlow flow, StreamCodec<io.netty.buffer.ByteBuf, Packet<? super L>> codec, BundlerInfo bundlerInfo) Creates an instance of aImplementation
record class.PacketType
(PacketFlow flow, ResourceLocation id) Creates an instance of aPacketType
record class.ProtocolCodecBuilder
(PacketFlow p_320925_) ProtocolInfoBuilder
(ConnectionProtocol p_320213_, PacketFlow p_320424_) -
Uses of PacketFlow in net.minecraft.network.protocol.common.custom
Methods in net.minecraft.network.protocol.common.custom with parameters of type PacketFlowModifier and TypeMethodDescriptionstatic <B extends FriendlyByteBuf>
StreamCodec<B, CustomPacketPayload> CustomPacketPayload.codec
(CustomPacketPayload.FallbackProvider<B> p_319839_, List<CustomPacketPayload.TypeAndCodec<? super B, ?>> p_320495_, ConnectionProtocol protocol, PacketFlow packetFlow) -
Uses of PacketFlow in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return PacketFlowModifier and TypeMethodDescriptiondefault PacketFlow
IPacketFlowExtension.self()
Returns thePacketFlow
this extension is applied to. -
Uses of PacketFlow in net.neoforged.neoforge.network.filters
Methods in net.neoforged.neoforge.network.filters with parameters of type PacketFlowModifier and TypeMethodDescriptionprivate static Packet
<?> GenericPacketSplitter.createPacket
(PacketFlow flow, byte[] payload) -
Uses of PacketFlow in net.neoforged.neoforge.network.handling
Methods in net.neoforged.neoforge.network.handling that return PacketFlow -
Uses of PacketFlow in net.neoforged.neoforge.network.negotiation
Fields in net.neoforged.neoforge.network.negotiation with type parameters of type PacketFlowModifier and TypeFieldDescriptionprivate final Optional
<PacketFlow> NegotiableNetworkComponent.flow
The field for theflow
record component.Methods in net.neoforged.neoforge.network.negotiation that return types with arguments of type PacketFlowModifier and TypeMethodDescriptionNegotiableNetworkComponent.flow()
Returns the value of theflow
record component.Constructor parameters in net.neoforged.neoforge.network.negotiation with type arguments of type PacketFlowModifierConstructorDescriptionNegotiableNetworkComponent
(ResourceLocation id, String version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aNegotiableNetworkComponent
record class. -
Uses of PacketFlow in net.neoforged.neoforge.network.payload
Fields in net.neoforged.neoforge.network.payload with type parameters of type PacketFlowModifier and TypeFieldDescriptionprivate final Optional
<PacketFlow> ModdedNetworkQueryComponent.flow
The field for theflow
record component.Methods in net.neoforged.neoforge.network.payload that return types with arguments of type PacketFlowModifier and TypeMethodDescriptionModdedNetworkQueryComponent.flow()
Returns the value of theflow
record component.Constructor parameters in net.neoforged.neoforge.network.payload with type arguments of type PacketFlowModifierConstructorDescriptionModdedNetworkQueryComponent
(ResourceLocation id, String version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aModdedNetworkQueryComponent
record class. -
Uses of PacketFlow in net.neoforged.neoforge.network.registration
Fields in net.neoforged.neoforge.network.registration with type parameters of type PacketFlowModifier and TypeFieldDescriptionprivate static final io.netty.util.AttributeKey
<PacketFlow> NetworkRegistry.ATTRIBUTE_FLOW
private final Optional
<PacketFlow> PayloadRegistration.flow
The field for theflow
record component.Methods in net.neoforged.neoforge.network.registration that return types with arguments of type PacketFlowModifier and TypeMethodDescriptionPayloadRegistration.flow()
Returns the value of theflow
record component.Methods in net.neoforged.neoforge.network.registration with parameters of type PacketFlowModifier and TypeMethodDescriptionstatic @Nullable StreamCodec
<? super FriendlyByteBuf, ? extends CustomPacketPayload> NetworkRegistry.getCodec
(ResourceLocation id, ConnectionProtocol protocol, PacketFlow flow) Attempts to retrieve theStreamCodec
for a non-vanilla payload.static Set
<ResourceLocation> NetworkRegistry.getInitialListeningChannels
(PacketFlow flow) Returns the initial channels for the configuration phase..private static boolean
NetworkRegistry.hasAdhocChannel
(ConnectionProtocol protocol, ResourceLocation id, PacketFlow flow) Checks if a given payload is ad-hoc readable, that is, may be read without a negotiated channel being present.boolean
PayloadRegistration.matchesFlow
(PacketFlow flow) Returns true if the registered flow is compatible with the passed flow.Method parameters in net.neoforged.neoforge.network.registration with type arguments of type PacketFlowModifier and TypeMethodDescriptionstatic <T extends CustomPacketPayload,
B extends FriendlyByteBuf>
voidNetworkRegistry.register
(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, IPayloadHandler<T> handler, 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, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Constructor parameters in net.neoforged.neoforge.network.registration with type arguments of type PacketFlowModifierConstructorDescriptionPayloadRegistration
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Creates an instance of aPayloadRegistration
record class.