Uses of Enum Class
net.minecraftforge.network.NetworkDirection
-
Uses of NetworkDirection in net.minecraftforge.event.network
Modifier and TypeFieldDescriptionprivate final NetworkDirection
CustomPayloadEvent.Context.networkDirection
TheNetworkDirection
this message has been received on. -
Uses of NetworkDirection in net.minecraftforge.network
Modifier 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
Modifier 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
Modifier 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.Modifier and TypeMethodDescriptionSimpleChannel.Message.direction()
Returns the value of thedirection
record component.Modifier 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.ModifierConstructorDescriptionprivate
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.ModifierConstructorDescriptionprivate
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.