Class CushionData
java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Cushion>
org.skriptlang.skript.bukkit.entity.EntityData<org.bukkit.entity.Cushion>
org.skriptlang.skript.bukkit.entity.data.ColorableEntityData<org.bukkit.entity.Cushion>
org.skriptlang.skript.bukkit.entity.data.CushionData
- All Implemented Interfaces:
SyntaxElement, YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable, EntityItemTypeComparable
public class CushionData
extends ColorableEntityData<org.bukkit.entity.Cushion>
implements EntityItemTypeComparable
-
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
FieldsModifier and TypeFieldDescriptionstatic final Map<org.bukkit.DyeColor, org.bukkit.Material> static final EntityData.EntityDataPatterns<?> Fields 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 TypeMethodDescription@NotNull EntityData<?> Returns a more general version of thisEntityDatawith specific data removed.Class<? extends org.bukkit.entity.Cushion> getType()booleanisOfItemType(ItemType itemType) Whether thisEntityDatatyped-class is ofitemType.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
-
CUSHIONS
-
-
Constructor Details
-
CushionData
public CushionData() -
CushionData
public CushionData(@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.Cushion>- 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.Cushion>- Returns:
- A generalized
EntityDatarepresenting the base entity type.
-
isOfItemType
Description copied from interface:EntityItemTypeComparableWhether thisEntityDatatyped-class is ofitemType. Each implementation varies on what is considered to pass.- Specified by:
isOfItemTypein interfaceEntityItemTypeComparable- Parameters:
itemType- TheItemTypeto check against.- Returns:
trueif theitemTypepasses, otherwisefalse.
-