Interface Skeleton

All Superinterfaces:
AbstractSkeleton, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Skeleton extends AbstractSkeleton
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.