接口 Fox
- 所有超级接口:
Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,Leashable,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator,Sittable
代表狐狸.
原文: What does the fox say?
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明获取第一个受信任的玩家.获取此狐狸品种.获取第二个受信任的玩家.boolean判断是否蜷缩.boolean判断狐狸是否正在面部朝地.voidsetCrouching(boolean crouching) 设置是否蜷缩.void设置第一个受信任的玩家.voidsetFoxType(@NotNull Fox.Type type) 设置狐狸的品种.void设置第二个受信任的玩家.voidsetSleeping(boolean sleeping) 设置是否正在睡觉.从接口继承的方法 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从接口继承的方法 org.bukkit.entity.Sittable
isSitting, setSitting
-
方法详细资料
-
getFoxType
获取此狐狸品种.原文: Gets the current type of this fox.
- 返回:
- 狐狸品种.
-
setFoxType
设置狐狸的品种.原文: Sets the current type of this fox.
- 参数:
type- 要设置的新品种.
-
isCrouching
boolean isCrouching()判断是否蜷缩.原文: Checks if this animal is crouching
- 返回:
- 蜷缩中返回true.
-
setCrouching
void setCrouching(boolean crouching) 设置是否蜷缩.原文: Sets if this animal is crouching.
- 参数:
crouching- 设置为true则蜷缩.
-
setSleeping
void setSleeping(boolean sleeping) 设置是否正在睡觉.原文: Sets if this animal is sleeping.
- 参数:
sleeping- 设置为true则进入睡眠状态
-
getFirstTrustedPlayer
获取第一个受信任的玩家.原文: Gets the first trusted player.
- 返回:
- 拥有此狐狸的 AnimalTamer,若无则返回 null.
-
setFirstTrustedPlayer
设置第一个受信任的玩家.第一个受信任的玩家只能在第二个之后被移除.
原文: Set the first trusted player.
The first trusted player may only be removed after the second.
- 参数:
player- 要信任的 AnimalTamer.
-
getSecondTrustedPlayer
获取第二个受信任的玩家.原文: Gets the second trusted player.
- 返回:
- 拥有此狐狸的 AnimalTamer,若无则返回 null.
-
setSecondTrustedPlayer
设置第二个受信任的玩家.第二个受信任的玩家只能在第一个之后被添加.
原文: Set the second trusted player.
The second trusted player may only be added after the first.
- 参数:
player- 要信任的 AnimalTamer.
-
isFaceplanted
boolean isFaceplanted()判断狐狸是否正在面部朝地.原文: Gets whether the fox is faceplanting the ground.
- 返回:
- 如果狐狸正在面部朝地则返回 true.
-