接口 Wolf
- 所有超级接口:
Ageable,Animals,Attributable,Breedable,CommandSender,Creature,Damageable,Entity,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator,Sittable,Tameable
代表狼.
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明获取这只狼的项圈颜色.floatGets the wolf's tail angle in radiansGet the variant of this wolf.booleanisAngry()检测狼是否愤怒.booleanGets if the wolf is interestedbooleanisWet()Gets whether the wolf is wetvoidsetAngry(boolean angry) 设置这只狼的愤怒状态.voidsetCollarColor(@NotNull DyeColor color) 设置这只狼的项圈颜色.voidsetInterested(boolean interested) Set wolf to be interestedvoidsetVariant(@NotNull Wolf.Variant variant) Set the variant of this wolf.从接口继承的方法 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, 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从接口继承的方法 org.bukkit.entity.Sittable
isSitting, setSitting
-
方法详细资料
-
isAngry
boolean isAngry()检测狼是否愤怒.原文: Checks if this wolf is angry
- 返回:
- 如果愤怒则为true
-
setAngry
void setAngry(boolean angry) 设置这只狼的愤怒状态.愤怒的狼不能喂食或驯服.
原文: Sets the anger of this wolf.
An angry wolf can not be fed or tamed.
- 参数:
angry- 如果愤怒则为true- 另请参阅:
-
getCollarColor
获取这只狼的项圈颜色.原文: Get the collar color of this wolf
- 返回:
- 项圈的颜色
-
setCollarColor
设置这只狼的项圈颜色.原文: Set the collar color of this wolf
- 参数:
color- 颜色
-
isWet
boolean isWet()Gets whether the wolf is wet- 返回:
- Whether the wolf is wet
-
getTailAngle
float getTailAngle()Gets the wolf's tail angle in radians- 返回:
- The angle of the wolf's tail in radians
-
isInterested
boolean isInterested()Gets if the wolf is interested- 返回:
- Whether the wolf is interested
-
setInterested
void setInterested(boolean interested) Set wolf to be interested- 参数:
interested- Whether the wolf is interested
-
getVariant
Get the variant of this wolf.- 返回:
- wolf variant
-
setVariant
Set the variant of this wolf.- 参数:
variant- wolf variant
-