net.minecraft.network.codec

public interface ByteBufCodecs

zg
net.minecraft.network.codec.ByteBufCodecs
net.minecraft.class_9135

Field summary

Modifier and TypeField
int
a
MAX_INITIAL_COLLECTION_SIZE
field_49674
StreamCodec<io.netty.buffer.ByteBuf, Boolean>
b
BOOL
field_48547
StreamCodec<io.netty.buffer.ByteBuf, Byte>
c
BYTE
field_48548
StreamCodec<io.netty.buffer.ByteBuf, Float>
d
ROTATION_BYTE
field_54033
StreamCodec<io.netty.buffer.ByteBuf, Short>
e
SHORT
field_48549
StreamCodec<io.netty.buffer.ByteBuf, Integer>
f
UNSIGNED_SHORT
field_51470
StreamCodec<io.netty.buffer.ByteBuf, Integer>
g
INT
field_49675
StreamCodec<io.netty.buffer.ByteBuf, Integer>
h
VAR_INT
field_48550
StreamCodec<io.netty.buffer.ByteBuf, OptionalInt>
i
OPTIONAL_VAR_INT
field_54890
StreamCodec<io.netty.buffer.ByteBuf, Long>
j
LONG
field_54505
StreamCodec<io.netty.buffer.ByteBuf, Long>
k
VAR_LONG
field_48551
StreamCodec<io.netty.buffer.ByteBuf, Float>
l
FLOAT
field_48552
StreamCodec<io.netty.buffer.ByteBuf, Double>
m
DOUBLE
field_48553
StreamCodec<io.netty.buffer.ByteBuf, byte[]>
n
BYTE_ARRAY
field_48987
StreamCodec<io.netty.buffer.ByteBuf, long[]>
o
LONG_ARRAY
field_57046
StreamCodec<io.netty.buffer.ByteBuf, String>
p
STRING_UTF8
field_48554
StreamCodec<io.netty.buffer.ByteBuf, Tag>
q
TAG
field_48555
StreamCodec<io.netty.buffer.ByteBuf, Tag>
r
TRUSTED_TAG
field_49676
StreamCodec<io.netty.buffer.ByteBuf, CompoundTag>
s
COMPOUND_TAG
field_48556
StreamCodec<io.netty.buffer.ByteBuf, CompoundTag>
t
TRUSTED_COMPOUND_TAG
field_49677
StreamCodec<io.netty.buffer.ByteBuf, Optional<CompoundTag>>
u
OPTIONAL_COMPOUND_TAG
field_48557
StreamCodec<io.netty.buffer.ByteBuf, org.joml.Vector3f>
v
VECTOR3F
field_48558
StreamCodec<io.netty.buffer.ByteBuf, org.joml.Quaternionf>
w
QUATERNIONF
field_48559
StreamCodec<io.netty.buffer.ByteBuf, Integer>
x
CONTAINER_ID
field_53740
StreamCodec<io.netty.buffer.ByteBuf, com.mojang.authlib.properties.PropertyMap>
y
GAME_PROFILE_PROPERTIES
field_49678
StreamCodec<io.netty.buffer.ByteBuf, com.mojang.authlib.GameProfile>
z
GAME_PROFILE
field_49679
StreamCodec<io.netty.buffer.ByteBuf, Integer>
A
RGB_COLOR
field_59990

Method summary

Modifier and TypeMethod
static StreamCodec<io.netty.buffer.ByteBuf, byte[]>
a(int arg0)
byteArray(int arg0)
method_56895(int arg0)
static StreamCodec<io.netty.buffer.ByteBuf, String>
b(int arg0)
stringUtf8(int arg0)
method_56364(int arg0)
static StreamCodec<io.netty.buffer.ByteBuf, Tag>
a(Supplier<un> arg0)
tagCodec(Supplier<NbtAccounter> arg0)
method_56378(Supplier<class_2505> arg0)
static StreamCodec<io.netty.buffer.ByteBuf, CompoundTag>
b(Supplier<un> arg0)
compoundTagCodec(Supplier<NbtAccounter> arg0)
method_57998(Supplier<class_2505> arg0)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(com.mojang.serialization.Codec<T> arg0)
fromCodecTrusted(com.mojang.serialization.Codec<T> arg0)
method_57987(com.mojang.serialization.Codec<T> arg0)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
b(com.mojang.serialization.Codec<T> arg0)
fromCodec(com.mojang.serialization.Codec<T> arg0)
method_56368(com.mojang.serialization.Codec<T> arg0)
static <T, B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, T, V>
a(com.mojang.serialization.DynamicOps<T> arg0, com.mojang.serialization.Codec<V> arg1)
fromCodec(com.mojang.serialization.DynamicOps<T> arg0, com.mojang.serialization.Codec<V> arg1)
method_71571(com.mojang.serialization.DynamicOps<T> arg0, com.mojang.serialization.Codec<V> arg1)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(com.mojang.serialization.Codec<T> arg0, Supplier<un> arg1)
fromCodec(com.mojang.serialization.Codec<T> arg0, Supplier<NbtAccounter> arg1)
method_57988(com.mojang.serialization.Codec<T> arg0, Supplier<class_2505> arg1)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
c(com.mojang.serialization.Codec<T> arg0)
fromCodecWithRegistriesTrusted(com.mojang.serialization.Codec<T> arg0)
method_58002(com.mojang.serialization.Codec<T> arg0)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
d(com.mojang.serialization.Codec<T> arg0)
fromCodecWithRegistries(com.mojang.serialization.Codec<T> arg0)
method_56896(com.mojang.serialization.Codec<T> arg0)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
b(com.mojang.serialization.Codec<T> arg0, Supplier<un> arg1)
fromCodecWithRegistries(com.mojang.serialization.Codec<T> arg0, Supplier<NbtAccounter> arg1)
method_57997(com.mojang.serialization.Codec<T> arg0, Supplier<class_2505> arg1)
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec<B, Optional<V>>
a(zi<B, V> arg0)
optional(StreamCodec<B, V> arg0)
method_56382(class_9139<B, V> arg0)
static int
a(io.netty.buffer.ByteBuf arg0, int arg1)
readCount(io.netty.buffer.ByteBuf arg0, int arg1)
method_57989(io.netty.buffer.ByteBuf arg0, int arg1)
static void
a(io.netty.buffer.ByteBuf arg0, int arg1, int arg2)
writeCount(io.netty.buffer.ByteBuf arg0, int arg1, int arg2)
method_57990(io.netty.buffer.ByteBuf arg0, int arg1, int arg2)
static <B extends io.netty.buffer.ByteBuf, V, C extends Collection<V>> StreamCodec<B, C>
a(IntFunction<C> arg0, zi<? super B, V> arg1)
collection(IntFunction<C> arg0, StreamCodec<? super B, V> arg1)
method_56376(IntFunction<C> arg0, class_9139<? super B, V> arg1)
static <B extends io.netty.buffer.ByteBuf, V, C extends Collection<V>> StreamCodec<B, C>
a(IntFunction<C> arg0, zi<? super B, V> arg1, int arg2)
collection(IntFunction<C> arg0, StreamCodec<? super B, V> arg1, int arg2)
method_57991(IntFunction<C> arg0, class_9139<? super B, V> arg1, int arg2)
static <B extends io.netty.buffer.ByteBuf, V, C extends Collection<V>> StreamCodec$CodecOperation<B, V, C>
a(IntFunction<C> arg0)
collection(IntFunction<C> arg0)
method_56374(IntFunction<C> arg0)
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, V, List<V>>
a()
list()
method_56363()
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, V, List<V>>
c(int arg0)
list(int arg0)
method_58000(int arg0)
static <B extends io.netty.buffer.ByteBuf, K, V, M extends Map<K, V>> StreamCodec<B, M>
a(IntFunction<? extends M> arg0, zi<? super B, K> arg1, zi<? super B, V> arg2)
map(IntFunction<? extends M> arg0, StreamCodec<? super B, K> arg1, StreamCodec<? super B, V> arg2)
method_56377(IntFunction<? extends M> arg0, class_9139<? super B, K> arg1, class_9139<? super B, V> arg2)
static <B extends io.netty.buffer.ByteBuf, K, V, M extends Map<K, V>> StreamCodec<B, M>
a(IntFunction<? extends M> arg0, zi<? super B, K> arg1, zi<? super B, V> arg2, int arg3)
map(IntFunction<? extends M> arg0, StreamCodec<? super B, K> arg1, StreamCodec<? super B, V> arg2, int arg3)
method_57992(IntFunction<? extends M> arg0, class_9139<? super B, K> arg1, class_9139<? super B, V> arg2, int arg3)
static <B extends io.netty.buffer.ByteBuf, L, R> StreamCodec<B, com.mojang.datafixers.util.Either<L, R>>
a(zi<? super B, L> arg0, zi<? super B, R> arg1)
either(StreamCodec<? super B, L> arg0, StreamCodec<? super B, R> arg1)
method_57995(class_9139<? super B, L> arg0, class_9139<? super B, R> arg1)
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, V, V>
a(int arg0, BiFunction<B, io.netty.buffer.ByteBuf, B> arg1)
lengthPrefixed(int arg0, BiFunction<B, io.netty.buffer.ByteBuf, B> arg1)
method_68861(int arg0, BiFunction<B, io.netty.buffer.ByteBuf, B> arg1)
static <V> StreamCodec$CodecOperation<RegistryFriendlyByteBuf, V, V>
d(int arg0)
lengthPrefixed(int arg0)
method_68864(int arg0)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(IntFunction<T> arg0, ToIntFunction<T> arg1)
idMapper(IntFunction<T> arg0, ToIntFunction<T> arg1)
method_56375(IntFunction<T> arg0, ToIntFunction<T> arg1)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(jn<T> arg0)
idMapper(IdMap<T> arg0)
method_56371(class_2359<T> arg0)
private static <T, R> StreamCodec<RegistryFriendlyByteBuf, R>
a(alv<? extends jv<T>> arg0, Function<jv<T>, jn<R>> arg1)
registry(ResourceKey<? extends Registry<T>> arg0, Function<Registry<T>, IdMap<R>> arg1)
method_56366(class_5321<? extends class_2378<T>> arg0, Function<class_2378<T>, class_2359<R>> arg1)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
a(alv<? extends jv<T>> arg0)
registry(ResourceKey<? extends Registry<T>> arg0)
method_56365(class_5321<? extends class_2378<T>> arg0)
static <T> StreamCodec<RegistryFriendlyByteBuf, Holder<T>>
b(alv<? extends jv<T>> arg0)
holderRegistry(ResourceKey<? extends Registry<T>> arg0)
method_56383(class_5321<? extends class_2378<T>> arg0)
static <T> StreamCodec<RegistryFriendlyByteBuf, Holder<T>>
a(alv<? extends jv<T>> arg0, zi<? super wt, T> arg1)
holder(ResourceKey<? extends Registry<T>> arg0, StreamCodec<? super RegistryFriendlyByteBuf, T> arg1)
method_56367(class_5321<? extends class_2378<T>> arg0, class_9139<? super class_9129, T> arg1)
static <T> StreamCodec<RegistryFriendlyByteBuf, HolderSet<T>>
c(alv<? extends jv<T>> arg0)
holderSet(ResourceKey<? extends Registry<T>> arg0)
method_58001(class_5321<? extends class_2378<T>> arg0)
static StreamCodec<io.netty.buffer.ByteBuf, com.google.gson.JsonElement>
e(int arg0)
lenientJson(int arg0)
method_71572(int arg0)