Class DisplayData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Display>
org.skriptlang.skript.bukkit.displays.DisplayData
- 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, WORLD_1_13_CONSUMER, WORLD_1_13_CONSUMER_METHOD, WORLD_1_17_CONSUMER, WORLD_1_17_CONSUMER_METHOD
-
Constructor Summary
ConstructorDescriptionDisplayData
(org.skriptlang.skript.bukkit.displays.DisplayData.DisplayType type) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
equals_i
(EntityData<?> obj) EntityData
<?> Returns the super type of this entity data, e.g.Class
<? extends org.bukkit.entity.Display> getType()
protected int
protected boolean
init
(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult) protected boolean
init
(@Nullable Class<? extends org.bukkit.entity.Display> displayClass, @Nullable org.bukkit.entity.Display entity) boolean
isSupertypeOf
(EntityData<?> entityData) boolean
match
(org.bukkit.entity.Display entity) void
set
(org.bukkit.entity.Display entity) Methods inherited from class ch.njol.skript.entity.EntityData
canSpawn, deserialize, deserialize, equals, fromClass, fromEntity, getAgeAdjective, getAll, getAll, getAll, getInfo, getInfo, getName, hashCode, init, isBaby, isInstance, isPlural, onRegistrationStop, parse, parseWithoutIndefiniteArticle, register, register, serialize, spawn, spawn, 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
-
Field Details
-
DEFAULT_BACKGROUND_COLOR
public static final org.bukkit.Color DEFAULT_BACKGROUND_COLOR
-
-
Constructor Details
-
DisplayData
public DisplayData() -
DisplayData
public DisplayData(org.skriptlang.skript.bukkit.displays.DisplayData.DisplayType type)
-
-
Method Details
-
init
protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult) - Specified by:
init
in classEntityData<org.bukkit.entity.Display>
-
init
protected boolean init(@Nullable @Nullable Class<? extends org.bukkit.entity.Display> displayClass, @Nullable @Nullable org.bukkit.entity.Display entity) - Specified by:
init
in classEntityData<org.bukkit.entity.Display>
- Parameters:
displayClass
- An entity's class, e.g. Playerentity
- 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.Display entity) - Specified by:
set
in classEntityData<org.bukkit.entity.Display>
-
match
public boolean match(org.bukkit.entity.Display entity) - Specified by:
match
in classEntityData<org.bukkit.entity.Display>
-
getType
- Specified by:
getType
in classEntityData<org.bukkit.entity.Display>
-
hashCode_i
protected int hashCode_i()- Specified by:
hashCode_i
in classEntityData<org.bukkit.entity.Display>
-
equals_i
- Specified by:
equals_i
in classEntityData<org.bukkit.entity.Display>
-
isSupertypeOf
- Specified by:
isSupertypeOf
in classEntityData<org.bukkit.entity.Display>
-
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.Display>
- Returns:
- The supertype of this entity data. Must not be null.
-