Package org.bukkit.entity
Interface ZombieVillager
- All Superinterfaces:
Ageable
,Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Monster
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
,Zombie
public interface ZombieVillager extends Zombie
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description OfflinePlayer
getConversionPlayer()
Gets the player who initiated the conversion.int
getConversionTime()
Gets the amount of ticks until this entity will be converted to a Villager as a result of being cured.Villager.Profession
getVillagerProfession()
Returns the villager profession of this zombie.Villager.Type
getVillagerType()
Gets the current type of this villager.boolean
isConverting()
Get if this entity is in the process of converting to a Villager as a result of being cured.void
setConversionPlayer(OfflinePlayer conversionPlayer)
Sets the player who initiated the conversion.void
setConversionTime(int time)
Sets the amount of ticks until this entity will be converted to a Villager as a result of being cured.void
setVillagerProfession(Villager.Profession profession)
Sets the villager profession of this zombie.void
setVillagerType(Villager.Type type)
Sets the new type of this villager.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, isInWater, 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
-
setVillagerProfession
Sets the villager profession of this zombie.- Specified by:
setVillagerProfession
in interfaceZombie
- Parameters:
profession
- profession- See Also:
getVillagerProfession()
-
getVillagerProfession
Returns the villager profession of this zombie.- Specified by:
getVillagerProfession
in interfaceZombie
- Returns:
- the profession or null
- See Also:
getVillagerProfession()
-
getVillagerType
Gets the current type of this villager.- Returns:
- Current type.
-
setVillagerType
Sets the new type of this villager.- Parameters:
type
- New type.
-
isConverting
boolean isConverting()Get if this entity is in the process of converting to a Villager as a result of being cured.- Specified by:
isConverting
in 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:
getConversionTime
in 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:
setConversionTime
in interfaceZombie
- Parameters:
time
- new conversion time
-
getConversionPlayer
Gets the player who initiated the conversion.- Returns:
- the player, or
null
if the player is unknown or the entity isn't converting currently
-
setConversionPlayer
Sets the player who initiated the conversion.This has no effect if this entity isn't converting currently.
- Parameters:
conversionPlayer
- the player
-