Interface SyntaxOrigin
- All Known Implementing Classes:
SyntaxOrigin.AddonOrigin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The origin of a syntax, currently only used for documentation purposes.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A basic origin describing the addon a syntax has originated from. -
Method Summary
Modifier and TypeMethodDescriptionname()
static SyntaxOrigin
of
(SkriptAddon addon) Constructs a syntax origin from an addon.
-
Method Details
-
of
Constructs a syntax origin from an addon.- Parameters:
addon
- The addon to construct this origin from.- Returns:
- An origin pointing to the provided addon.
-
name
String name()- Returns:
- A string representing this origin.
-