Package org.bukkit.entity
Interface ZombieVillager
- All Superinterfaces:
- Ageable,- Attributable,- CommandSender,- Creature,- Damageable,- Enemy,- Entity,- LivingEntity,- Lootable,- Metadatable,- Mob,- Monster,- Nameable,- Permissible,- PersistentDataHolder,- ProjectileSource,- ServerOperator,- Zombie
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionGets the player who initiated the conversion.intGets the amount of ticks until this entity will be converted to a Villager as a result of being cured.Returns the villager profession of this zombie.Gets the current type of this villager.booleanGet 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.voidsetVillagerType(Villager.Type type) Sets the new type of this villager.Methods inherited from interface org.bukkit.entity.AgeablecanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedMethods inherited from interface org.bukkit.attribute.AttributablegetAttributeMethods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, 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.LivingEntityaddPotionEffect, 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, setRiptiding, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.LootablegetLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.MobgetAmbientSound, getTarget, isAware, setAware, setTargetMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.ZombiecanBreakDoors, isBaby, isVillager, setBaby, setCanBreakDoors, setVillager
- 
Method Details- 
setVillagerProfessionSets the villager profession of this zombie.- Specified by:
- setVillagerProfessionin interface- Zombie
- Parameters:
- profession- profession
- See Also:
 
- 
getVillagerProfessionReturns the villager profession of this zombie.- Specified by:
- getVillagerProfessionin interface- Zombie
- Returns:
- the profession or null
- See Also:
 
- 
getVillagerTypeGets the current type of this villager.- Returns:
- Current type.
 
- 
setVillagerTypeSets the new type of this villager.- Parameters:
- type- New type.
 
- 
isConvertingboolean isConverting()Get if this entity is in the process of converting to a Villager as a result of being cured.- Specified by:
- isConvertingin interface- Zombie
- Returns:
- conversion status
 
- 
getConversionTimeint 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 interface- Zombie
- Returns:
- conversion time
- Throws:
- IllegalStateException- if- isConverting()is false.
 
- 
setConversionTimevoid 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 interface- Zombie
- Parameters:
- time- new conversion time
 
- 
getConversionPlayerGets the player who initiated the conversion.- Returns:
- the player, or nullif the player is unknown or the entity isn't converting currently
 
- 
setConversionPlayerSets the player who initiated the conversion.This has no effect if this entity isn't converting currently. - Parameters:
- conversionPlayer- the player
 
 
-