Interface Skeleton

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, RangedEntity, ServerOperator
All Known Subinterfaces:
Stray, WitherSkeleton

public interface Skeleton extends Monster, RangedEntity
Represents a Skeleton.
  • 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
      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