Package ch.njol.skript.entity
Class RabbitData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Rabbit>
ch.njol.skript.entity.RabbitData
- 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
Fields 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 booleanequals_i(EntityData<?> obj)Returns the super type of this entity data, e.g.Class<? extends org.bukkit.entity.Rabbit>getType()protected intprotected booleaninit(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)protected booleanbooleanisSupertypeOf(EntityData<?> e)protected booleanmatch(org.bukkit.entity.Rabbit entity)voidset(org.bukkit.entity.Rabbit entity)Methods inherited from class ch.njol.skript.entity.EntityData
deserialize, 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
-
Constructor Details
-
RabbitData
public RabbitData() -
RabbitData
public RabbitData(int type)
-
-
Method Details
-
init
protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)- Specified by:
initin classEntityData<org.bukkit.entity.Rabbit>
-
init
protected boolean init(Class<? extends org.bukkit.entity.Rabbit> c, org.bukkit.entity.Rabbit rabbit)- Specified by:
initin classEntityData<org.bukkit.entity.Rabbit>- Parameters:
c- An entity's class, e.g. Playerrabbit- An actual entity, or null to get an entity data for an entity class- Returns:
- Whether initialisation was successful
-
set
public void set(org.bukkit.entity.Rabbit entity)- Specified by:
setin classEntityData<org.bukkit.entity.Rabbit>
-
match
protected boolean match(org.bukkit.entity.Rabbit entity)- Specified by:
matchin classEntityData<org.bukkit.entity.Rabbit>
-
getType
- Specified by:
getTypein classEntityData<org.bukkit.entity.Rabbit>
-
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.Rabbit>- Returns:
- The supertype of this entity data. Must not be null.
-
hashCode_i
protected int hashCode_i()- Specified by:
hashCode_iin classEntityData<org.bukkit.entity.Rabbit>
-
equals_i
- Specified by:
equals_iin classEntityData<org.bukkit.entity.Rabbit>
-
isSupertypeOf
- Specified by:
isSupertypeOfin classEntityData<org.bukkit.entity.Rabbit>
-