接口 Bee
- 所有超级接口:
Ageable
,Animals
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
代表蜜蜂.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot
-
方法概要
修饰符和类型方法说明int
getAnger()
获取蜜蜂的激怒等级.int
获取蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数).获取蜜蜂盘旋的花的位置.getHive()
获取蜜蜂的家(蜂巢)的位置.boolean
蜜蜂是否携带花粉.boolean
hasStung()
获取蜜蜂是否蜇过玩家或其它生物.void
setAnger
(int anger) 设置蜜蜂的激怒等级.void
setCannotEnterHiveTicks
(int ticks) 设置蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数).void
设置蜜蜂盘旋的花的位置.void
setHasNectar
(boolean nectar) 设置蜜蜂是否携带花粉.void
setHasStung
(boolean stung) 设置蜜蜂是否蜇过玩家或其它生物.void
设置蜜蜂所住蜂巢的位置.从接口继承的方法 org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks
从接口继承的方法 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
-
方法详细资料
-
getHive
获取蜜蜂的家(蜂巢)的位置.原文:Get the bee's hive location.
- 返回:
- 蜂巢位置或null
-
setHive
设置蜜蜂所住蜂巢的位置.原文:Set the bee's hive location.
- 参数:
location
- 蜂巢位置或null
-
getFlower
获取蜜蜂盘旋的花的位置.原文:Get the bee's flower location.
- 返回:
- 蜜蜂盘旋的花的位置或null
-
setFlower
设置蜜蜂盘旋的花的位置.原文:Set the bee's flower location.
- 参数:
location
- 蜜蜂盘旋的花的位置或null
-
hasNectar
boolean hasNectar()蜜蜂是否携带花粉.原文:Get if the bee has nectar.
- 返回:
- 蜜蜂是否携带花粉.
-
setHasNectar
void setHasNectar(boolean nectar) 设置蜜蜂是否携带花粉.原文:Set if the bee has nectar.
- 参数:
nectar
- 蜜蜂是否携带花粉
-
hasStung
boolean hasStung()获取蜜蜂是否蜇过玩家或其它生物.原文:Get if the bee has stung.
- 返回:
- 蜜蜂是否蜇过玩家或其它生物
-
setHasStung
void setHasStung(boolean stung) 设置蜜蜂是否蜇过玩家或其它生物.原文:Set if the bee has stung.
- 参数:
stung
- 蜜蜂是否蜇过玩家或其它生物
-
getAnger
int getAnger()获取蜜蜂的激怒等级.译注:此数值代表蜜蜂平息怒气所需时间, 为0时蜜蜂不再愤怒.
原文:Get the bee's anger level.
- 返回:
- 激怒等级
-
setAnger
void setAnger(int anger) 设置蜜蜂的激怒等级.译注:此数值代表蜜蜂平息怒气所需时间, 为0时蜜蜂不再愤怒.
原文:Set the bee's new anger level.
- 参数:
anger
- 激怒等级
-
getCannotEnterHiveTicks
int getCannotEnterHiveTicks()获取蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数).原文:Get the amount of ticks the bee cannot enter the hive for.
- 返回:
- 蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数)
-
setCannotEnterHiveTicks
void setCannotEnterHiveTicks(int ticks) 设置蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数).原文:Set the amount of ticks the bee cannot enter a hive for.
- 参数:
ticks
- 蜜蜂离其能再次进入蜂巢的剩余时间(以tick计数)
-