Interface Villager
- All Superinterfaces:
- Ageable,- Agent,- ArmorEquipable,- Attackable,- AttributeHolder,- Breedable,- Carrier,- CopyableDataHolder,- DataHolder,- DataHolder.Mutable,- DataSerializable,- Entity,- EntityProjectileSource,- Equipable,- HoverEventSource<HoverEvent.ShowEntity>,- Identifiable,- Leashable,- Living,- Locatable,- Merchant,- PathfinderAgent,- ProjectileSource,- RandomProvider,- SerializableDataHolder,- SerializableDataHolder.Mutable,- Sound.Emitter,- Targeting,- TeamMember,- ValueContainer,- VillagerLike
Represents a Villager.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolderDataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.MutableNested classes/interfaces inherited from interface org.spongepowered.api.util.RandomProviderRandomProvider.SourceNested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolderSerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable
- 
Method SummaryModifier and TypeMethodDescriptiondefault Value.Mutable<Integer> default Value.Mutable<ProfessionType> default Value.Mutable<Integer> default Value.Mutable<VillagerType> Methods inherited from interface org.spongepowered.api.entity.living.AgentaiEnabled, dominantHand, goal, persistentMethods inherited from interface org.spongepowered.api.item.inventory.ArmorEquipablechest, feet, head, itemInHand, itemInHand, legs, setChest, setFeet, setHead, setItemInHand, setItemInHand, setLegsMethods inherited from interface org.spongepowered.api.entity.AttackablelastAttackerMethods inherited from interface org.spongepowered.api.entity.attribute.AttributeHolderattribute, attributeMethods inherited from interface org.spongepowered.api.entity.BreedablebreedingCooldown, canBreedMethods inherited from interface org.spongepowered.api.data.DataHolder.MutablecopyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undoMethods inherited from interface org.spongepowered.api.data.persistence.DataSerializablecontentVersion, toContainerMethods inherited from interface org.spongepowered.api.entity.Entityage, asHoverEvent, baseSize, baseVehicle, boundingBox, boundingBoxBaseSize, boundingBoxHeight, canSee, copy, createArchetype, createSnapshot, creator, customName, customNameVisible, damage, damage, direction, displayName, eyeHeight, eyePosition, fallDistance, fireImmuneTicks, fireTicks, foo, frozenTime, glowing, gravityAffected, height, invisible, invulnerabilityTicks, invulnerable, isLoaded, isRemoved, isTransient, lookAt, maxAir, maxFrozenTime, nearbyEntities, nearbyEntities, notifier, onGround, passengers, position, remainingAir, remove, rotation, scale, scoreboardTags, setLocation, setLocationAndRotation, setLocationAndRotation, setPosition, setRotation, setScale, setTransform, silent, sneaking, sprinting, swiftness, transferToWorld, transferToWorld, transform, type, vanishState, vehicle, velocity, wetMethods inherited from interface org.spongepowered.api.item.inventory.EquipablecanEquip, canEquip, canEquip, canEquip, equip, equip, equipment, equipped, equippedMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.spongepowered.api.util.IdentifiableuniqueIdMethods inherited from interface org.spongepowered.api.entity.LeashableleashHolderMethods inherited from interface org.spongepowered.api.entity.living.Livingabsorption, activeItem, adult, bodyRotations, canGrief, chestRotation, elytraFlying, headDirection, headRotation, health, lastDamageReceived, maxHealth, potionEffects, stuckArrows, walkingSpeedMethods inherited from interface org.spongepowered.api.world.LocatableblockPosition, location, serverLocation, worldMethods inherited from interface org.spongepowered.api.item.merchant.Merchantcustomer, tradeOffersMethods inherited from interface org.spongepowered.api.projectile.source.ProjectileSourcelaunchProjectile, launchProjectile, launchProjectile, launchProjectile, launchProjectileTo, launchProjectileToMethods inherited from interface org.spongepowered.api.util.RandomProviderrandomMethods inherited from interface org.spongepowered.api.data.SerializableDataHoldervalidateRawDataMethods inherited from interface org.spongepowered.api.data.SerializableDataHolder.MutablesetRawDataMethods inherited from interface org.spongepowered.api.entity.TargetingtargetEntityMethods inherited from interface org.spongepowered.api.scoreboard.TeamMemberteamRepresentation
- 
Method Details- 
villagerType- Returns:
- The villager type
- See Also:
 
- 
profession- Returns:
- The profession of this villager
- See Also:
 
- 
professionLevel- Returns:
- The profession level of this villager
 
- 
experience- Returns:
- The experience of the villager
 
 
-