Class WolfData

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

public class WolfData extends EntityData<org.bukkit.entity.Wolf>
  • Constructor Details

    • WolfData

      public WolfData()
  • Method Details

    • init

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

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

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

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

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

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

      @Deprecated protected boolean deserialize(String s)
      Deprecated.
      Note that this method is only used when changing Skript versions 2.1 to anything above.
      Overrides:
      deserialize in class EntityData<org.bukkit.entity.Wolf>
    • isSupertypeOf

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

      public EntityData<org.bukkit.entity.Wolf> 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.Wolf>
      Returns:
      The supertype of this entity data. Must not be null.