Package org.bukkit.entity
Interface ZombieVillager
- 
- All Superinterfaces:
 Attributable,CommandSender,Creature,Damageable,Entity,LivingEntity,Lootable,Metadatable,Mob,Monster,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator,Zombie
public interface ZombieVillager extends Zombie
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OfflinePlayergetConversionPlayer()Gets the player who initiated the conversion.intgetConversionTime()Gets the amount of ticks until this entity will be converted to a Villager as a result of being cured.Villager.ProfessiongetVillagerProfession()Returns the villager profession of this zombie.booleanisConverting()Get if this entity is in the process of converting to a Villager as a result of being cured.voidsetConversionPlayer(OfflinePlayer conversionPlayer)Sets the player who initiated the conversion.voidsetConversionTime(int time)Sets the amount of ticks until this entity will be converted to a Villager as a result of being cured.voidsetVillagerProfession(Villager.Profession profession)Sets the villager profession of this zombie.- 
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute 
- 
Methods inherited from interface org.bukkit.command.CommandSender
getName, 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, 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, setSwimming 
- 
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.Nameable
getCustomName, setCustomName 
- 
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 
- 
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp 
- 
Methods inherited from interface org.bukkit.entity.Zombie
isBaby, isVillager, setBaby, setVillager 
 - 
 
 - 
 
- 
- 
Method Detail
- 
setVillagerProfession
void setVillagerProfession(@Nullable Villager.Profession profession)Sets the villager profession of this zombie.- Specified by:
 setVillagerProfessionin interfaceZombie- Parameters:
 profession- profession- See Also:
 getVillagerProfession()
 
- 
getVillagerProfession
@Nullable Villager.Profession getVillagerProfession()
Returns the villager profession of this zombie.- Specified by:
 getVillagerProfessionin interfaceZombie- Returns:
 - the profession or null
 - See Also:
 getVillagerProfession()
 
- 
isConverting
boolean isConverting()
Get if this entity is in the process of converting to a Villager as a result of being cured.- Specified by:
 isConvertingin interfaceZombie- Returns:
 - conversion status
 
 
- 
getConversionTime
int getConversionTime()
Gets the amount of ticks until this entity will be converted to a Villager as a result of being cured. When this reaches 0, the entity will be converted.- Specified by:
 getConversionTimein interfaceZombie- 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 Villager as a result of being cured. 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.- Specified by:
 setConversionTimein interfaceZombie- Parameters:
 time- new conversion time
 
- 
getConversionPlayer
@Nullable OfflinePlayer getConversionPlayer()
Gets the player who initiated the conversion.- Returns:
 - the player, or 
nullif the player is unknown or the entity isn't converting currently 
 
- 
setConversionPlayer
void setConversionPlayer(@Nullable OfflinePlayer conversionPlayer)Sets the player who initiated the conversion.This has no effect if this entity isn't converting currently.
- Parameters:
 conversionPlayer- the player
 
 - 
 
 -