Interface SyntaxRegistry.ChildKey<I extends P,P extends SyntaxInfo<?>>
- Type Parameters:
I
- The child key's syntax type.P
- The parent key's syntax type.
- All Superinterfaces:
SyntaxRegistry.Key<I>
- Enclosing interface:
SyntaxRegistry
@Experimental
public static interface SyntaxRegistry.ChildKey<I extends P,P extends SyntaxInfo<?>>
extends SyntaxRegistry.Key<I>
Like a
SyntaxRegistry.Key
, but it has a parent which causes elements to be registered to itself and its parent.-
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends P,
P extends SyntaxInfo<?>>
SyntaxRegistry.Key<I> of
(SyntaxRegistry.Key<P> parent, String name) parent()
Methods inherited from interface org.skriptlang.skript.registration.SyntaxRegistry.Key
name
-
Method Details
-
of
@Contract("_, _ -> new") static <I extends P,P extends SyntaxInfo<?>> SyntaxRegistry.Key<I> of(SyntaxRegistry.Key<P> parent, String name) - Type Parameters:
I
- The child key's syntax type.P
- The parent key's syntax type.- Parameters:
parent
- The parent of this key.name
- The name of this key.- Returns:
- A default child key implementation.
-
parent
SyntaxRegistry.Key<P> parent()- Returns:
- The parent key of this child key.
-