Class EntityType

java.lang.Object
ch.njol.skript.entity.EntityType
All Implemented Interfaces:
YggdrasilSerializable, Cloneable

public class EntityType extends Object implements Cloneable, YggdrasilSerializable
  • Field Details

    • amount

      public int amount
    • data

      public final EntityData<?> data
  • Constructor Details

    • EntityType

      public EntityType(EntityData<?> data, int amount)
    • EntityType

      public EntityType(Class<? extends org.bukkit.entity.Entity> c, int amount)
    • EntityType

      public EntityType(org.bukkit.entity.Entity e)
    • EntityType

      public EntityType(EntityType other)
  • Method Details

    • isInstance

      public boolean isInstance(org.bukkit.entity.Entity entity)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(int flags)
    • getAmount

      public int getAmount()
    • sameType

      public boolean sameType(EntityType other)
    • parse

      public static @Nullable EntityType parse(String s)
    • clone

      public EntityType clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object