Interface Context
- All Known Implementing Classes:
Contexts
@NullMarked
public interface Context
A context that can be registered to the
ContextManager.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the context name, without any namespacing.Gets the namespace for this context.default StringGets the context name with namespace.Gets known possible values for the context.getValues(org.bukkit.entity.Player player) Gets the values for a given player at this moment in time.
-
Method Details
-
getName
String getName()Gets the context name, without any namespacing. Format should be lowercase words separated by hyphens (-).- Returns:
- name
-
getNamespace
String getNamespace()Gets the namespace for this context. Namespaces should be the plugin name, lowercased. Other plugins using this class should not usefactionsuuidas their namespace.- Returns:
- namespace
-
getNamespacedName
Gets the context name with namespace. The format isnamespace:name.- Returns:
- namespaced name
-
getPossibleValues
Gets known possible values for the context.- Returns:
- immutable set of possible values
-
getValues
Gets the values for a given player at this moment in time.- Parameters:
player- player- Returns:
- immutable set of current values
-