Class FoxData

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

public class FoxData extends EntityData<org.bukkit.entity.Fox>
  • Constructor Details

    • FoxData

      public FoxData()
    • FoxData

      public FoxData(@Nullable @Nullable org.bukkit.entity.Fox.Type type)
  • Method Details

    • init

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

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

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

      public Class<? extends org.bukkit.entity.Fox> getType()
      Specified by:
      getType in class EntityData<org.bukkit.entity.Fox>
    • 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.Fox>
      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.Fox>
    • equals_i

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

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