接口 PigZombie
- 所有超级接口:
Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Metadatable
,Monster
,Nameable
,Permissible
,ProjectileSource
,ServerOperator
,Zombie
代表僵尸猪人.
-
方法概要
从接口继承的方法 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.Zombie
getVillagerProfession, isBaby, isVillager, setBaby, setVillager, setVillagerProfession
-
方法详细资料
-
getAnger
int getAnger()获取僵尸猪人当前的愤怒程度.原文: Get the pig zombie's current anger level.
- 返回:
- 愤怒程度
-
setAnger
void setAnger(int level) 设置僵尸猪人当前的愤怒程度.原文: Set the pig zombie's current anger level.
- 参数:
level
- 愤怒程度.更高的愤怒程度需要更多的时间来摆脱.
-
setAngry
void setAngry(boolean angry) 将僵尸猪人的愤怒程度设置为0或默认等级.原文: Shorthand; sets to either 0 or the default level.
- 参数:
angry
- 僵尸猪人是否愤怒
-
isAngry
boolean isAngry()获取僵尸是否愤怒.原文: Shorthand; gets whether the zombie is angry.
- 返回:
- 僵尸猪人愤怒为true,否则为false
-