Package org.bukkit.entity
Interface Zombie
- All Superinterfaces:
Ageable
,Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Monster
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
- All Known Subinterfaces:
Drowned
,Husk
,PigZombie
,ZombieVillager
public interface Zombie extends Monster, Ageable
Represents a Zombie.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description int
getConversionTime()
Gets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater.Villager.Profession
getVillagerProfession()
Deprecated.boolean
isBaby()
Deprecated.boolean
isConverting()
Get if this entity is in the process of converting to a Drowned as a result of being underwater.boolean
isVillager()
Deprecated.check if instanceofZombieVillager
.void
setBaby(boolean flag)
Deprecated.seeAgeable.setBaby()
andAgeable.setAdult()
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)
Deprecated.must spawnZombieVillager
.void
setVillagerProfession(Villager.Profession profession)
Deprecated.Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
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:
ZombieVillager.getVillagerProfession()
-
getVillagerProfession
Deprecated.- Returns:
- profession
- See Also:
ZombieVillager.getVillagerProfession()
-
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
-