Class FishData

All Implemented Interfaces:
SyntaxElement, YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable

public class FishData extends EntityData<org.bukkit.entity.Fish>
  • Constructor Details

    • FishData

      public FishData()
    • FishData

      public FishData(int pattern)
  • Method Details

    • init

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

      protected boolean init(@Nullable Class<? extends org.bukkit.entity.Fish> c, @Nullable org.bukkit.entity.Fish e)
      Specified by:
      init in class EntityData<org.bukkit.entity.Fish>
      c - An entity's class, e.g. Player
      e - An actual entity, or null to get an entity data for an entity class
      Whether initialisation was successful
    • set

      public void set(org.bukkit.entity.Fish entity)
      Specified by:
      set in class EntityData<org.bukkit.entity.Fish>
    • match

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

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

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

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