Interface IEncodeable
- All Known Implementing Classes:
ClientShopkeeperData
public interface IEncodeable
A class that can be serialized into a ByteBuf.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeInto(net.minecraft.network.FriendlyByteBuf buffer) Decodes the object from a buffer.voidencodeInto(net.minecraft.network.FriendlyByteBuf buffer) Encodes the object into a buffer.
-
Method Details
-
encodeInto
void encodeInto(net.minecraft.network.FriendlyByteBuf buffer) Encodes the object into a buffer.- Parameters:
buffer- The buffer to encode the object into.
-
decodeInto
void decodeInto(net.minecraft.network.FriendlyByteBuf buffer) Decodes the object from a buffer.- Parameters:
buffer- The buffer to decode the object from.
-