Package codechicken.lib.packet
Interface CCRegistryFriendlyByteBufExtension
- All Superinterfaces:
CCFriendlyByteBufExtension
- All Known Implementing Classes:
net.minecraft.network.RegistryFriendlyByteBuf,RegistryFriendlyByteBufMixin,StreamPacket,StreamPacket.ToClient,StreamPacket.ToServer
An extension interface containing various helpers
for reading and writing to
RegistryFriendlyByteBuf.
Created by covers1624 on 10/31/25.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Tcc$readWithRegistryCodec(net.minecraft.network.codec.StreamDecoder<net.minecraft.network.RegistryFriendlyByteBuf, ? extends T> codec) Read from the stream with aStreamDecoder/StreamCodec.default <T> net.minecraft.network.RegistryFriendlyByteBufcc$writeWithRegistryCodec(net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ? super T> codec, T thing) Write to the stream with aStreamEncoder/StreamCodec.Methods inherited from interface codechicken.lib.packet.CCFriendlyByteBufExtension
cc$readSignedVarInt, cc$readSignedVarLong, cc$readWithCodec, cc$writeSignedVarInt, cc$writeSignedVarLong, cc$writeWithCodec, readCuboid6, readVector3, writeCuboid6, writeVector3
-
Method Details
-
cc$writeWithRegistryCodec
default <T> net.minecraft.network.RegistryFriendlyByteBuf cc$writeWithRegistryCodec(net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ? super T> codec, T thing) Write to the stream with aStreamEncoder/StreamCodec.- Parameters:
codec- The codec.thing- The thing to write.- Returns:
- The same stream.
-
cc$readWithRegistryCodec
default <T> T cc$readWithRegistryCodec(net.minecraft.network.codec.StreamDecoder<net.minecraft.network.RegistryFriendlyByteBuf, ? extends T> codec) Read from the stream with aStreamDecoder/StreamCodec.- Parameters:
codec- The codec.- Returns:
- The thing that was read.
-