Interface AbstractSkeleton

All Superinterfaces:
Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
All Known Subinterfaces:
Bogged, Skeleton, Stray, WitherSkeleton

public interface AbstractSkeleton extends Monster
This interface defines or represents the abstract concept of skeleton-like entities on the server. The interface is hence not a direct representation of an entity but rather serves as a parent to interfaces/entity types like Skeleton, WitherSkeleton or Stray. To compute what specific type of skeleton is present in a variable/field of this type, instanceOf checks against the specific subtypes listed prior are recommended.
  • Method Details

    • getSkeletonType

      @Deprecated @NotNull Skeleton.SkeletonType getSkeletonType()
      Deprecated.
      should check what class instance this is.
      Gets the current type of this skeleton.
      Returns:
      Current type
    • setSkeletonType

      @Deprecated @Contract("_ -> fail") void setSkeletonType(Skeleton.SkeletonType type)
      Deprecated.
      Must spawn a new subtype variant
      Parameters:
      type - type