接口 Animals
- 所有超级接口:
Ageable
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
- 所有已知子接口:
AbstractHorse
,Armadillo
,Axolotl
,Bee
,Camel
,Cat
,ChestedHorse
,Chicken
,Cow
,Donkey
,Fox
,Frog
,Goat
,Hoglin
,Horse
,Llama
,Mule
,MushroomCow
,Ocelot
,Panda
,Parrot
,Pig
,PolarBear
,Rabbit
,Sheep
,SkeletonHorse
,Sniffer
,Steerable
,Strider
,Tameable
,TraderLlama
,Turtle
,Wolf
,ZombieHorse
代表动物.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明Get the UUID of the entity that caused this entity to enter theBreedable.canBreed()
state.int
Get the amount of ticks remaining for this entity in love mode.boolean
isBreedItem
(@NotNull ItemStack stack) Check if the provided ItemStack is the correct item used for breeding this entity.boolean
isBreedItem
(@NotNull Material material) Check if the provided ItemStack is the correct item used for breeding this entity..boolean
Get whether or not this entity is in love mode and will produce offspring with another entity in love mode.void
setBreedCause
(@Nullable UUID uuid) Set the UUID of the entity that caused this entity to enter theBreedable.canBreed()
state.void
setLoveModeTicks
(int ticks) Set the amount of ticks for which this entity should be in love mode.从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute
从接口继承的方法 org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
从接口继承的方法 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
-
方法详细资料
-
getBreedCause
Get the UUID of the entity that caused this entity to enter theBreedable.canBreed()
state.- 返回:
- uuid if set, or null
-
setBreedCause
Set the UUID of the entity that caused this entity to enter theBreedable.canBreed()
state.- 参数:
uuid
- new uuid, or null
-
isLoveMode
boolean isLoveMode()Get whether or not this entity is in love mode and will produce offspring with another entity in love mode. Will return true if and only ifgetLoveModeTicks()
is greater than 0.- 返回:
- true if in love mode, false otherwise
-
getLoveModeTicks
int getLoveModeTicks()Get the amount of ticks remaining for this entity in love mode. If the entity is not in love mode, 0 will be returned.- 返回:
- the remaining love mode ticks
-
setLoveModeTicks
void setLoveModeTicks(int ticks) Set the amount of ticks for which this entity should be in love mode. Setting the love mode ticks to 600 is the equivalent of a player feeding the entity their breeding item of choice.- 参数:
ticks
- the love mode ticks. Must be positive
-
isBreedItem
Check if the provided ItemStack is the correct item used for breeding this entity.- 参数:
stack
- ItemStack to check.- 返回:
- if the provided ItemStack is the correct food item for this entity.
-
isBreedItem
Check if the provided ItemStack is the correct item used for breeding this entity..- 参数:
material
- Material to check.- 返回:
- if the provided ItemStack is the correct food item for this entity.
-