public interface Wolf extends Animals, Tameable, Sittable
限定符和类型 | 方法和说明 |
---|---|
DyeColor |
getCollarColor()
获取这只狼的项圈颜色.
|
boolean |
isAngry()
检测狼是否愤怒.
|
void |
setAngry(boolean angry)
设置这只狼的愤怒状态.
|
void |
setCollarColor(DyeColor color)
设置这只狼的项圈颜色.
|
getBreedCause, setBreedCause
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming
getAttribute
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
isSitting, setSitting
boolean isAngry()
原文: Checks if this wolf is angry
void setAngry(boolean angry)
愤怒的狼不能喂食或驯服,并必须有工具目标. 若攻击目标未指定, 这只狼将很快平息它的怒气 (字面翻译:快速收回至不愤怒的状态).
原文: Sets the anger of this wolf.
An angry wolf can not be fed or tamed, and must have a target to attack. If a target is not set the wolf will quickly revert to its non-angry state.
angry
- 如果愤怒则为trueMob.setTarget(org.bukkit.entity.LivingEntity)
DyeColor getCollarColor()
原文: Get the collar color of this wolf
void setCollarColor(DyeColor color)
原文: Set the collar color of this wolf
color
- 应用的颜色