Interface DataComponentValue

All Known Subinterfaces:
BinaryTagHolder, ConfigurateDataComponentValue, DataComponentValue.Removed, DataComponentValue.TagSerializable, GsonDataComponentValue

public interface DataComponentValue
A holder for the value of an item's data component.

The exact value is platform-specific. Serializers may provide their own implementations as well, and any logic to serialize or deserialize should be done per-serializer.

Since:
4.17.0
Since Minecraft:
1.20.5
  • Method Details

    • removed

      static DataComponentValue.Removed removed()
      Get a marker value to indicate that a data component's value should be removed.
      Returns:
      the removed holder
      Since:
      4.17.0
      Since Minecraft:
      1.20.5