public interface Zombie extends Monster
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
Villager.Profession |
getVillagerProfession()
Returns the villager profession of the zombie if the
zombie is a villager
|
boolean |
isBaby()
Gets whether the zombie is a baby
|
boolean |
isVillager()
Gets whether the zombie is a villager
|
void |
setBaby(boolean flag)
Sets whether the zombie is a baby
|
void |
setVillager(boolean flag)
Deprecated.
Defaults to a
Villager.Profession.NORMAL |
void |
setVillagerProfession(Villager.Profession profession)
Sets whether the zombie is a villager
|
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway
getAttribute
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
launchProjectile, launchProjectile
boolean isBaby()
void setBaby(boolean flag)
flag
- Whether the zombie is a babyboolean isVillager()
@Deprecated void setVillager(boolean flag)
Villager.Profession.NORMAL
flag
- Whether the zombie is a villagervoid setVillagerProfession(Villager.Profession profession)
profession
- the profession of the villager or null to clearVillager.Profession getVillagerProfession()
Copyright © 2016. All rights reserved.