Interface NetworkStorage
- All Known Implementing Classes:
AnvilStorage
,ApothSalvagingTableStorage
,BeaconStorage
,ClientBookData
,ClientLecternData
,CommonBookData
,CraftingTableStorage
,ETableStorage
,ETableWorldStorage
,GrindstoneStorage
,ItemStorage
,LecternData
,ListOfItemsStorage
,NullStorage
,SmithingTableStorage
public interface NetworkStorage
An object that can be written into and out of a buffer. This is used by
ImmersiveHandler
to transfer
Immersive storage contents between the server and the client.-
Method Summary
-
Method Details
-
encode
void encode(net.minecraft.network.RegistryFriendlyByteBuf buffer) Encode this storage into a buffer.- Parameters:
buffer
- Buffer to encode storage into.
-
decode
void decode(net.minecraft.network.RegistryFriendlyByteBuf buffer) Decode the buffer into this object.- Parameters:
buffer
- Buffer to decode from.
-