Interface EntityDataInfo<Data extends EntityData<E>, E extends org.bukkit.entity.Entity>
- Type Parameters:
Data- The entity data class.E- The entity class thatdatauses.
- All Superinterfaces:
DefaultSyntaxInfos, SyntaxInfo<Data>
public sealed interface EntityDataInfo<Data extends EntityData<E>, E extends org.bukkit.entity.Entity>
extends SyntaxInfo<Data>
Syntax info for entity data classes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEntityDataInfo.Builder<B extends EntityDataInfo.Builder<B,Data, E>, Data extends EntityData<E>, E extends org.bukkit.entity.Entity> Builder used for constructing a newEntityDataInfo.Nested classes/interfaces inherited from interface DefaultSyntaxInfos
DefaultSyntaxInfos.Expression<E,R>, DefaultSyntaxInfos.Structure<E> -
Field Summary
Fields inherited from interface SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE -
Method Summary
Modifier and TypeMethodDescriptiondataName()default EntityData.PatternGroup<?> int@Nullable org.bukkit.entity.EntityTypegroupFromMatchedPattern(int matchedPattern) Gets theEntityData.PatternGroupcorresponding to thematchedPatterninEntityData.init(ch.njol.skript.lang.Expression[], int, Kleenean, ParseResult).intmatchedGroupPattern(int matchedPattern) Gets the index of the pattern matched in the correspondingEntityData.PatternGroup.names()
-
Method Details
-
dataName
String dataName()- Returns:
- The name this info is identified as.
-
dataPatterns
EntityData.EntityDataPatterns<?> dataPatterns()- Returns:
- The data patterns for this info.
-
defaultGroup
- Returns:
- The default
EntityData.PatternGroup.
-
defaultGroupIndex
int defaultGroupIndex()- Returns:
- The index of the default
EntityData.PatternGroup.
-
names
SequencedCollection<GeneralNoun> names()- Returns:
- The
GeneralNounformat of the 'name' node for each code name in the lang file.
-
entityType
@Nullable @Nullable org.bukkit.entity.EntityType entityType()- Returns:
- The entity type this info correlates to.
-
entityClass
-
groupFromMatchedPattern
Gets theEntityData.PatternGroupcorresponding to thematchedPatterninEntityData.init(ch.njol.skript.lang.Expression[], int, Kleenean, ParseResult).- Parameters:
matchedPattern- The index of the pattern matched.- Returns:
- The corresponding
EntityData.PatternGroup.
-
matchedGroupPattern
int matchedGroupPattern(int matchedPattern) Gets the index of the pattern matched in the correspondingEntityData.PatternGroup.- Parameters:
matchedPattern- The placement of the pattern used.- Returns:
- Index of the pattern in
EntityData.PatternGroup.
-