Class ShulkerData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Shulker>
org.skriptlang.skript.bukkit.entity.EntityData<org.bukkit.entity.Shulker>
org.skriptlang.skript.bukkit.entity.data.ColorableEntityData<org.bukkit.entity.Shulker>
org.skriptlang.skript.bukkit.entity.data.ShulkerData
- All Implemented Interfaces:
SyntaxElement, YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustSerializable
public class ShulkerData
extends ColorableEntityData<org.bukkit.entity.Shulker>
implements YggdrasilSerializable.YggdrasilRobustSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class EntityData
EntityData.EntityDataPatterns<Data>, EntityData.PatternGroup<Data>Nested classes/interfaces inherited from interface YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable -
Field Summary
FieldsFields inherited from class ColorableEntityData
colorFields inherited from class EntityData
AGE_ADULT, AGE_BABY, AGE_PATTERN, groupIndexFields inherited from class EntityData
LANGUAGE_NODE, serializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled if a field was read from stream which does not exist in this class.@NotNull EntityData<?> Returns a more general version of thisEntityDatawith specific data removed.Class<? extends org.bukkit.entity.Shulker> getType()booleanincompatibleField(@NotNull Field field, Fields.FieldContext value) Called if a field that was read from stream is of an incompatible type to the existing field in this class.booleanmissingField(@NotNull Field field) Called if a field was not found in the stream.static voidregister()Methods inherited from class ColorableEntityData
equals_i, hashCode_i, init, init, isSupertypeOf, match, set, toStringMethods inherited from class EntityData
canSpawn, create, create, create, dataMatch, deserialize, equals, fromClass, fromEntity, getAgeNoun, getAll, getAll, getAll, getInfo, getInfo, getName, getSyntaxTypeName, hashCode, infoBuilder, init, isBaby, isInstance, isPlural, isRegistered, isSupertypeOf, kleeneanMatch, kleeneanMatch, onRegistrationStop, parse, parseWithoutIndefiniteArticle, registerInfo, serialize, spawn, spawn, spawn, toString, toString, toString, toString, toStringMethods inherited from class EntityData
getAll, getAllMethods inherited from interface SyntaxElement
getParser, preInit
-
Field Details
-
GROUP
-
-
Constructor Details
-
ShulkerData
public ShulkerData() -
ShulkerData
public ShulkerData(@Nullable @Nullable org.bukkit.DyeColor color)
-
-
Method Details
-
register
public static void register() -
getType
Description copied from class:EntityData- Specified by:
getTypein classEntityData<org.bukkit.entity.Shulker>- Returns:
- The entity's
Class, such asPig.class.
-
getSuperType
Description copied from class:EntityDataReturns a more general version of thisEntityDatawith specific data removed.For example, calling this on
"a saddled pig"should return"a pig". This is typically used to obtain the base entity type without any modifiers or traits.- Specified by:
getSuperTypein classEntityData<org.bukkit.entity.Shulker>- Returns:
- A generalized
EntityDatarepresenting the base entity type.
-
incompatibleField
Description copied from interface:YggdrasilSerializable.YggdrasilRobustSerializableCalled if a field that was read from stream is of an incompatible type to the existing field in this class.- Specified by:
incompatibleFieldin interfaceYggdrasilSerializable.YggdrasilRobustSerializable- Parameters:
field- The Java fieldvalue- The field read from stream- Returns:
- Whether the field was handled. If false,
yggdrasil.
incompatibleField(this, field, value) will be called.
-
excessiveField
Description copied from interface:YggdrasilSerializable.YggdrasilRobustSerializableCalled if a field was read from stream which does not exist in this class.- Specified by:
excessiveFieldin interfaceYggdrasilSerializable.YggdrasilRobustSerializable- Parameters:
field- The field read from stream- Returns:
- Whether the field was handled. If false,
yggdrasil.
excessiveField(this, field) will be called.
-
missingField
Description copied from interface:YggdrasilSerializable.YggdrasilRobustSerializableCalled if a field was not found in the stream.- Specified by:
missingFieldin interfaceYggdrasilSerializable.YggdrasilRobustSerializable- Parameters:
field- The field that did not occur in the stream- Returns:
- Whether the field was handled (e.g. true if the default value is fine). If false,
yggdrasil.
missingField(this, field) will be called.
-