接口 Wolf
- 所有超级接口:
Ageable,Animals,Attributable,CommandSender,Creature,Damageable,Entity,LivingEntity,Metadatable,Nameable,Permissible,ProjectileSource,ServerOperator,Sittable,Tameable
代表狼.
-
方法概要
修饰符和类型方法说明获取这只狼的项圈颜色.booleanisAngry()检测狼是否愤怒.voidsetAngry(boolean angry) 设置这只狼的愤怒状态.voidsetCollarColor(DyeColor color) 设置这只狼的项圈颜色.从接口继承的方法 org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, 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, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway从接口继承的方法 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.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, and will actively look for targets to attack.
- 参数:
angry- 如果愤怒则为true
-
getCollarColor
DyeColor getCollarColor()获取这只狼的项圈颜色.原文: Get the collar color of this wolf
- 返回:
- 项圈的颜色
-
setCollarColor
设置这只狼的项圈颜色.原文: Set the collar color of this wolf
- 参数:
color- 应用的颜色
-