net.minecraft.network.codec

public interface ByteBufCodecs

yl
net.minecraft.network.codec.ByteBufCodecs
net.minecraft.class_9135
net.minecraft.network.codec.PacketCodecs
net.minecraft.network.codec.ByteBufCodecs

Field summary

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

Method summary

Modifier and TypeMethod
static StreamCodec<io.netty.buffer.ByteBuf, byte[]>
a(int arg0)
byteArray(int arg0)
method_56895(int arg0)
byteArray(int maxLength)
static StreamCodec<io.netty.buffer.ByteBuf, String>
b(int arg0)
stringUtf8(int arg0)
method_56364(int arg0)
string(int maxLength)
static StreamCodec<io.netty.buffer.ByteBuf, Tag>
a(Supplier<tz> arg0)
tagCodec(Supplier<NbtAccounter> arg0)
method_56378(Supplier<class_2505> arg0)
nbt(Supplier<NbtSizeTracker> sizeTracker)
static StreamCodec<io.netty.buffer.ByteBuf, CompoundTag>
b(Supplier<tz> arg0)
compoundTagCodec(Supplier<NbtAccounter> arg0)
method_57998(Supplier<class_2505> arg0)
nbtCompound(Supplier<NbtSizeTracker> sizeTracker)
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)
unlimitedCodec(com.mojang.serialization.Codec<T> codec)
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)
codec(com.mojang.serialization.Codec<T> codec)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(com.mojang.serialization.Codec<T> arg0, Supplier<tz> arg1)
fromCodec(com.mojang.serialization.Codec<T> arg0, Supplier<NbtAccounter> arg1)
method_57988(com.mojang.serialization.Codec<T> arg0, Supplier<class_2505> arg1)
codec(com.mojang.serialization.Codec<T> codec, Supplier<NbtSizeTracker> sizeTracker)
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)
unlimitedRegistryCodec(com.mojang.serialization.Codec<T> codec)
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)
registryCodec(com.mojang.serialization.Codec<T> codec)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
b(com.mojang.serialization.Codec<T> arg0, Supplier<tz> arg1)
fromCodecWithRegistries(com.mojang.serialization.Codec<T> arg0, Supplier<NbtAccounter> arg1)
method_57997(com.mojang.serialization.Codec<T> arg0, Supplier<class_2505> arg1)
registryCodec(com.mojang.serialization.Codec<T> codec, Supplier<NbtSizeTracker> sizeTracker)
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec<B, Optional<V>>
a(yn<B, V> arg0)
optional(StreamCodec<B, V> arg0)
method_56382(class_9139<B, V> arg0)
optional(PacketCodec<B, V> codec)
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)
readCollectionSize(io.netty.buffer.ByteBuf buf, int maxSize)
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)
writeCollectionSize(io.netty.buffer.ByteBuf buf, int size, int maxSize)
static <B extends io.netty.buffer.ByteBuf, V, C extends Collection<V>> StreamCodec<B, C>
a(IntFunction<C> arg0, yn<? super B, V> arg1)
collection(IntFunction<C> arg0, StreamCodec<? super B, V> arg1)
method_56376(IntFunction<C> arg0, class_9139<? super B, V> arg1)
collection(IntFunction<C> factory, PacketCodec<? super B, V> elementCodec)
static <B extends io.netty.buffer.ByteBuf, V, C extends Collection<V>> StreamCodec<B, C>
a(IntFunction<C> arg0, yn<? 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)
collection(IntFunction<C> factory, PacketCodec<? super B, V> elementCodec, int maxSize)
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)
toCollection(IntFunction<C> collectionFactory)
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, V, List<V>>
a()
list()
method_56363()
toList()
static <B extends io.netty.buffer.ByteBuf, V> StreamCodec$CodecOperation<B, V, List<V>>
c(int arg0)
list(int arg0)
method_58000(int arg0)
toList(int maxLength)
static <B extends io.netty.buffer.ByteBuf, K, V, M extends Map<K, V>> StreamCodec<B, M>
a(IntFunction<? extends M> arg0, yn<? super B, K> arg1, yn<? 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)
map(IntFunction<? extends M> factory, PacketCodec<? super B, K> keyCodec, PacketCodec<? super B, V> valueCodec)
static <B extends io.netty.buffer.ByteBuf, K, V, M extends Map<K, V>> StreamCodec<B, M>
a(IntFunction<? extends M> arg0, yn<? super B, K> arg1, yn<? 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)
map(IntFunction<? extends M> factory, PacketCodec<? super B, K> keyCodec, PacketCodec<? super B, V> valueCodec, int maxSize)
static <B extends io.netty.buffer.ByteBuf, L, R> StreamCodec<B, com.mojang.datafixers.util.Either<L, R>>
a(yn<? super B, L> arg0, yn<? 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)
either(PacketCodec<? super B, L> left, PacketCodec<? super B, R> right)
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)
indexed(IntFunction<T> indexToValue, ToIntFunction<T> valueToIndex)
static <T> StreamCodec<io.netty.buffer.ByteBuf, T>
a(jw<T> arg0)
idMapper(IdMap<T> arg0)
method_56371(class_2359<T> arg0)
entryOf(IndexedIterable<T> iterable)
private static <T, R> StreamCodec<RegistryFriendlyByteBuf, R>
a(aku<? extends ke<T>> arg0, Function<ke<T>, jw<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)
registry(RegistryKey<? extends Registry<T>> registry, Function<Registry<T>, IndexedIterable<R>> registryTransformer)
static <T> StreamCodec<RegistryFriendlyByteBuf, T>
a(aku<? extends ke<T>> arg0)
registry(ResourceKey<? extends Registry<T>> arg0)
method_56365(class_5321<? extends class_2378<T>> arg0)
registryValue(RegistryKey<? extends Registry<T>> registry)
static <T> StreamCodec<RegistryFriendlyByteBuf, Holder<T>>
b(aku<? extends ke<T>> arg0)
holderRegistry(ResourceKey<? extends Registry<T>> arg0)
method_56383(class_5321<? extends class_2378<T>> arg0)
registryEntry(RegistryKey<? extends Registry<T>> registry)
static <T> StreamCodec<RegistryFriendlyByteBuf, Holder<T>>
a(aku<? extends ke<T>> arg0, yn<? super wa, 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)
registryEntry(RegistryKey<? extends Registry<T>> registry, PacketCodec<? super RegistryByteBuf, T> directCodec)
static <T> StreamCodec<RegistryFriendlyByteBuf, HolderSet<T>>
c(aku<? extends ke<T>> arg0)
holderSet(ResourceKey<? extends Registry<T>> arg0)
method_58001(class_5321<? extends class_2378<T>> arg0)
registryEntryList(RegistryKey<? extends Registry<T>> registryRef)