Class PandaData

java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Panda>
ch.njol.skript.entity.PandaData
All Implemented Interfaces:
SyntaxElement, YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable

public class PandaData extends EntityData<org.bukkit.entity.Panda>
  • Constructor Details

    • PandaData

      public PandaData()
    • PandaData

      public PandaData(@Nullable org.bukkit.entity.Panda.Gene mainGene, @Nullable org.bukkit.entity.Panda.Gene hiddenGene)
  • Method Details

    • init

      protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)
      Specified by:
      init in class EntityData<org.bukkit.entity.Panda>
    • init

      protected boolean init(@Nullable Class<? extends org.bukkit.entity.Panda> c, @Nullable org.bukkit.entity.Panda panda)
      Specified by:
      init in class EntityData<org.bukkit.entity.Panda>
      Parameters:
      c - An entity's class, e.g. Player
      panda - 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.Panda entity)
      Specified by:
      set in class EntityData<org.bukkit.entity.Panda>
    • match

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

      public Class<? extends org.bukkit.entity.Panda> getType()
      Specified by:
      getType in class EntityData<org.bukkit.entity.Panda>
    • 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.Panda>
      Returns:
      The supertype of this entity data. Must not be null.
    • hashCode_i

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

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

      public boolean isSupertypeOf(EntityData<?> data)
      Specified by:
      isSupertypeOf in class EntityData<org.bukkit.entity.Panda>
    • toString

      public String toString(int flags)
      Overrides:
      toString in class EntityData<org.bukkit.entity.Panda>