Package ch.njol.skript.entity
Class XpOrbData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.ExperienceOrb>
ch.njol.skript.entity.XpOrbData
- 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
deserialize(String s)
protected boolean
equals_i(EntityData<?> obj)
int
int
Returns the super type of this entity data, e.g.Class<? extends org.bukkit.entity.ExperienceOrb>
getType()
protected int
protected boolean
init(@Nullable Class<? extends org.bukkit.entity.ExperienceOrb> c, @Nullable org.bukkit.entity.ExperienceOrb e)
protected boolean
init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)
boolean
isSupertypeOf(EntityData<?> e)
protected boolean
match(org.bukkit.entity.ExperienceOrb entity)
void
set(org.bukkit.entity.ExperienceOrb entity)
@Nullable org.bukkit.entity.ExperienceOrb
spawn(org.bukkit.Location loc)
toString(int flags)
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, 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
-
XpOrbData
public XpOrbData() -
XpOrbData
public XpOrbData(int xp)
-
-
Method Details
-
init
protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)- Specified by:
init
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
init
protected boolean init(@Nullable Class<? extends org.bukkit.entity.ExperienceOrb> c, @Nullable org.bukkit.entity.ExperienceOrb e)- Specified by:
init
in classEntityData<org.bukkit.entity.ExperienceOrb>
- 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
-
getType
- Specified by:
getType
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
match
protected boolean match(org.bukkit.entity.ExperienceOrb entity)- Specified by:
match
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
set
public void set(org.bukkit.entity.ExperienceOrb entity)- Specified by:
set
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
spawn
public @Nullable org.bukkit.entity.ExperienceOrb spawn(org.bukkit.Location loc)- Overrides:
spawn
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
toString
- Overrides:
toString
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
getExperience
public int getExperience() -
getInternalExperience
public int getInternalExperience() -
hashCode_i
protected int hashCode_i()- Specified by:
hashCode_i
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
equals_i
- Specified by:
equals_i
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
deserialize
- Overrides:
deserialize
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
isSupertypeOf
- Specified by:
isSupertypeOf
in classEntityData<org.bukkit.entity.ExperienceOrb>
-
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.ExperienceOrb>
- Returns:
- The supertype of this entity data. Must not be null.
-