public interface WireParser<O> extends BiConsumer<WireIn,O>
Modifier and Type | Method and Description |
---|---|
default void |
accept(WireIn wireIn,
O marshallableOut) |
WireParselet<O> |
getDefaultConsumer() |
WireParselet<O> |
lookup(CharSequence name) |
WireParselet<O> |
lookup(int number) |
void |
parseOne(WireIn wireIn,
O out) |
VanillaWireParser<O> |
register(WireKey key,
WireParselet<O> valueInConsumer) |
default VanillaWireParser<O> |
registerOnce(WireKey key,
WireParselet<O> valueInConsumer) |
static <O> WireParser<O> |
wireParser(WireParselet<O> defaultConsumer) |
andThen
@NotNull static <O> WireParser<O> wireParser(WireParselet<O> defaultConsumer)
WireParselet<O> getDefaultConsumer()
default void accept(@NotNull WireIn wireIn, O marshallableOut)
accept
in interface BiConsumer<WireIn,O>
WireParselet<O> lookup(CharSequence name)
@NotNull default VanillaWireParser<O> registerOnce(WireKey key, WireParselet<O> valueInConsumer)
@NotNull VanillaWireParser<O> register(WireKey key, WireParselet<O> valueInConsumer)
WireParselet<O> lookup(int number)
Copyright © 2018. All rights reserved.