public interface Skeleton extends AbstractSkeleton
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.
Modifier and Type | Interface and Description |
---|---|
static class |
Skeleton.SkeletonType
Deprecated.
classes are different types. This interface only remains in
the Skeleton interface to preserve backwards compatibility.
|
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
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.
|
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. |
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.
|
getSkeletonType, setSkeletonType
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
getAttribute
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getPersistentDataContainer
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
boolean isConverting()
Stray
due to it being frozen by powdered snow.int getConversionTime()
When this reaches 0, the entity will be converted.
IllegalStateException
- if isConverting()
is false.void setConversionTime(int time)
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.
time
- the new conversion time left before the conversion in ticks.Copyright © 2022. All rights reserved.