Uses of Class
net.minecraftforge.fmllegacy.network.simple.SimpleChannel.MessageBuilder
-
Uses of SimpleChannel.MessageBuilder in net.minecraftforge.fmllegacy.network.simple
Modifier and TypeMethodDescriptionSimpleChannel.MessageBuilder.buildLoginPacketList(Function<Boolean,List<org.apache.commons.lang3.tuple.Pair<String,MSG>>> loginPacketGenerators)
SimpleChannel.MessageBuilder.consumer(BiConsumer<MSG,Supplier<NetworkEvent.Context>> consumer)
SimpleChannel.MessageBuilder.consumer(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG,Supplier<NetworkEvent.Context>> handler)
Function returning a boolean "packet handled" indication, for simpler channel building.SimpleChannel.MessageBuilder.decoder(Function<FriendlyByteBuf,MSG> decoder)
SimpleChannel.MessageBuilder.encoder(BiConsumer<MSG,FriendlyByteBuf> encoder)
private static <MSG> SimpleChannel.MessageBuilder<MSG>
SimpleChannel.MessageBuilder.forType(SimpleChannel channel, Class<MSG> type, int id, NetworkDirection networkDirection)
SimpleChannel.MessageBuilder.loginIndex(Function<MSG,Integer> loginIndexGetter, BiConsumer<MSG,Integer> loginIndexSetter)
SimpleChannel.MessageBuilder.markAsLoginPacket()
<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder(Class<M> type, int id)
Build a new MessageBuilder.<M> SimpleChannel.MessageBuilder<M>
SimpleChannel.messageBuilder(Class<M> type, int id, NetworkDirection direction)
Build a new MessageBuilder.