Interface ConfigurateDataComponentValue

  • All Superinterfaces:
    DataComponentValue, net.kyori.examination.Examinable

    public interface ConfigurateDataComponentValue
    extends DataComponentValue
    A data component value that can integrate with configuration nodes.
    Since:
    4.17.0
    • Method Detail

      • capturingDataComponentValue

        @NotNull
        static @NotNull ConfigurateDataComponentValue capturingDataComponentValue​(@NotNull
                                                                                  @NotNull 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​(@NotNull
                     @NotNull 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