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
  • Field Details

  • Constructor Details

    • CushionData

      public CushionData()
    • CushionData

      public CushionData(@Nullable @Nullable org.bukkit.DyeColor color)
  • Method Details

    • register

      public static void register()
    • getType

      public Class<? extends org.bukkit.entity.Cushion> getType()
      Description copied from class: EntityData
      Returns the Class of the Entity that this EntityData represents or handles.
      Specified by:
      getType in class EntityData<org.bukkit.entity.Cushion>
      Returns:
      The entity's Class, such as Pig.class.
    • getSuperType

      @NotNull public @NotNull EntityData<?> getSuperType()
      Description copied from class: EntityData
      Returns a more general version of this EntityData with 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:
      getSuperType in class EntityData<org.bukkit.entity.Cushion>
      Returns:
      A generalized EntityData representing the base entity type.
    • isOfItemType

      public boolean isOfItemType(ItemType itemType)
      Description copied from interface: EntityItemTypeComparable
      Whether this EntityData typed-class is of itemType. Each implementation varies on what is considered to pass.
      Specified by:
      isOfItemType in interface EntityItemTypeComparable
      Parameters:
      itemType - The ItemType to check against.
      Returns:
      true if the itemType passes, otherwise false.