接口 Sniffer
- 所有超级接口:
Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
代表嗅探兽。
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明voidaddExploredLocation(@NotNull Location location) 向已探索位置中添加一个位置。booleancanDig()获取嗅探兽是否能在其头部下方的当前位置挖掘。尝试获取嗅探兽可能挖掘的位置。获取嗅探兽已探索的位置。getState()获取嗅探兽的当前状态。voidremoveExploredLocation(@NotNull Location location) 从已探索位置中移除一个位置。voidsetState(Sniffer.State state) 为嗅探兽设置新状态。从接口继承的方法 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.Leashable
getLeashHolder, isLeashed, setLeashHolder从接口继承的方法 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, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getWaypointColor, getWaypointStyle, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, 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
-
方法详细资料
-
getExploredLocations
获取嗅探兽已探索的位置。
注意:返回的位置使用嗅探兽当前的世界。原文:Gets the locations explored by the sniffer.
Note: the returned locations use sniffer's current world.- 返回:
- 位置集合
-
removeExploredLocation
从已探索位置中移除一个位置。
注意:位置必须在嗅探兽当前世界中才能生效。原文:Remove a location of the explored locations.
Note: the location must be in the sniffer's current world for this method to have any effect.- 参数:
location- 要移除的位置- 另请参阅:
-
addExploredLocation
向已探索位置中添加一个位置。
注意:位置必须在嗅探兽当前世界中才能生效。原文:Add a location to the explored locations.
Note: the location must be in the sniffer's current world for this method to have any effect.- 参数:
location- 要添加的位置- 另请参阅:
-
getState
获取嗅探兽的当前状态。原文:Get the current state of the sniffer.
- 返回:
- 嗅探兽的状态
-
setState
为嗅探兽设置新状态。
这将使嗅探兽过渡到新状态。原文:Set a new state for the sniffer.
This will also make the sniffer make the transition to the new state.- 参数:
state- 新状态
-
findPossibleDigLocation
尝试获取嗅探兽可能挖掘的位置。原文:Try to get a possible location where the sniffer can dig.
- 返回:
- 如果找到则返回
Location,否则返回null
-
canDig
boolean canDig()获取嗅探兽是否能在其头部下方的当前位置挖掘。原文:Gets whether the sniffer can dig in the current
Locationbelow its head.- 返回:
- 如果能挖掘则为
true,否则为false
-