接口 Zombie
- 所有超级接口:
Ageable,Attributable,CommandSender,Creature,Damageable,Enemy,Entity,LivingEntity,Lootable,Metadatable,Mob,Monster,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
- 所有已知子接口:
Drowned,Husk,PigZombie,ZombieVillager
代表僵尸.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明boolean获得这个僵尸是否能破坏门.intGets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.已过时。booleanisBaby()已过时。booleanGet if this entity is in the process of converting to a Drowned as a result of being underwater.boolean已过时。检查 instanceofZombieVillager的是与否.voidsetBaby(boolean flag) 已过时。voidsetCanBreakDoors(boolean flag) 设置僵尸是否能破坏门.voidsetConversionTime(int time) Sets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.voidsetVillager(boolean flag) 已过时。must spawnZombieVillager.voidsetVillagerProfession(Villager.Profession profession) 已过时。从接口继承的方法 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, 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
-
方法详细资料
-
isBaby
已过时。另请参阅Ageable.isAdult()获取这个僵尸是否为小僵尸.原文: Gets whether the zombie is a baby
- 返回:
- 这个僵尸是否为小僵尸
-
setBaby
已过时。设置这个僵尸是否为小僵尸.原文: Sets whether the zombie is a baby
- 参数:
flag- 这个僵尸是否为小僵尸
-
isVillager
已过时。检查 instanceofZombieVillager的是与否.获取这个僵尸是否为村民僵尸.原文: Gets whether the zombie is a villager
- 返回:
- 这个僵尸是否为村民僵尸
-
setVillager
已过时。must spawnZombieVillager.- 参数:
flag- flag
-
setVillagerProfession
@Deprecated(since="1.10.2") @Contract("_ -> fail") void setVillagerProfession(Villager.Profession profession) 已过时。- 参数:
profession- profession- 另请参阅:
-
getVillagerProfession
@Deprecated(since="1.10.2") @Nullable @Contract("-> null") Villager.Profession getVillagerProfession()已过时。- 返回:
- profession
- 另请参阅:
-
isConverting
boolean isConverting()Get if this entity is in the process of converting to a Drowned as a result of being underwater.- 返回:
- conversion status
-
getConversionTime
int getConversionTime()Gets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater. When this reaches 0, the entity will be converted.- 返回:
- conversion time
- 抛出:
IllegalStateException- ifisConverting()is false.
-
setConversionTime
void setConversionTime(int time) Sets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater. When this reaches 0, the entity will be converted. A value of less than 0 will stop the current conversion process without converting the current entity.- 参数:
time- new conversion time
-
canBreakDoors
boolean canBreakDoors()获得这个僵尸是否能破坏门.原文: Gets whether this zombie can break doors
- 返回:
- 僵尸是否能破坏门
-
setCanBreakDoors
void setCanBreakDoors(boolean flag) 设置僵尸是否能破坏门. 当实体是溺尸时将被忽略.当实体破坏门时也会停止破坏.原文: Sets whether this zombie can break doors This will be ignored if the entity is a Drowned. Will also stop the action if the entity is currently breaking a door.
- 参数:
flag- Whether this zombie can break doors
-
Ageable.isAdult()