Class StructuredDataContainer

java.lang.Object
com.viaversion.viaversion.api.minecraft.data.StructuredDataContainer

public final class StructuredDataContainer extends Object
Loosely represents Minecraft's data component patch, but may also be used for an item's full data components.

The most commonly used methods will ignore empty data (aka empty overrides that remove item defaults) since those will rarely be needed. These are:

To interact with empty patches specifically, use: Other methods (e.g. getData(StructuredDataKey) and has(StructuredDataKey)) will handle both empty and non-empty data.