Package | Description |
---|---|
net.minecraftforge.fml.network.simple |
Modifier and Type | Method and Description |
---|---|
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.buildLoginPacketList(java.util.function.Function<java.lang.Boolean,java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,MSG>>> loginPacketGenerators) |
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.consumer(java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> consumer) |
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.consumer(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG,java.util.function.Supplier<NetworkEvent.Context>> handler)
Function returning a boolean "packet handled" indication, for simpler channel building.
|
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.decoder(java.util.function.Function<PacketBuffer,MSG> decoder) |
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.encoder(java.util.function.BiConsumer<MSG,PacketBuffer> encoder) |
private static <MSG> SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.forType(SimpleChannel channel,
java.lang.Class<MSG> type,
int id,
NetworkDirection networkDirection) |
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.loginIndex(java.util.function.Function<MSG,java.lang.Integer> loginIndexGetter,
java.util.function.BiConsumer<MSG,java.lang.Integer> loginIndexSetter) |
SimpleChannel.MessageBuilder<MSG> |
SimpleChannel.MessageBuilder.markAsLoginPacket() |
<M> SimpleChannel.MessageBuilder<M> |
SimpleChannel.messageBuilder(java.lang.Class<M> type,
int id)
Build a new MessageBuilder.
|
<M> SimpleChannel.MessageBuilder<M> |
SimpleChannel.messageBuilder(java.lang.Class<M> type,
int id,
NetworkDirection direction)
Build a new MessageBuilder.
|