Uses of Class
net.minecraftforge.network.SimpleChannel.MessageBuilder
-
Uses of SimpleChannel.MessageBuilder in net.minecraftforge.network
Modifier and TypeMethodDescriptionSimpleChannel.MessageBuilder.consumerMainThread
(io.netty.util.AttributeKey<C> key, org.apache.commons.lang3.function.TriConsumer<C, MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerMainThread
(BiConsumer<MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(io.netty.util.AttributeKey<C> key, SimpleChannel.MessageBuilder.ToBooleanTriFunction<C, MSG, CustomPayloadEvent.Context> handler) Function returning a boolean "packet handled" indication, for simpler channel building.SimpleChannel.MessageBuilder.consumerNetworkThread
(io.netty.util.AttributeKey<C> key, org.apache.commons.lang3.function.TriConsumer<C, MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(BiConsumer<MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG, CustomPayloadEvent.Context> handler) Function returning a boolean "packet handled" indication, for simpler channel building.SimpleChannel.MessageBuilder.decoder
(Function<FriendlyByteBuf, MSG> decoder) Set the message decoder, which reads the message from aFriendlyByteBuf
.SimpleChannel.MessageBuilder.encoder
(BiConsumer<MSG, FriendlyByteBuf> encoder) Set the message encoder, which writes this message to aFriendlyByteBuf
.<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder
(Class<M> type) Build a new MessageBuilder, using the next available discriminator.<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder
(Class<M> type, int discriminator) Build a new MessageBuilder.<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.