Package net.glowstone.entity.passive
Class GlowVillager
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowLivingEntity
net.glowstone.entity.GlowMob
net.glowstone.entity.GlowCreature
net.glowstone.entity.GlowAgeable
net.glowstone.entity.passive.GlowVillager
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.attribute.Attributable
,org.bukkit.command.CommandSender
,org.bukkit.entity.AbstractVillager
,org.bukkit.entity.Ageable
,org.bukkit.entity.Breedable
,org.bukkit.entity.Creature
,org.bukkit.entity.Damageable
,org.bukkit.entity.Entity
,org.bukkit.entity.LivingEntity
,org.bukkit.entity.Mob
,org.bukkit.entity.NPC
,org.bukkit.entity.Villager
,org.bukkit.inventory.InventoryHolder
,org.bukkit.inventory.Merchant
,org.bukkit.loot.Lootable
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
,org.bukkit.projectiles.ProjectileSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
Nested classes/interfaces inherited from interface org.bukkit.entity.Villager
org.bukkit.entity.Villager.Profession, org.bukkit.entity.Villager.Type
-
Field Summary
Fields inherited from class net.glowstone.entity.GlowAgeable
height, width
Fields inherited from class net.glowstone.entity.GlowLivingEntity
deathTicks, health, maxHealth, movement, speed, taskManager
Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
-
Constructor Summary
ConstructorDescriptionGlowVillager
(org.bukkit.Location location) Creates a villager with a random profession. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the recipes of this villager.void
void
damage
(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) boolean
entityInteract
(GlowPlayer player, InteractEntityMessage message) protected org.bukkit.Sound
Get the ambient sound this entity makes randomly, or null for silence.int
Get the current level of this villager's trading options.protected org.bukkit.Sound
Get the death sound of this entity, or null for silence.protected org.bukkit.Sound
Get the hurt sound of this entity, or null for silence.org.bukkit.inventory.Inventory
org.bukkit.entity.Villager.Profession
static org.bukkit.entity.Villager.Profession
getProfessionById
(int professionId) Gets theVillager.Profession
corresponding to the given ID.static org.bukkit.entity.Villager.Profession
getRandomProfession
(Random random) Gets a randomVillager.Profession
.org.bukkit.inventory.MerchantRecipe
getRecipe
(int index) int
List<org.bukkit.inventory.MerchantRecipe>
@Nullable com.destroystokyo.paper.entity.villager.Reputation
getReputation
(@NotNull UUID uuid) int
int
The trader this villager is currently trading with.int
int
@NotNull org.bukkit.entity.Villager.Type
boolean
static boolean
isValidProfession
(int professionId) Checks whether or not the givenVillager.Profession
ID is valid.boolean
Whether or not this villager is willing to mate.void
void
setCareerLevel
(int careerLevel) Set the current level of this villager's trading options.void
setProfession
(org.bukkit.entity.Villager.Profession profession) void
setRecipe
(int index, org.bukkit.inventory.MerchantRecipe recipe) void
setRecipes
(List<org.bukkit.inventory.MerchantRecipe> recipes) void
setReputation
(@NotNull UUID uuid, @NotNull com.destroystokyo.paper.entity.villager.Reputation reputation) void
setReputations
(@NotNull Map<UUID, com.destroystokyo.paper.entity.villager.Reputation> map) void
setRestocksToday
(int i) void
setRiches
(int riches) void
setTrader
(GlowHumanEntity trader) The trader this villager is currently trading with.void
setVillagerExperience
(int i) void
setVillagerLevel
(int i) void
setVillagerType
(@NotNull org.bukkit.entity.Villager.Type type) void
setWilling
(boolean willing) Whether or not this villager is willing to mate.void
boolean
sleep
(@NotNull org.bukkit.Location location) void
wakeup()
@Nullable org.bukkit.entity.ZombieVillager
zombify()
Methods inherited from class net.glowstone.entity.GlowAgeable
canBreed, canGrow, computeGrowthAmount, createBaby, createSpawnMessage, getAge, getAgeLock, getForcedAge, getLoveModeTicks, getParent, getSoundPitch, grow, isAdult, pulse, setAdult, setAge, setAgeLock, setBaby, setBreed, setForcedAge, setLoveModeTicks, setParent, setScale, setScaleForAge
Methods inherited from class net.glowstone.entity.GlowCreature
getLootTable, getPathfinder, getSeed, getTarget, getType, isInDaylight, setLootTable, setSeed, setTarget
Methods inherited from class net.glowstone.entity.GlowMob
getHeadRotationSpeed, getMaxHeadPitch, isAware, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHanded
Methods inherited from class net.glowstone.entity.GlowLivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canTakeDamage, clearActiveItem, clearActivePotionEffects, createUpdateMessage, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getAmbientDelay, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getAttributeManager, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathTicks, getEquipment, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getFreezeTicks, getHandRaised, getHandRaisedTime, getHeadYaw, getHealth, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLineOfSight, getMaxFreezeTicks, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundVolume, getSpawnCategory, getSpeed, getState, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getTaskManager, getTrackedPlayers, getVelocityFromMovement, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isArthropod, isClimbing, isCollidable, isFallFlying, isFreezeTickingLocked, isFrozen, isGliding, isHandRaised, isInPowderedSnow, isInvisible, isJumping, isRiptiding, isSleeping, isSwimming, isUndead, isVisualFire, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, lockFreezeTicks, name, playAnimation, playPickupItemAnimation, pulsePhysics, rayTraceBlocks, rayTraceBlocks, registerAttribute, removePotionEffect, reset, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setFallFlying, setFreezeTicks, setGliding, setHeadYaw, setHealth, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, setSwimming, setVisualFire, spawnAt, swingMainHand, swingOffHand, teamDisplayName, tryUseTotem, updatePotionEffectsMetadata
Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, customName, customName, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.entity.Ageable
getAge, isAdult, setAdult, setAge, setBaby
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttribute
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
Methods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage
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, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeed
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.entity.Mob
getEquipment, getHeadRotationSpeed, getMaxHeadPitch, getPathfinder, getTarget, isAware, isInDaylight, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHanded, setTarget
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
GlowVillager
public GlowVillager(org.bukkit.Location location) Creates a villager with a random profession.- Parameters:
location
- the location
-
-
Method Details
-
getRandomProfession
Gets a randomVillager.Profession
.- Parameters:
random
- the random instance- Returns:
- a random
Villager.Profession
-
isValidProfession
public static boolean isValidProfession(int professionId) Checks whether or not the givenVillager.Profession
ID is valid.- Parameters:
professionId
- the ID of theVillager.Profession
- Returns:
- true if the ID is valid, false otherwise
-
getProfessionById
public static org.bukkit.entity.Villager.Profession getProfessionById(int professionId) Gets theVillager.Profession
corresponding to the given ID.- Parameters:
professionId
- the ID of theVillager.Profession
- Returns:
- the corresponding
Villager.Profession
, or null if none exists
-
getProfession
public org.bukkit.entity.Villager.Profession getProfession()- Specified by:
getProfession
in interfaceorg.bukkit.entity.Villager
-
setProfession
public void setProfession(org.bukkit.entity.Villager.Profession profession) - Specified by:
setProfession
in interfaceorg.bukkit.entity.Villager
-
getVillagerType
@NotNull public @NotNull org.bukkit.entity.Villager.Type getVillagerType()- Specified by:
getVillagerType
in interfaceorg.bukkit.entity.Villager
-
setVillagerType
public void setVillagerType(@NotNull @NotNull org.bukkit.entity.Villager.Type type) - Specified by:
setVillagerType
in interfaceorg.bukkit.entity.Villager
-
getVillagerLevel
public int getVillagerLevel()- Specified by:
getVillagerLevel
in interfaceorg.bukkit.entity.Villager
-
setVillagerLevel
public void setVillagerLevel(int i) - Specified by:
setVillagerLevel
in interfaceorg.bukkit.entity.Villager
-
getVillagerExperience
public int getVillagerExperience()- Specified by:
getVillagerExperience
in interfaceorg.bukkit.entity.Villager
-
setVillagerExperience
public void setVillagerExperience(int i) - Specified by:
setVillagerExperience
in interfaceorg.bukkit.entity.Villager
-
getRestocksToday
public int getRestocksToday()- Specified by:
getRestocksToday
in interfaceorg.bukkit.entity.Villager
-
setRestocksToday
public void setRestocksToday(int i) - Specified by:
setRestocksToday
in interfaceorg.bukkit.entity.Villager
-
sleep
public boolean sleep(@NotNull @NotNull org.bukkit.Location location) - Specified by:
sleep
in interfaceorg.bukkit.entity.Villager
-
wakeup
public void wakeup()- Specified by:
wakeup
in interfaceorg.bukkit.entity.Villager
-
shakeHead
public void shakeHead()- Specified by:
shakeHead
in interfaceorg.bukkit.entity.Villager
-
zombify
@Nullable public @Nullable org.bukkit.entity.ZombieVillager zombify()- Specified by:
zombify
in interfaceorg.bukkit.entity.Villager
-
getReputation
@Nullable public @Nullable com.destroystokyo.paper.entity.villager.Reputation getReputation(@NotNull @NotNull UUID uuid) - Specified by:
getReputation
in interfaceorg.bukkit.entity.Villager
-
getReputations
@NotNull public @NotNull Map<UUID,com.destroystokyo.paper.entity.villager.Reputation> getReputations()- Specified by:
getReputations
in interfaceorg.bukkit.entity.Villager
-
setReputations
public void setReputations(@NotNull @NotNull Map<UUID, com.destroystokyo.paper.entity.villager.Reputation> map) - Specified by:
setReputations
in interfaceorg.bukkit.entity.Villager
-
setReputation
public void setReputation(@NotNull @NotNull UUID uuid, @NotNull @NotNull com.destroystokyo.paper.entity.villager.Reputation reputation) - Specified by:
setReputation
in interfaceorg.bukkit.entity.Villager
-
clearReputations
public void clearReputations()- Specified by:
clearReputations
in interfaceorg.bukkit.entity.Villager
-
getRecipes
- Specified by:
getRecipes
in interfaceorg.bukkit.inventory.Merchant
-
setRecipes
- Specified by:
setRecipes
in interfaceorg.bukkit.inventory.Merchant
-
getRecipe
- Specified by:
getRecipe
in interfaceorg.bukkit.inventory.Merchant
- Throws:
IndexOutOfBoundsException
-
setRecipe
public void setRecipe(int index, org.bukkit.inventory.MerchantRecipe recipe) throws IndexOutOfBoundsException - Specified by:
setRecipe
in interfaceorg.bukkit.inventory.Merchant
- Throws:
IndexOutOfBoundsException
-
getRecipeCount
public int getRecipeCount()- Specified by:
getRecipeCount
in interfaceorg.bukkit.inventory.Merchant
-
clearRecipes
public void clearRecipes()Clears the recipes of this villager. -
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.entity.AbstractVillager
- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-
resetOffers
public void resetOffers()- Specified by:
resetOffers
in interfaceorg.bukkit.entity.AbstractVillager
-
isTrading
public boolean isTrading()- Specified by:
isTrading
in interfaceorg.bukkit.inventory.Merchant
-
setCareerLevel
public void setCareerLevel(int careerLevel) Set the current level of this villager's trading options.If 0, the next trade will assign a new career and set the career level to 1.
- Parameters:
careerLevel
- the level of this villager's trading options
-
entityInteract
- Overrides:
entityInteract
in classGlowAgeable
-
getHurtSound
protected org.bukkit.Sound getHurtSound()Description copied from class:GlowLivingEntity
Get the hurt sound of this entity, or null for silence.- Overrides:
getHurtSound
in classGlowLivingEntity
- Returns:
- the hurt sound if available
-
getDeathSound
protected org.bukkit.Sound getDeathSound()Description copied from class:GlowLivingEntity
Get the death sound of this entity, or null for silence.- Overrides:
getDeathSound
in classGlowLivingEntity
- Returns:
- the death sound if available
-
getAmbientSound
protected org.bukkit.Sound getAmbientSound()Description copied from class:GlowLivingEntity
Get the ambient sound this entity makes randomly, or null for silence.- Overrides:
getAmbientSound
in classGlowLivingEntity
- Returns:
- the ambient sound if available
-
damage
public void damage(double amount, org.bukkit.entity.Entity source, @NotNull @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Overrides:
damage
in classGlowLivingEntity
-
getRiches
public int getRiches() -
setRiches
public void setRiches(int riches) -
getTrader
The trader this villager is currently trading with.- Specified by:
getTrader
in interfaceorg.bukkit.inventory.Merchant
-
setTrader
The trader this villager is currently trading with.- Parameters:
trader
- the trader
-
isWilling
public boolean isWilling()Whether or not this villager is willing to mate.- Returns:
- true if this villager is willing to mate, false otherwise
-
setWilling
public void setWilling(boolean willing) Whether or not this villager is willing to mate.- Parameters:
willing
- true if this villager is willing to mate, false otherwise
-
getCareerLevel
public int getCareerLevel()Get the current level of this villager's trading options.- Returns:
- the current level of this villager's trading options
-