public interface Zombie extends Monster
Entity.Spigot| Modifier and Type | Method and 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()
Gets whether the zombie is a baby
|
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 instanceof
ZombieVillager. |
void |
setBaby(boolean flag)
Sets whether the zombie is a baby
|
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 spawn
ZombieVillager. |
void |
setVillagerProfession(Villager.Profession profession)
Deprecated.
|
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimminggetAttributedamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthaddPassenger, 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, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamegetPersistentDataContainerlaunchProjectile, launchProjectilegetLootTable, getSeed, setLootTable, setSeedboolean isBaby()
void setBaby(boolean flag)
flag - Whether the zombie is a baby@Deprecated boolean isVillager()
ZombieVillager.@Deprecated @Contract(value="_ -> fail") void setVillager(boolean flag)
ZombieVillager.flag - flag@Deprecated @Contract(value="_ -> fail") void setVillagerProfession(Villager.Profession profession)
profession - professionZombieVillager.getVillagerProfession()@Deprecated @Nullable @Contract(value="-> null") Villager.Profession getVillagerProfession()
ZombieVillager.getVillagerProfession()boolean isConverting()
int getConversionTime()
IllegalStateException - if isConverting() is false.void setConversionTime(int time)
time - new conversion timeCopyright © 2022. All rights reserved.