Files
DeltaZern/paper-api/src/main/java/org/bukkit/entity/Skeleton.java
T
Nassim Jahnke f00727c57e 1.21.5
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev>
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com>
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com>
Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
2025-04-12 17:27:00 +02:00

80 lines
2.3 KiB
Java

package org.bukkit.entity;
/**
* Represents a Skeleton.
* <p>
* This interface only represents the normal skeleton type on the server.
* Other skeleton-like entities, such as the {@link WitherSkeleton} or the
* {@link Stray} are not related to this type.
*/
public interface Skeleton extends AbstractSkeleton {
/**
* Computes whether or not this skeleton is currently in the process of
* converting to a {@link Stray} due to it being frozen by powdered snow.
*
* @return whether or not the skeleton is converting to a stray.
*/
boolean isConverting();
/**
* 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.
* <p>
* When this reaches 0, the entity will be converted.
*
* @return the conversion time left represented in ticks.
*
* @throws IllegalStateException if {@link #isConverting()} is false.
*/
int getConversionTime();
/**
* 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.
* <p>
* 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.
*
* @param time the new conversion time left before the conversion in ticks.
*/
void setConversionTime(int time);
/**
* Gets the time the skeleton
* has been inside powdered snow.
*
* @return time in ticks
*/
int inPowderedSnowTime();
/**
* A legacy enum that defines the different variances of skeleton-like
* entities on the server.
*
* @deprecated classes are different types. This interface only remains in
* the Skeleton interface to preserve backwards compatibility.
*/
@Deprecated(since = "1.11")
public enum SkeletonType {
/**
* Standard skeleton type.
*/
NORMAL,
/**
* Wither skeleton. Generally found in Nether fortresses.
*/
WITHER,
/**
* Stray skeleton. Generally found in ice biomes. Shoots tipped arrows.
*/
STRAY,
/**
* Bogged skeleton.
*/
BOGGED;
}
}