toTag

@Nullable()
static NbtCompound toTag(boolean isClientSync, @Nullable() NbtCompound activeTag)

Creates a NbtCompound used to save or sync the registry ids.

Return

a NbtCompound to save or sync, null when empty

Parameters

isClientSync

true when syncing to the client, false when saving

activeTag

contains the registry ids that were previously read and applied, can be null.

Sources

jvm source
Link copied to clipboard