Interface ConfigurateDataComponentValue
- All Superinterfaces:
DataComponentValue
A data component value that can integrate with configuration nodes.
- Since:
- 4.17.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataComponentValue
DataComponentValue.Removed, DataComponentValue.TagSerializable -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(org.spongepowered.configurate.ConfigurationNode node) Apply the contained value to the supplied node.capturingDataComponentValue(org.spongepowered.configurate.ConfigurationNode existing) Create a data component value capturing the value of an existing node.
-
Method Details
-
capturingDataComponentValue
static ConfigurateDataComponentValue capturingDataComponentValue(org.spongepowered.configurate.ConfigurationNode existing) Create a data component value capturing the value of an existing node.- Parameters:
existing- the existing node- Returns:
- the captured value
- Since:
- 4.17.0
-
applyTo
void applyTo(org.spongepowered.configurate.ConfigurationNode node) Apply the contained value to the supplied node.- Parameters:
node- the node to apply this value to- Since:
- 4.17.0
-