接口 Ageable
- 所有超级接口:
Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
- 所有已知子接口:
AbstractHorse
,AbstractVillager
,Animals
,Armadillo
,Axolotl
,Bee
,Breedable
,Camel
,Cat
,ChestedHorse
,Chicken
,Cow
,Donkey
,Drowned
,Fox
,Frog
,Goat
,Hoglin
,Horse
,Husk
,Llama
,Mule
,MushroomCow
,Ocelot
,Panda
,Parrot
,Pig
,Piglin
,PiglinAbstract
,PiglinBrute
,PigZombie
,PolarBear
,Rabbit
,Sheep
,SkeletonHorse
,Sniffer
,Steerable
,Strider
,Tameable
,TraderLlama
,Turtle
,Villager
,WanderingTrader
,Wolf
,Zoglin
,Zombie
,ZombieHorse
,ZombieVillager
代表一个有年龄的实体.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明boolean
canBreed()
已过时。int
getAge()
获取这只动物的年龄.boolean
已过时。boolean
isAdult()
获取这个动物是否成年.void
setAdult()
设置这只动物为成年状态.void
setAge
(int age) 设置这只动物的年龄.void
setAgeLock
(boolean lock) 已过时。void
setBaby()
设置这只动物为年幼状态.void
setBreed
(boolean breed) 已过时。另请参阅Breedable.canBreed()
从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, 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, teleport
从接口继承的方法 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, getItemInUse, getItemInUseTicks, 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, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
从接口继承的方法 org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
从接口继承的方法 org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getAge
int getAge()获取这只动物的年龄.原文: Gets the age of this mob.
- 返回:
- 年龄
-
setAge
void setAge(int age) 设置这只动物的年龄.原文: Sets the age of this mob.
- 参数:
age
- 新的年龄
-
setAgeLock
已过时。锁定这只动物的年龄, 设置这个将防止动物从长成以准备进行交配.原文: Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.
- 参数:
lock
- 是否锁定
-
getAgeLock
已过时。获取这个动物的年龄是否被锁定.原文: Gets the current agelock.
- 返回:
- 这个动物的年龄是否被锁定
-
setBaby
void setBaby()设置这只动物为年幼状态.原文: Sets the age of the mob to a baby
-
setAdult
void setAdult()设置这只动物为成年状态.原文: Sets the age of the mob to an adult
-
isAdult
boolean isAdult()获取这个动物是否成年.原文: Returns true if the mob is an adult.
- 返回:
- 如果动物成年,则返回true
-
canBreed
已过时。另请参阅Breedable.canBreed()
返回动物是否具有繁殖能力.原文: Return the ability to breed of the animal.
- 返回:
- 动物是否具有繁殖能力
-
setBreed
已过时。另请参阅Breedable.canBreed()
设置动物是否具有繁殖能力,如果动物是年幼的设置此将立即长大.原文: Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.
- 参数:
breed
- 动物是否具有繁殖能力
-
Breedable.canBreed()