Interface FieldProvider


public sealed interface FieldProvider

The FieldProvider interface is designed to define a method for providing selection fields based on their names. Implementations of this interface are responsible for defining the logic to retrieve a field corresponding to the provided name. The purpose is to allow dynamic retrieval of fields, which may be used for various purposes such as filtering or selecting specific data attributes.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FieldProvider
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> @Nullable SelectionField<V>
    provideField(String name, studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor)
    Provides a selection field based on the given name.
  • Field Details

  • Method Details

    • provideField

      @Nullable <V> @Nullable SelectionField<V> provideField(String name, studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor)
      Provides a selection field based on the given name.
      Type Parameters:
      V - The type of the value that the selection field handles.
      Parameters:
      name - The name of the selection field to retrieve.
      Returns:
      The selection field corresponding to the provided name, or null if no such field exists.