接口 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
获得这个僵尸是否能破坏门.int
Gets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.已过时。boolean
isBaby()
已过时。boolean
Get if this entity is in the process of converting to a Drowned as a result of being underwater.boolean
已过时。检查 instanceofZombieVillager
的是与否.void
setBaby
(boolean flag) 已过时。void
setCanBreakDoors
(boolean flag) 设置僵尸是否能破坏门.void
setConversionTime
(int time) Sets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.void
setVillager
(boolean flag) 已过时。must spawnZombieVillager
.void
setVillagerProfession
(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, 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, setSwimming, 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
已过时。- 参数:
profession
- 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()