Interface AbstractSkeleton

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Enemy, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, RangedEntity, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Bogged, Skeleton, Stray, WitherSkeleton

public interface AbstractSkeleton extends Monster, RangedEntity
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.
      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
    • shouldBurnInDay

      boolean shouldBurnInDay()
      Check if this skeleton will burn in the sunlight. This does not take into account an entity's natural fire immunity.
      Specified by:
      shouldBurnInDay in interface LivingEntity
      Returns:
      True if skeleton will burn in sunlight
    • setShouldBurnInDay

      void setShouldBurnInDay(boolean shouldBurnInDay)
      Set if this skeleton should burn in the sunlight. This will not override an entity's natural fire immunity.
      Specified by:
      setShouldBurnInDay in interface LivingEntity
      Parameters:
      shouldBurnInDay - True to burn in sunlight