接口 Breedable
- 所有超级接口:
Ageable,Attributable,CommandSender,Creature,Damageable,Entity,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
- 所有已知子接口:
AbstractCow,AbstractHorse,AbstractVillager,Animals,Armadillo,Axolotl,Bee,Camel,Cat,ChestedHorse,Chicken,Cow,Donkey,Fox,Frog,Goat,HappyGhast,Hoglin,Horse,Llama,Mule,MushroomCow,Ocelot,Panda,Parrot,Pig,PolarBear,Rabbit,Sheep,SkeletonHorse,Sniffer,Steerable,Strider,Tameable,TraderLlama,Turtle,Villager,WanderingTrader,Wolf,ZombieHorse
代表一个有年龄和繁殖能力的实体.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明booleancanBreed()返回动物是否具有繁殖能力.boolean获取这个动物的年龄是否被锁定.voidsetAgeLock(boolean lock) 锁定这只动物的年龄, 设置这个将防止动物从长成以准备进行交配.voidsetBreed(boolean breed) 设置动物是否具有繁殖能力,如果动物是年幼的设置此将立即长大.从接口继承的方法 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, getWaypointColor, getWaypointStyle, 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, setRiptiding, setSwimming, setWaypointColor, setWaypointStyle, 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
-
方法详细资料
-
setAgeLock
void setAgeLock(boolean lock) 锁定这只动物的年龄, 设置这个将防止动物从长成以准备进行交配.原文: Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.
- 指定者:
setAgeLock在接口中Ageable- 参数:
lock- 是否锁定
-
getAgeLock
boolean getAgeLock()获取这个动物的年龄是否被锁定.原文: Gets the current agelock.
- 指定者:
getAgeLock在接口中Ageable- 返回:
- 这个动物的年龄是否被锁定
-
canBreed
boolean canBreed()返回动物是否具有繁殖能力.原文: Return the ability to breed of the animal.
-
setBreed
void setBreed(boolean breed) 设置动物是否具有繁殖能力,如果动物是年幼的设置此将立即长大.原文: Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.
-