Package org.bukkit.entity
Interface Zombie
- All Superinterfaces:
Ageable,Attributable,CommandSender,Creature,Damageable,Enemy,Entity,LivingEntity,Lootable,Metadatable,Mob,Monster,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
- All Known Subinterfaces:
Drowned,Husk,PigZombie,ZombieVillager
Represents a Zombie.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether this zombie can break doorsintGets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.Deprecated.booleanisBaby()Deprecated.booleanGet if this entity is in the process of converting to a Drowned as a result of being underwater.booleanDeprecated.check if instanceofZombieVillager.voidsetBaby(boolean flag) Deprecated.seeAgeable.setBaby()andAgeable.setAdult()voidsetCanBreakDoors(boolean flag) Sets whether this zombie can break doors This will be ignored if the entity is a Drowned.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) Deprecated.must spawnZombieVillager.voidsetVillagerProfession(Villager.Profession profession) Deprecated.Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedMethods inherited from interface org.bukkit.attribute.Attributable
getAttributeMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, 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, teleportMethods inherited from interface 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, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.Mob
getAmbientSound, getTarget, isAware, setAware, setTargetMethods inherited from interface org.bukkit.Nameable
getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
isBaby
Deprecated.Gets whether the zombie is a baby- Returns:
- Whether the zombie is a baby
-
setBaby
Deprecated.seeAgeable.setBaby()andAgeable.setAdult()Sets whether the zombie is a baby- Parameters:
flag- Whether the zombie is a baby
-
isVillager
Deprecated.check if instanceofZombieVillager.Gets whether the zombie is a villager- Returns:
- Whether the zombie is a villager
-
setVillager
Deprecated.must spawnZombieVillager.- Parameters:
flag- flag
-
setVillagerProfession
Deprecated.- Parameters:
profession- profession- See Also:
-
getVillagerProfession
Deprecated.- Returns:
- profession
- See Also:
-
isConverting
boolean isConverting()Get if this entity is in the process of converting to a Drowned as a result of being underwater.- Returns:
- 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.- Returns:
- conversion time
- Throws:
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.- Parameters:
time- new conversion time
-
canBreakDoors
boolean canBreakDoors()Gets whether this zombie can break doors- Returns:
- 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.- Parameters:
flag- Whether this zombie can break doors
-
Ageable.isAdult()