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

public class DisplayData extends EntityData<org.bukkit.entity.Display>
  • 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 class EntityData<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 class EntityData<org.bukkit.entity.Display>
      Parameters:
      displayClass - An entity's class, e.g. Player
      entity - 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 class EntityData<org.bukkit.entity.Display>
    • match

      public boolean match(org.bukkit.entity.Display entity)
      Specified by:
      match in class EntityData<org.bukkit.entity.Display>
    • getType

      public Class<? extends org.bukkit.entity.Display> getType()
      Specified by:
      getType in class EntityData<org.bukkit.entity.Display>
    • hashCode_i

      protected int hashCode_i()
      Specified by:
      hashCode_i in class EntityData<org.bukkit.entity.Display>
    • equals_i

      protected boolean equals_i(EntityData<?> obj)
      Specified by:
      equals_i in class EntityData<org.bukkit.entity.Display>
    • isSupertypeOf

      public boolean isSupertypeOf(EntityData<?> entityData)
      Specified by:
      isSupertypeOf in class EntityData<org.bukkit.entity.Display>
    • getSuperType

      public EntityData<?> getSuperType()
      Description copied from class: EntityData
      Returns the super type of this entity data, e.g. 'wolf' for 'angry wolf'.
      Specified by:
      getSuperType in class EntityData<org.bukkit.entity.Display>
      Returns:
      The supertype of this entity data. Must not be null.