Package ch.njol.skript.entity
Class MooshroomData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.MushroomCow>
ch.njol.skript.entity.MooshroomData
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
equals_i(EntityData<?> data)
Returns the super type of this entity data, e.g.Class<? extends org.bukkit.entity.MushroomCow>
getType()
protected int
protected boolean
init(@Nullable Class<? extends org.bukkit.entity.MushroomCow> c, @Nullable org.bukkit.entity.MushroomCow mushroomCow)
protected boolean
init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)
boolean
isSupertypeOf(EntityData<?> data)
protected boolean
match(org.bukkit.entity.MushroomCow entity)
void
set(org.bukkit.entity.MushroomCow 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Constructor Details
-
MooshroomData
public MooshroomData() -
MooshroomData
public MooshroomData(@Nullable org.bukkit.entity.MushroomCow.Variant variant)
-
-
Method Details
-
init
protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)- Specified by:
init
in classEntityData<org.bukkit.entity.MushroomCow>
-
init
protected boolean init(@Nullable Class<? extends org.bukkit.entity.MushroomCow> c, @Nullable org.bukkit.entity.MushroomCow mushroomCow)- Specified by:
init
in classEntityData<org.bukkit.entity.MushroomCow>
- Parameters:
c
- An entity's class, e.g. PlayermushroomCow
- 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.MushroomCow entity)- Specified by:
set
in classEntityData<org.bukkit.entity.MushroomCow>
-
match
protected boolean match(org.bukkit.entity.MushroomCow entity)- Specified by:
match
in classEntityData<org.bukkit.entity.MushroomCow>
-
getType
- Specified by:
getType
in classEntityData<org.bukkit.entity.MushroomCow>
-
getSuperType
Description copied from class:EntityData
Returns the super type of this entity data, e.g. 'wolf' for 'angry wolf'.- Specified by:
getSuperType
in classEntityData<org.bukkit.entity.MushroomCow>
- Returns:
- The supertype of this entity data. Must not be null.
-
hashCode_i
protected int hashCode_i()- Specified by:
hashCode_i
in classEntityData<org.bukkit.entity.MushroomCow>
-
equals_i
- Specified by:
equals_i
in classEntityData<org.bukkit.entity.MushroomCow>
-
isSupertypeOf
- Specified by:
isSupertypeOf
in classEntityData<org.bukkit.entity.MushroomCow>
-