Interface CreateStreamCodecs
public interface CreateStreamCodecs
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, C> ofLegacyNbtWithRegistries(BiFunction<C, net.minecraft.core.HolderLookup.Provider, net.minecraft.nbt.CompoundTag> writer, BiFunction<net.minecraft.core.HolderLookup.Provider, net.minecraft.nbt.CompoundTag, C> reader) Deprecated, for removal: This API element is subject to removal in a future version.All uses should be converted to proper codecs, but will require notable refactoringstatic <B extends io.netty.buffer.ByteBuf,V>
net.minecraft.network.codec.StreamCodec.CodecOperation<B, V, Vector<V>> vector()Deprecated, for removal: This API element is subject to removal in a future version.Vector should be replaced with list
-
Method Details
-
vector
@Deprecated(forRemoval=true) static <B extends io.netty.buffer.ByteBuf,V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V, vector()Vector<V>> Deprecated, for removal: This API element is subject to removal in a future version.Vector should be replaced with list -
ofLegacyNbtWithRegistries
@Deprecated(forRemoval=true) static <C> net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,C> ofLegacyNbtWithRegistries(BiFunction<C, net.minecraft.core.HolderLookup.Provider, net.minecraft.nbt.CompoundTag> writer, BiFunction<net.minecraft.core.HolderLookup.Provider, net.minecraft.nbt.CompoundTag, C> reader) Deprecated, for removal: This API element is subject to removal in a future version.All uses should be converted to proper codecs, but will require notable refactoring
-