Package ch.njol.skript.entity
Class SkeletonData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Skeleton>
ch.njol.skript.entity.SkeletonData
- All Implemented Interfaces:
SyntaxElement,YggdrasilSerializable,YggdrasilSerializable.YggdrasilExtendedSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.yggdrasil.YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intFields inherited from class ch.njol.skript.entity.EntityData
LANGUAGE_NODE, m_adult, m_age_pattern, m_baby, matchedPattern, serializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandeserialize(String s)protected booleanequals_i(EntityData<?> obj)Returns the super type of this entity data, e.g.Class<? extends org.bukkit.entity.Skeleton>getType()protected intprotected booleaninit(@Nullable Class<? extends org.bukkit.entity.Skeleton> c, @Nullable org.bukkit.entity.Skeleton e)protected booleaninit(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)booleanisStray()booleanisSupertypeOf(EntityData<?> e)booleanisWither()protected booleanmatch(org.bukkit.entity.Skeleton e)voidset(org.bukkit.entity.Skeleton e)Methods inherited from class ch.njol.skript.entity.EntityData
deserialize, equals, fromClass, fromEntity, getAgeAdjective, getAll, getAll, getAll, getInfo, getInfo, getName, hashCode, init, isBaby, isInstance, isPlural, parse, parseWithoutIndefiniteArticle, register, register, serialize, spawn, spawn, toString, toString, toString, toString, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Field Details
-
NORMAL
public static final int NORMAL- See Also:
- Constant Field Values
-
WITHER
public static final int WITHER- See Also:
- Constant Field Values
-
STRAY
public static final int STRAY- See Also:
- Constant Field Values
-
LAST_INDEX
public static final int LAST_INDEX- See Also:
- Constant Field Values
-
-
Constructor Details
-
SkeletonData
public SkeletonData() -
SkeletonData
public SkeletonData(int type)
-
-
Method Details
-
isWither
public boolean isWither() -
isStray
public boolean isStray() -
init
protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)- Specified by:
initin classEntityData<org.bukkit.entity.Skeleton>
-
init
protected boolean init(@Nullable Class<? extends org.bukkit.entity.Skeleton> c, @Nullable org.bukkit.entity.Skeleton e)- Specified by:
initin classEntityData<org.bukkit.entity.Skeleton>- Parameters:
c- An entity's class, e.g. Playere- An actual entity, or null to get an entity data for an entity class- Returns:
- Whether initialisation was successful
-
deserialize
- Overrides:
deserializein classEntityData<org.bukkit.entity.Skeleton>
-
set
public void set(org.bukkit.entity.Skeleton e)- Specified by:
setin classEntityData<org.bukkit.entity.Skeleton>
-
match
protected boolean match(org.bukkit.entity.Skeleton e)- Specified by:
matchin classEntityData<org.bukkit.entity.Skeleton>
-
getType
- Specified by:
getTypein classEntityData<org.bukkit.entity.Skeleton>
-
equals_i
- Specified by:
equals_iin classEntityData<org.bukkit.entity.Skeleton>
-
hashCode_i
protected int hashCode_i()- Specified by:
hashCode_iin classEntityData<org.bukkit.entity.Skeleton>
-
isSupertypeOf
- Specified by:
isSupertypeOfin classEntityData<org.bukkit.entity.Skeleton>
-
getSuperType
Description copied from class:EntityDataReturns the super type of this entity data, e.g. 'wolf' for 'angry wolf'.- Specified by:
getSuperTypein classEntityData<org.bukkit.entity.Skeleton>- Returns:
- The supertype of this entity data. Must not be null.
-