-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.codec.Codec
Codec.RawValue
-
Field Summary
Fields
A special key used to instruct the codec to inline the value instead of wrapping it in a map.
Fields inherited from interface net.minestom.server.codec.Codec
BLOCK_POSITION, BOOLEAN, BYTE, BYTE_ARRAY, COMPONENT, DOUBLE, FLOAT, INT, INT_ARRAY, KEY, LONG, LONG_ARRAY, NBT, NBT_COMPOUND, RAW_VALUE, SHORT, STRING, UNIT, UUID, UUID_COERCED, VECTOR3D
-
Method Summary
default <D> @NotNull Result<D>
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18,P19,P20>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
String name16,
Codec<P16> codec16,
Function<R,P16> getter16,
String name17,
Codec<P17> codec17,
Function<R,P17> getter17,
String name18,
Codec<P18> codec18,
Function<R,P18> getter18,
String name19,
Codec<P19> codec19,
Function<R,P19> getter19,
String name20,
Codec<P20> codec20,
Function<R,P20> getter20,
NetworkBufferTemplate.F20<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18,P19,P20,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18,P19>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
String name16,
Codec<P16> codec16,
Function<R,P16> getter16,
String name17,
Codec<P17> codec17,
Function<R,P17> getter17,
String name18,
Codec<P18> codec18,
Function<R,P18> getter18,
String name19,
Codec<P19> codec19,
Function<R,P19> getter19,
NetworkBufferTemplate.F19<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18,P19,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
String name16,
Codec<P16> codec16,
Function<R,P16> getter16,
String name17,
Codec<P17> codec17,
Function<R,P17> getter17,
String name18,
Codec<P18> codec18,
Function<R,P18> getter18,
NetworkBufferTemplate.F18<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,P18,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
String name16,
Codec<P16> codec16,
Function<R,P16> getter16,
String name17,
Codec<P17> codec17,
Function<R,P17> getter17,
NetworkBufferTemplate.F17<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
String name16,
Codec<P16> codec16,
Function<R,P16> getter16,
NetworkBufferTemplate.F16<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
String name15,
Codec<P15> codec15,
Function<R,P15> getter15,
NetworkBufferTemplate.F15<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
String name14,
Codec<P14> codec14,
Function<R,P14> getter14,
NetworkBufferTemplate.F14<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
String name13,
Codec<P13> codec13,
Function<R,P13> getter13,
NetworkBufferTemplate.F13<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
String name12,
Codec<P12> codec12,
Function<R,P12> getter12,
NetworkBufferTemplate.F12<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
String name11,
Codec<P11> codec11,
Function<R,P11> getter11,
NetworkBufferTemplate.F11<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,R> ctor)
static <R,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10>
StructCodec<R>
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
String name10,
Codec<P10> codec10,
Function<R,P10> getter10,
NetworkBufferTemplate.F10<P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
String name9,
Codec<P9> codec9,
Function<R,P9> getter9,
NetworkBufferTemplate.F9<P1,P2,P3,P4,P5,P6,P7,P8,P9,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
String name8,
Codec<P8> codec8,
Function<R,P8> getter8,
NetworkBufferTemplate.F8<P1,P2,P3,P4,P5,P6,P7,P8,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
String name7,
Codec<P7> codec7,
Function<R,P7> getter7,
NetworkBufferTemplate.F7<P1,P2,P3,P4,P5,P6,P7,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
String name6,
Codec<P6> codec6,
Function<R,P6> getter6,
NetworkBufferTemplate.F6<P1,P2,P3,P4,P5,P6,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
String name5,
Codec<P5> codec5,
Function<R,P5> getter5,
NetworkBufferTemplate.F5<P1,P2,P3,P4,P5,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
String name4,
Codec<P4> codec4,
Function<R,P4> getter4,
NetworkBufferTemplate.F4<P1,P2,P3,P4,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
String name3,
Codec<P3> codec3,
Function<R,P3> getter3,
NetworkBufferTemplate.F3<P1,P2,P3,R> ctor)
struct(String name1,
Codec<P1> codec1,
Function<R,P1> getter1,
String name2,
Codec<P2> codec2,
Function<R,P2> getter2,
NetworkBufferTemplate.F2<P1,P2,R> ctor)
Methods inherited from interface net.minestom.server.codec.Codec
list, list, listOrSingle, listOrSingle, mapValue, mapValue, optional, optional, orElse, set, set, transform, unionType, unionType