Package org.bukkit.entity
Interface Skeleton
- All Superinterfaces:
AbstractSkeleton,Attributable,CommandSender,Creature,Damageable,Enemy,Entity,LivingEntity,Lootable,Metadatable,Mob,Monster,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDeprecated.classes are different types.Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionintGets the amount of ticks until this entity will be converted to a stray as a result of being frozen by a powdered snow block.booleanComputes whether or not this skeleton is currently in the process of converting to aStraydue to it being frozen by powdered snow.voidsetConversionTime(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.Methods inherited from interface org.bukkit.entity.AbstractSkeleton
getSkeletonType, setSkeletonTypeMethods inherited from interface org.bukkit.attribute.Attributable
getAttributeMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.Mob
getAmbientSound, getTarget, isAware, setAware, setTargetMethods inherited from interface org.bukkit.Nameable
getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
isConverting
boolean isConverting()Computes whether or not this skeleton is currently in the process of converting to aStraydue 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- ifisConverting()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.
-