Interface Skeleton

All Superinterfaces:
AbstractSkeleton, Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, RangedEntity, ServerOperator

public interface Skeleton extends AbstractSkeleton, RangedEntity
Represents a Skeleton.

This interface only represents the normal skeleton type on the server. Other skeleton-like entities, such as the WitherSkeleton or the Stray are not related to this type.

  • Method Details

    • isConverting

      boolean isConverting()
      Computes whether or not this skeleton is currently in the process of converting to a Stray due to it being frozen by powdered snow.
      Returns:
      whether or not the skeleton is converting to a stray.
    • getConversionTime

      int getConversionTime()
      Gets the amount of ticks until this entity will be converted to a stray as a result of being frozen by a powdered snow block.

      When this reaches 0, the entity will be converted.

      Returns:
      the conversion time left represented in ticks.
      Throws:
      IllegalStateException - if isConverting() is false.
    • setConversionTime

      void setConversionTime(int time)
      Sets the amount of ticks until this entity will be converted to a stray as a result of being frozen by a powdered snow block.

      When this reaches 0, the entity will be converted. A value of less than 0 will stop the current conversion process without converting the current entity.

      Parameters:
      time - the new conversion time left before the conversion in ticks.
    • shouldBurnInDay

      boolean shouldBurnInDay()
      Check if this skeleton will burn in the sunlight
      Returns:
      True if skeleton will burn in sunlight
    • setShouldBurnInDay

      void setShouldBurnInDay(boolean shouldBurnInDay)
      Set if this skeleton should burn in the sunlight
      Parameters:
      shouldBurnInDay - True to burn in sunlight