Uses of Enum Class
net.minecraftforge.network.NetworkDirection
Packages that use NetworkDirection
-
Uses of NetworkDirection in net.minecraftforge.event.network
Fields in net.minecraftforge.event.network declared as NetworkDirectionModifier and TypeFieldDescriptionprivate final NetworkDirection
CustomPayloadEvent.Context.networkDirection
TheNetworkDirection
this message has been received on.Methods in net.minecraftforge.event.network that return NetworkDirectionConstructors in net.minecraftforge.event.network with parameters of type NetworkDirection -
Uses of NetworkDirection in net.minecraftforge.network
Fields in net.minecraftforge.network declared as NetworkDirectionModifier and TypeFieldDescriptionprivate final NetworkDirection
PacketDistributor.direction
The field for thedirection
record component.private final NetworkDirection
PacketDistributor.PacketTarget.direction
The field for thedirection
record component.private static final NetworkDirection[]
NetworkDirection.values
Fields in net.minecraftforge.network with type parameters of type NetworkDirectionModifier and TypeFieldDescriptionprivate final Optional<NetworkDirection>
SimpleChannel.Message.direction
The field for thedirection
record component.private final Optional<NetworkDirection>
SimpleChannel.MessageBuilder.direction
private static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<Class<? extends Packet>,
NetworkDirection> NetworkDirection.packetLookup
Methods in net.minecraftforge.network that return NetworkDirectionModifier and TypeMethodDescriptionPacketDistributor.direction()
Returns the value of thedirection
record component.PacketDistributor.PacketTarget.direction()
Returns the value of thedirection
record component.static <T extends ICustomPacket<?>>
NetworkDirectionNetworkDirection.directionFor
(Class<T> customPacket) default NetworkDirection
ICustomPacket.getDirection()
NetworkDirection.reply()
static NetworkDirection
Returns the enum constant of this class with the specified name.static NetworkDirection[]
NetworkDirection.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraftforge.network that return types with arguments of type NetworkDirectionModifier and TypeMethodDescriptionSimpleChannel.Message.direction()
Returns the value of thedirection
record component.Methods in net.minecraftforge.network with parameters of type NetworkDirectionModifier and TypeMethodDescription<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder
(Class<M> type, int discriminator, NetworkDirection direction) Build a new MessageBuilder.<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder
(Class<M> type, NetworkDirection direction) Build a new MessageBuilder, using the next available discriminator.Constructors in net.minecraftforge.network with parameters of type NetworkDirectionModifierConstructorDescriptionprivate
MessageBuilder
(SimpleChannel channel, Class<MSG> type, int id, @Nullable NetworkDirection networkDirection) PacketDistributor
(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor, NetworkDirection direction) Creates an instance of aPacketDistributor
record class.PacketTarget
(Consumer<Packet<?>> packetConsumer, NetworkDirection direction) Creates an instance of aPacketTarget
record class.Constructor parameters in net.minecraftforge.network with type arguments of type NetworkDirectionModifierConstructorDescriptionprivate
Message
(int index, Class<MSG> type, Optional<NetworkDirection> direction, BiConsumer<MSG, FriendlyByteBuf> encoder, Function<FriendlyByteBuf, MSG> decoder, BiConsumer<MSG, CustomPayloadEvent.Context> consumer) Creates an instance of aMessage
record class.