Package net.minecraft.entity.passive
Class VillagerEntity
- All Implemented Interfaces:
- Attackable,- InteractionObserver,- InventoryOwner,- Npc,- Targeter,- VariantHolder<VillagerType>,- CommandOutput,- Nameable,- Merchant,- VillagerDataContainer,- EntityLike
public class VillagerEntity
extends MerchantEntity
implements InteractionObserver, VillagerDataContainer
- Mappings:
- Namespace - Name - official - byb- intermediary - net/minecraft/class_1646- named - net/minecraft/entity/passive/VillagerEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntityPassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.LivingEntityLivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intstatic final intstatic final floatprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final longprivate booleanprivate intprivate final VillagerGossipsprivate longprivate @Nullable PlayerEntityprivate longprivate longprivate longprivate booleanprivate intprivate static final Loggerprivate static final ImmutableList<MemoryModuleType<?>>private booleanstatic final Map<MemoryModuleType<GlobalPos>,BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> private intprivate static final ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>>private static final TrackedData<VillagerData>Fields inherited from class net.minecraft.entity.passive.MerchantEntityfield_30599, offersFields inherited from class net.minecraft.entity.passive.PassiveEntityBABY_AGE, breedingAge, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntityDEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntityambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, targetSelectorFields inherited from class net.minecraft.entity.LivingEntityactiveItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entityage, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutputDUMMYFields inherited from interface net.minecraft.entity.InventoryOwnerINVENTORY_KEY
- 
Constructor SummaryConstructorsConstructorDescriptionVillagerEntity(EntityType<? extends VillagerEntity> type, World world) VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, VillagerType type) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidafterUsing(TradeOffer offer) private voidbeginTradeWith(PlayerEntity customer) booleancanBreed()booleanbooleancanImmediatelyDespawn(double distanceSquared) private booleanbooleanprivate booleanbooleancanSummonGolem(long time) private voidprivate voidResets the special price of all the trade offers of this villager.private voidprotected Brain.Profile<VillagerEntity>createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) private voidprivate voiddepleteFood(int amount) protected Brain<?>deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic) voidprotected voidprotected @Nullable SoundEventprivate intgetBrain()protected SoundEventprotected TextReturns the default name of the entity.intprotected SoundEventgetHurtSound(DamageSource source) intgetReputation(PlayerEntity player) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.private booleanhasRecentlySlept(long worldTime) booleanprivate voidinitBrain(Brain<VillagerEntity> brain) protected voidInitializes data tracker.initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) interactMob(PlayerEntity player, Hand hand) booleanisClient()booleanbooleanprivate booleanprivate voidlevelUp()protected voidloot(ItemEntity item) booleanvoidmethod_35201(boolean bool) protected voidmobTick()private booleanReturns whether this villager needs restock.private voidnotifyDeath(Entity killer) voidonDeath(DamageSource damageSource) protected voidonGrowUp()voidonInteractionWith(EntityInteraction interaction, Entity entity) voidonStruckByLightning(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.voidprivate voidprepareOffersFor(PlayerEntity player) voidReads custom data fromnbt.voidvoidreinitializeBrain(ServerWorld world) private voidvoidprotected voidvoidrestock()private voidprivate voidsayNo()protected voidprivate voidvoidsetAttacker(@Nullable LivingEntity attacker) voidsetCustomer(@Nullable PlayerEntity customer) voidsetExperience(int experience) voidsetOffers(TradeOfferList offers) voidsetVillagerData(VillagerData villagerData) booleanvoidvoidsummonGolem(ServerWorld world, long time, int requiredCount) voidtalkWithVillager(ServerWorld world, VillagerEntity villager, long time) voidtick()Ticks this entity.private voidUpdates the demand bonus of all the trade offers of this villager.voidwakeUp()Wakes this entity up.booleanvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.passive.MerchantEntitycanBeLeashedBy, fillRecipesFromPool, getActiveEyeHeight, getCustomer, getHeadRollingTimeLeft, getInventory, getLeashPos, getOffers, getStackReference, getTradingSound, getYesSound, hasCustomer, isLeveledMerchant, moveToWorld, onSellingItem, playCelebrateSound, produceParticles, setExperienceFromServer, setHeadRollingTimeLeft, setOffersFromServer, tradeMethods inherited from class net.minecraft.entity.passive.PassiveEntitygetBreedingAge, growUp, growUp, isBaby, onTrackedDataSet, setBaby, setBreedingAge, tickMovement, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntitycanSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, shouldFollowLeash, updateForLeashLength, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntityattachLeash, baseTick, canEquip, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getSquaredDistanceToAttackPosOf, getTarget, getVisibilityCache, getXpToDrop, hasPositionTarget, initEquipment, initGoals, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, lookAtEntity, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, startRiding, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntityaddPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createLivingAttributes, damage, damageArmor, damageHelmet, damageShield, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSounds, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRandom, getRecentDamageSource, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldDropXp, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, limitFallDistance, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilencedMethods inherited from interface net.minecraft.entity.InventoryOwnerreadInventory, writeInventoryMethods inherited from interface net.minecraft.village.MerchantsendOffersMethods inherited from interface net.minecraft.village.VillagerDataContainergetVariant, setVariant
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - bZ- Lbyb;bZ:Lorg/slf4j/Logger;- intermediary - field_36335- Lnet/minecraft/class_1646;field_36335:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/entity/passive/VillagerEntity;LOGGER:Lorg/slf4j/Logger;
 
- 
VILLAGER_DATA- Mappings:
- Namespace - Name - Mixin selector - official - ca- Lbyb;ca:Laby;- intermediary - field_7445- Lnet/minecraft/class_1646;field_7445:Lnet/minecraft/class_2940;- named - VILLAGER_DATA- Lnet/minecraft/entity/passive/VillagerEntity;VILLAGER_DATA:Lnet/minecraft/entity/data/TrackedData;
 
- 
field_30602public static final int field_30602- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bV- Lbyb;bV:I- intermediary - field_30602- Lnet/minecraft/class_1646;field_30602:I- named - field_30602- Lnet/minecraft/entity/passive/VillagerEntity;field_30602:I
 
- 
ITEM_FOOD_VALUES- Mappings:
- Namespace - Name - Mixin selector - official - bW- Lbyb;bW:Ljava/util/Map;- intermediary - field_18526- Lnet/minecraft/class_1646;field_18526:Ljava/util/Map;- named - ITEM_FOOD_VALUES- Lnet/minecraft/entity/passive/VillagerEntity;ITEM_FOOD_VALUES:Ljava/util/Map;
 
- 
field_30604private static final int field_30604- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cb- Lbyb;cb:I- intermediary - field_30604- Lnet/minecraft/class_1646;field_30604:I- named - field_30604- Lnet/minecraft/entity/passive/VillagerEntity;field_30604:I
 
- 
GATHERABLE_ITEMS- Mappings:
- Namespace - Name - Mixin selector - official - cc- Lbyb;cc:Ljava/util/Set;- intermediary - field_18527- Lnet/minecraft/class_1646;field_18527:Ljava/util/Set;- named - GATHERABLE_ITEMS- Lnet/minecraft/entity/passive/VillagerEntity;GATHERABLE_ITEMS:Ljava/util/Set;
 
- 
field_30605private static final int field_30605- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cd- Lbyb;cd:I- intermediary - field_30605- Lnet/minecraft/class_1646;field_30605:I- named - field_30605- Lnet/minecraft/entity/passive/VillagerEntity;field_30605:I
 
- 
field_30606private static final int field_30606- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - ce- Lbyb;ce:I- intermediary - field_30606- Lnet/minecraft/class_1646;field_30606:I- named - field_30606- Lnet/minecraft/entity/passive/VillagerEntity;field_30606:I
 
- 
field_30607private static final int field_30607- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cf- Lbyb;cf:I- intermediary - field_30607- Lnet/minecraft/class_1646;field_30607:I- named - field_30607- Lnet/minecraft/entity/passive/VillagerEntity;field_30607:I
 
- 
field_30608private static final int field_30608- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cg- Lbyb;cg:I- intermediary - field_30608- Lnet/minecraft/class_1646;field_30608:I- named - field_30608- Lnet/minecraft/entity/passive/VillagerEntity;field_30608:I
 
- 
field_30609private static final int field_30609- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - ch- Lbyb;ch:I- intermediary - field_30609- Lnet/minecraft/class_1646;field_30609:I- named - field_30609- Lnet/minecraft/entity/passive/VillagerEntity;field_30609:I
 
- 
field_30610private static final int field_30610- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - ci- Lbyb;ci:I- intermediary - field_30610- Lnet/minecraft/class_1646;field_30610:I- named - field_30610- Lnet/minecraft/entity/passive/VillagerEntity;field_30610:I
 
- 
field_30611private static final long field_30611- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cj- Lbyb;cj:J- intermediary - field_30611- Lnet/minecraft/class_1646;field_30611:J- named - field_30611- Lnet/minecraft/entity/passive/VillagerEntity;field_30611:J
 
- 
field_30603public static final float field_30603- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bX- Lbyb;bX:F- intermediary - field_30603- Lnet/minecraft/class_1646;field_30603:F- named - field_30603- Lnet/minecraft/entity/passive/VillagerEntity;field_30603:F
 
- 
MEMORY_MODULES- Mappings:
- Namespace - Name - Mixin selector - official - cx- Lbyb;cx:Lcom/google/common/collect/ImmutableList;- intermediary - field_18538- Lnet/minecraft/class_1646;field_18538:Lcom/google/common/collect/ImmutableList;- named - MEMORY_MODULES- Lnet/minecraft/entity/passive/VillagerEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;
 
- 
SENSORS- Mappings:
- Namespace - Name - Mixin selector - official - cy- Lbyb;cy:Lcom/google/common/collect/ImmutableList;- intermediary - field_18539- Lnet/minecraft/class_1646;field_18539:Lcom/google/common/collect/ImmutableList;- named - SENSORS- Lnet/minecraft/entity/passive/VillagerEntity;SENSORS:Lcom/google/common/collect/ImmutableList;
 
- 
POINTS_OF_INTERESTpublic static final Map<MemoryModuleType<GlobalPos>,BiPredicate<VillagerEntity, POINTS_OF_INTERESTRegistryEntry<PointOfInterestType>>> - Mappings:
- Namespace - Name - Mixin selector - official - bY- Lbyb;bY:Ljava/util/Map;- intermediary - field_18851- Lnet/minecraft/class_1646;field_18851:Ljava/util/Map;- named - POINTS_OF_INTEREST- Lnet/minecraft/entity/passive/VillagerEntity;POINTS_OF_INTEREST:Ljava/util/Map;
 
- 
levelUpTimerprivate int levelUpTimer- Mappings:
- Namespace - Name - Mixin selector - official - ck- Lbyb;ck:I- intermediary - field_18528- Lnet/minecraft/class_1646;field_18528:I- named - levelUpTimer- Lnet/minecraft/entity/passive/VillagerEntity;levelUpTimer:I
 
- 
levelingUpprivate boolean levelingUp- Mappings:
- Namespace - Name - Mixin selector - official - cl- Lbyb;cl:Z- intermediary - field_18529- Lnet/minecraft/class_1646;field_18529:Z- named - levelingUp- Lnet/minecraft/entity/passive/VillagerEntity;levelingUp:Z
 
- 
lastCustomer- Mappings:
- Namespace - Name - Mixin selector - official - cm- Lbyb;cm:Lbyo;- intermediary - field_18530- Lnet/minecraft/class_1646;field_18530:Lnet/minecraft/class_1657;- named - lastCustomer- Lnet/minecraft/entity/passive/VillagerEntity;lastCustomer:Lnet/minecraft/entity/player/PlayerEntity;
 
- 
field_30612private boolean field_30612- Mappings:
- Namespace - Name - Mixin selector - official - cn- Lbyb;cn:Z- intermediary - field_30612- Lnet/minecraft/class_1646;field_30612:Z- named - field_30612- Lnet/minecraft/entity/passive/VillagerEntity;field_30612:Z
 
- 
foodLevelprivate int foodLevel- Mappings:
- Namespace - Name - Mixin selector - official - co- Lbyb;co:I- intermediary - field_18533- Lnet/minecraft/class_1646;field_18533:I- named - foodLevel- Lnet/minecraft/entity/passive/VillagerEntity;foodLevel:I
 
- 
gossip- Mappings:
- Namespace - Name - Mixin selector - official - cp- Lbyb;cp:Lbox;- intermediary - field_18534- Lnet/minecraft/class_1646;field_18534:Lnet/minecraft/class_4136;- named - gossip- Lnet/minecraft/entity/passive/VillagerEntity;gossip:Lnet/minecraft/village/VillagerGossips;
 
- 
gossipStartTimeprivate long gossipStartTime- Mappings:
- Namespace - Name - Mixin selector - official - cq- Lbyb;cq:J- intermediary - field_18535- Lnet/minecraft/class_1646;field_18535:J- named - gossipStartTime- Lnet/minecraft/entity/passive/VillagerEntity;gossipStartTime:J
 
- 
lastGossipDecayTimeprivate long lastGossipDecayTime- Mappings:
- Namespace - Name - Mixin selector - official - cr- Lbyb;cr:J- intermediary - field_19357- Lnet/minecraft/class_1646;field_19357:J- named - lastGossipDecayTime- Lnet/minecraft/entity/passive/VillagerEntity;lastGossipDecayTime:J
 
- 
experienceprivate int experience- Mappings:
- Namespace - Name - Mixin selector - official - cs- Lbyb;cs:I- intermediary - field_18536- Lnet/minecraft/class_1646;field_18536:I- named - experience- Lnet/minecraft/entity/passive/VillagerEntity;experience:I
 
- 
lastRestockTimeprivate long lastRestockTime- Mappings:
- Namespace - Name - Mixin selector - official - ct- Lbyb;ct:J- intermediary - field_18537- Lnet/minecraft/class_1646;field_18537:J- named - lastRestockTime- Lnet/minecraft/entity/passive/VillagerEntity;lastRestockTime:J
 
- 
restocksTodayprivate int restocksToday- Mappings:
- Namespace - Name - Mixin selector - official - cu- Lbyb;cu:I- intermediary - field_19427- Lnet/minecraft/class_1646;field_19427:I- named - restocksToday- Lnet/minecraft/entity/passive/VillagerEntity;restocksToday:I
 
- 
lastRestockCheckTimeprivate long lastRestockCheckTime- Mappings:
- Namespace - Name - Mixin selector - official - cv- Lbyb;cv:J- intermediary - field_20332- Lnet/minecraft/class_1646;field_20332:J- named - lastRestockCheckTime- Lnet/minecraft/entity/passive/VillagerEntity;lastRestockCheckTime:J
 
- 
naturalprivate boolean natural- Mappings:
- Namespace - Name - Mixin selector - official - cw- Lbyb;cw:Z- intermediary - field_25167- Lnet/minecraft/class_1646;field_25167:Z- named - natural- Lnet/minecraft/entity/passive/VillagerEntity;natural:Z
 
 
- 
- 
Constructor Details- 
VillagerEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj;<init>(Lbfn;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
 
- 
VillagerEntitypublic VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, VillagerType type) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbyb;<init>(Lbfn;Lcmm;Lbyg;)V- intermediary - <init>- Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V- named - <init>- Lnet/minecraft/entity/passive/VillagerEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V
 
 
- 
- 
Method Details- 
getBrain- Overrides:
- getBrainin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - dK- Lbfz;dK()Lbha;- intermediary - method_18868- Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;- named - getBrain- Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
 
- 
createBrainProfile- Overrides:
- createBrainProfilein class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - dL- Lbfz;dL()Lbha$b;- intermediary - method_28306- Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;- named - createBrainProfile- Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
 
- 
deserializeBrain- Overrides:
- deserializeBrainin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lcom/mojang/serialization/Dynamic;)Lbha;- intermediary - method_18867- Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;- named - deserializeBrain- Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
 
- 
reinitializeBrain- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbyb;c(Laif;)V- intermediary - method_19179- Lnet/minecraft/class_1646;method_19179(Lnet/minecraft/class_3218;)V- named - reinitializeBrain- Lnet/minecraft/entity/passive/VillagerEntity;reinitializeBrain(Lnet/minecraft/server/world/ServerWorld;)V
 
- 
initBrain- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Lbha;)V- intermediary - method_19174- Lnet/minecraft/class_1646;method_19174(Lnet/minecraft/class_4095;)V- named - initBrain- Lnet/minecraft/entity/passive/VillagerEntity;initBrain(Lnet/minecraft/entity/ai/brain/Brain;)V
 
- 
onGrowUpprotected void onGrowUp()- Overrides:
- onGrowUpin class- PassiveEntity
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lbfe;m()V- intermediary - method_5619- Lnet/minecraft/class_1296;method_5619()V- named - onGrowUp- Lnet/minecraft/entity/passive/PassiveEntity;onGrowUp()V
 
- 
createVillagerAttributes- Mappings:
- Namespace - Name - Mixin selector - official - gh- Lbyb;gh()Lbhf$a;- intermediary - method_26955- Lnet/minecraft/class_1646;method_26955()Lnet/minecraft/class_5132$class_5133;- named - createVillagerAttributes- Lnet/minecraft/entity/passive/VillagerEntity;createVillagerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
 
- 
isNaturalpublic boolean isNatural()- Mappings:
- Namespace - Name - Mixin selector - official - gi- Lbyb;gi()Z- intermediary - method_29279- Lnet/minecraft/class_1646;method_29279()Z- named - isNatural- Lnet/minecraft/entity/passive/VillagerEntity;isNatural()Z
 
- 
mobTickprotected void mobTick()
- 
tickpublic void tick()Ticks this entity.
- 
interactMob- Overrides:
- interactMobin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lbyo;Lbdw;)Lbdx;- intermediary - method_5992- Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;- named - interactMob- Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
 
- 
sayNoprivate void sayNo()- Mappings:
- Namespace - Name - Mixin selector - official - gu- Lbyb;gu()V- intermediary - method_20264- Lnet/minecraft/class_1646;method_20264()V- named - sayNo- Lnet/minecraft/entity/passive/VillagerEntity;sayNo()V
 
- 
beginTradeWith- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbyb;h(Lbyo;)V- intermediary - method_19191- Lnet/minecraft/class_1646;method_19191(Lnet/minecraft/class_1657;)V- named - beginTradeWith- Lnet/minecraft/entity/passive/VillagerEntity;beginTradeWith(Lnet/minecraft/entity/player/PlayerEntity;)V
 
- 
setCustomer- Specified by:
- setCustomerin interface- Merchant
- Overrides:
- setCustomerin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lclj;f(Lbyo;)V- intermediary - method_8259- Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)V- named - setCustomer- Lnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
 
- 
resetCustomerprotected void resetCustomer()- Overrides:
- resetCustomerin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - ge- Lbxw;ge()V- intermediary - method_19181- Lnet/minecraft/class_3988;method_19181()V- named - resetCustomer- Lnet/minecraft/entity/passive/MerchantEntity;resetCustomer()V
 
- 
clearSpecialPricesprivate void clearSpecialPrices()Resets the special price of all the trade offers of this villager.- Mappings:
- Namespace - Name - Mixin selector - official - gv- Lbyb;gv()V- intermediary - method_19187- Lnet/minecraft/class_1646;method_19187()V- named - clearSpecialPrices- Lnet/minecraft/entity/passive/VillagerEntity;clearSpecialPrices()V
 
- 
canRefreshTradespublic boolean canRefreshTrades()- Specified by:
- canRefreshTradesin interface- Merchant
- Mappings:
- Namespace - Name - Mixin selector - official - gk- Lclj;gk()Z- intermediary - method_20708- Lnet/minecraft/class_1915;method_20708()Z- named - canRefreshTrades- Lnet/minecraft/village/Merchant;canRefreshTrades()Z
 
- 
isClientpublic boolean isClient()- Specified by:
- isClientin interface- Merchant
- Overrides:
- isClientin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - gg- Lclj;gg()Z- intermediary - method_38069- Lnet/minecraft/class_1915;method_38069()Z- named - isClient- Lnet/minecraft/village/Merchant;isClient()Z
 
- 
restockpublic void restock()- Mappings:
- Namespace - Name - Mixin selector - official - gl- Lbyb;gl()V- intermediary - method_19182- Lnet/minecraft/class_1646;method_19182()V- named - restock- Lnet/minecraft/entity/passive/VillagerEntity;restock()V
 
- 
sendOffersToCustomerprivate void sendOffersToCustomer()- Mappings:
- Namespace - Name - Mixin selector - official - gw- Lbyb;gw()V- intermediary - method_49695- Lnet/minecraft/class_1646;method_49695()V- named - sendOffersToCustomer- Lnet/minecraft/entity/passive/VillagerEntity;sendOffersToCustomer()V
 
- 
needsRestockprivate boolean needsRestock()Returns whether this villager needs restock.Checks if at least one of its trade offers has been used. - Mappings:
- Namespace - Name - Mixin selector - official - gx- Lbyb;gx()Z- intermediary - method_20823- Lnet/minecraft/class_1646;method_20823()Z- named - needsRestock- Lnet/minecraft/entity/passive/VillagerEntity;needsRestock()Z
 
- 
canRestockprivate boolean canRestock()- Mappings:
- Namespace - Name - Mixin selector - official - gy- Lbyb;gy()Z- intermediary - method_20824- Lnet/minecraft/class_1646;method_20824()Z- named - canRestock- Lnet/minecraft/entity/passive/VillagerEntity;canRestock()Z
 
- 
shouldRestockpublic boolean shouldRestock()- Mappings:
- Namespace - Name - Mixin selector - official - gm- Lbyb;gm()Z- intermediary - method_20822- Lnet/minecraft/class_1646;method_20822()Z- named - shouldRestock- Lnet/minecraft/entity/passive/VillagerEntity;shouldRestock()Z
 
- 
restockAndUpdateDemandBonusprivate void restockAndUpdateDemandBonus()- Mappings:
- Namespace - Name - Mixin selector - official - gz- Lbyb;gz()V- intermediary - method_21723- Lnet/minecraft/class_1646;method_21723()V- named - restockAndUpdateDemandBonus- Lnet/minecraft/entity/passive/VillagerEntity;restockAndUpdateDemandBonus()V
 
- 
updateDemandBonusprivate void updateDemandBonus()Updates the demand bonus of all the trade offers of this villager.- Mappings:
- Namespace - Name - Mixin selector - official - gA- Lbyb;gA()V- intermediary - method_21724- Lnet/minecraft/class_1646;method_21724()V- named - updateDemandBonus- Lnet/minecraft/entity/passive/VillagerEntity;updateDemandBonus()V
 
- 
prepareOffersFor- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbyb;i(Lbyo;)V- intermediary - method_19192- Lnet/minecraft/class_1646;method_19192(Lnet/minecraft/class_1657;)V- named - prepareOffersFor- Lnet/minecraft/entity/passive/VillagerEntity;prepareOffersFor(Lnet/minecraft/entity/player/PlayerEntity;)V
 
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Overrides:
- initDataTrackerin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. - Overrides:
- writeCustomDataToNbtin class- MerchantEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
- readCustomDataFromNbtin class- MerchantEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
canImmediatelyDespawnpublic boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
- canImmediatelyDespawnin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbgb;h(D)Z- intermediary - method_5974- Lnet/minecraft/class_1308;method_5974(D)Z- named - canImmediatelyDespawn- Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
 
- 
getAmbientSound- Overrides:
- getAmbientSoundin class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - s- Lbgb;s()Lamg;- intermediary - method_5994- Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;- named - getAmbientSound- Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
 
- 
getHurtSound- Overrides:
- getHurtSoundin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbfz;d(Lben;)Lamg;- intermediary - method_6011- Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;- named - getHurtSound- Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
 
- 
getDeathSound- Overrides:
- getDeathSoundin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - g_- Lbfz;g_()Lamg;- intermediary - method_6002- Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;- named - getDeathSound- Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
 
- 
playWorkSoundpublic void playWorkSound()- Mappings:
- Namespace - Name - Mixin selector - official - gn- Lbyb;gn()V- intermediary - method_19183- Lnet/minecraft/class_1646;method_19183()V- named - playWorkSound- Lnet/minecraft/entity/passive/VillagerEntity;playWorkSound()V
 
- 
setVillagerData- Specified by:
- setVillagerDatain interface- VillagerDataContainer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyd;a(Lbyc;)V- intermediary - method_7195- Lnet/minecraft/class_3851;method_7195(Lnet/minecraft/class_3850;)V- named - setVillagerData- Lnet/minecraft/village/VillagerDataContainer;setVillagerData(Lnet/minecraft/village/VillagerData;)V
 
- 
getVillagerData- Specified by:
- getVillagerDatain interface- VillagerDataContainer
- Mappings:
- Namespace - Name - Mixin selector - official - gj- Lbyd;gj()Lbyc;- intermediary - method_7231- Lnet/minecraft/class_3851;method_7231()Lnet/minecraft/class_3850;- named - getVillagerData- Lnet/minecraft/village/VillagerDataContainer;getVillagerData()Lnet/minecraft/village/VillagerData;
 
- 
afterUsing- Specified by:
- afterUsingin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbxw;b(Lclk;)V- intermediary - method_18008- Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)V- named - afterUsing- Lnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)V
 
- 
method_35201public void method_35201(boolean bool) - Mappings:
- Namespace - Name - Mixin selector - official - x- Lbyb;x(Z)V- intermediary - method_35201- Lnet/minecraft/class_1646;method_35201(Z)V- named - method_35201- Lnet/minecraft/entity/passive/VillagerEntity;method_35201(Z)V
 
- 
method_35200public boolean method_35200()- Mappings:
- Namespace - Name - Mixin selector - official - go- Lbyb;go()Z- intermediary - method_35200- Lnet/minecraft/class_1646;method_35200()Z- named - method_35200- Lnet/minecraft/entity/passive/VillagerEntity;method_35200()Z
 
- 
setAttacker- Overrides:
- setAttackerin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lbfz;)V- intermediary - method_6015- Lnet/minecraft/class_1309;method_6015(Lnet/minecraft/class_1309;)V- named - setAttacker- Lnet/minecraft/entity/LivingEntity;setAttacker(Lnet/minecraft/entity/LivingEntity;)V
 
- 
onDeath- Overrides:
- onDeathin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lben;)V- intermediary - method_6078- Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V- named - onDeath- Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
 
- 
releaseAllTicketsprivate void releaseAllTickets()- Mappings:
- Namespace - Name - Mixin selector - official - gB- Lbyb;gB()V- intermediary - method_30958- Lnet/minecraft/class_1646;method_30958()V- named - releaseAllTickets- Lnet/minecraft/entity/passive/VillagerEntity;releaseAllTickets()V
 
- 
notifyDeath- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Lbfj;)V- intermediary - method_20690- Lnet/minecraft/class_1646;method_20690(Lnet/minecraft/class_1297;)V- named - notifyDeath- Lnet/minecraft/entity/passive/VillagerEntity;notifyDeath(Lnet/minecraft/entity/Entity;)V
 
- 
releaseTicketFor- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Lbpb;)V- intermediary - method_19176- Lnet/minecraft/class_1646;method_19176(Lnet/minecraft/class_4140;)V- named - releaseTicketFor- Lnet/minecraft/entity/passive/VillagerEntity;releaseTicketFor(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
 
- 
isReadyToBreedpublic boolean isReadyToBreed()- Overrides:
- isReadyToBreedin class- PassiveEntity
- Mappings:
- Namespace - Name - Mixin selector - official - P_- Lbfe;P_()Z- intermediary - method_19184- Lnet/minecraft/class_1296;method_19184()Z- named - isReadyToBreed- Lnet/minecraft/entity/passive/PassiveEntity;isReadyToBreed()Z
 
- 
lacksFoodprivate boolean lacksFood()- Mappings:
- Namespace - Name - Mixin selector - official - gC- Lbyb;gC()Z- intermediary - method_20698- Lnet/minecraft/class_1646;method_20698()Z- named - lacksFood- Lnet/minecraft/entity/passive/VillagerEntity;lacksFood()Z
 
- 
consumeAvailableFoodprivate void consumeAvailableFood()- Mappings:
- Namespace - Name - Mixin selector - official - gD- Lbyb;gD()V- intermediary - method_19185- Lnet/minecraft/class_1646;method_19185()V- named - consumeAvailableFood- Lnet/minecraft/entity/passive/VillagerEntity;consumeAvailableFood()V
 
- 
getReputation- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbyb;g(Lbyo;)I- intermediary - method_20594- Lnet/minecraft/class_1646;method_20594(Lnet/minecraft/class_1657;)I- named - getReputation- Lnet/minecraft/entity/passive/VillagerEntity;getReputation(Lnet/minecraft/entity/player/PlayerEntity;)I
 
- 
depleteFoodprivate void depleteFood(int amount) - Mappings:
- Namespace - Name - Mixin selector - official - v- Lbyb;v(I)V- intermediary - method_19193- Lnet/minecraft/class_1646;method_19193(I)V- named - depleteFood- Lnet/minecraft/entity/passive/VillagerEntity;depleteFood(I)V
 
- 
eatForBreedingpublic void eatForBreeding()- Mappings:
- Namespace - Name - Mixin selector - official - gp- Lbyb;gp()V- intermediary - method_20697- Lnet/minecraft/class_1646;method_20697()V- named - eatForBreeding- Lnet/minecraft/entity/passive/VillagerEntity;eatForBreeding()V
 
- 
setOffers- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyb;b(Lcll;)V- intermediary - method_16917- Lnet/minecraft/class_1646;method_16917(Lnet/minecraft/class_1916;)V- named - setOffers- Lnet/minecraft/entity/passive/VillagerEntity;setOffers(Lnet/minecraft/village/TradeOfferList;)V
 
- 
canLevelUpprivate boolean canLevelUp()- Mappings:
- Namespace - Name - Mixin selector - official - gE- Lbyb;gE()Z- intermediary - method_19188- Lnet/minecraft/class_1646;method_19188()Z- named - canLevelUp- Lnet/minecraft/entity/passive/VillagerEntity;canLevelUp()Z
 
- 
levelUpprivate void levelUp()- Mappings:
- Namespace - Name - Mixin selector - official - gF- Lbyb;gF()V- intermediary - method_16918- Lnet/minecraft/class_1646;method_16918()V- named - levelUp- Lnet/minecraft/entity/passive/VillagerEntity;levelUp()V
 
- 
getDefaultNameReturns the default name of the entity.- Overrides:
- getDefaultNamein class- Entity
- Returns:
- the default name of the entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cl- Lbfj;cl()Lsw;- intermediary - method_23315- Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;- named - getDefaultName- Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
 
- 
handleStatuspublic void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
- handleStatusin class- MobEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(B)V- intermediary - method_5711- Lnet/minecraft/class_1297;method_5711(B)V- named - handleStatus- Lnet/minecraft/entity/Entity;handleStatus(B)V
 
- 
initialize@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt) - Overrides:
- initializein class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lcnb;Lbdv;Lbgd;Lbgt;Lqr;)Lbgt;- intermediary - method_5943- Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;- named - initialize- Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
 
- 
createChild@Nullable public @Nullable VillagerEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
- createChildin class- PassiveEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyb;b(Laif;Lbfe;)Lbyb;- intermediary - method_7225- Lnet/minecraft/class_1646;method_7225(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1646;- named - createChild- Lnet/minecraft/entity/passive/VillagerEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/VillagerEntity;
 
- 
onStruckByLightningCalled when the entity is struck by lightning. This sets the entity on fire and deals lightning damage by default; entities that do not take such damage should override this method to do nothing.- Overrides:
- onStruckByLightningin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Laif;Lbfy;)V- intermediary - method_5800- Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V- named - onStruckByLightning- Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
 
- 
loot
- 
canGather
- 
wantsToStartBreedingpublic boolean wantsToStartBreeding()- Mappings:
- Namespace - Name - Mixin selector - official - gq- Lbyb;gq()Z- intermediary - method_7234- Lnet/minecraft/class_1646;method_7234()Z- named - wantsToStartBreeding- Lnet/minecraft/entity/passive/VillagerEntity;wantsToStartBreeding()Z
 
- 
canBreedpublic boolean canBreed()- Mappings:
- Namespace - Name - Mixin selector - official - gr- Lbyb;gr()Z- intermediary - method_7239- Lnet/minecraft/class_1646;method_7239()Z- named - canBreed- Lnet/minecraft/entity/passive/VillagerEntity;canBreed()Z
 
- 
getAvailableFoodprivate int getAvailableFood()- Mappings:
- Namespace - Name - Mixin selector - official - gG- Lbyb;gG()I- intermediary - method_19189- Lnet/minecraft/class_1646;method_19189()I- named - getAvailableFood- Lnet/minecraft/entity/passive/VillagerEntity;getAvailableFood()I
 
- 
hasSeedToPlantpublic boolean hasSeedToPlant()- Mappings:
- Namespace - Name - Mixin selector - official - gs- Lbyb;gs()Z- intermediary - method_19623- Lnet/minecraft/class_1646;method_19623()Z- named - hasSeedToPlant- Lnet/minecraft/entity/passive/VillagerEntity;hasSeedToPlant()Z
 
- 
fillRecipesprotected void fillRecipes()- Specified by:
- fillRecipesin class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - gf- Lbxw;gf()V- intermediary - method_7237- Lnet/minecraft/class_3988;method_7237()V- named - fillRecipes- Lnet/minecraft/entity/passive/MerchantEntity;fillRecipes()V
 
- 
talkWithVillager- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Laif;Lbyb;J)V- intermediary - method_19177- Lnet/minecraft/class_1646;method_19177(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V- named - talkWithVillager- Lnet/minecraft/entity/passive/VillagerEntity;talkWithVillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
 
- 
decayGossipprivate void decayGossip()- Mappings:
- Namespace - Name - Mixin selector - official - gH- Lbyb;gH()V- intermediary - method_20696- Lnet/minecraft/class_1646;method_20696()V- named - decayGossip- Lnet/minecraft/entity/passive/VillagerEntity;decayGossip()V
 
- 
summonGolem- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Laif;JI)V- intermediary - method_20688- Lnet/minecraft/class_1646;method_20688(Lnet/minecraft/class_3218;JI)V- named - summonGolem- Lnet/minecraft/entity/passive/VillagerEntity;summonGolem(Lnet/minecraft/server/world/ServerWorld;JI)V
 
- 
canSummonGolempublic boolean canSummonGolem(long time) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(J)Z- intermediary - method_20687- Lnet/minecraft/class_1646;method_20687(J)Z- named - canSummonGolem- Lnet/minecraft/entity/passive/VillagerEntity;canSummonGolem(J)Z
 
- 
onInteractionWith- Specified by:
- onInteractionWithin interface- InteractionObserver
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgo;a(Lbqw;Lbfj;)V- intermediary - method_18870- Lnet/minecraft/class_4094;method_18870(Lnet/minecraft/class_4151;Lnet/minecraft/class_1297;)V- named - onInteractionWith- Lnet/minecraft/entity/InteractionObserver;onInteractionWith(Lnet/minecraft/entity/EntityInteraction;Lnet/minecraft/entity/Entity;)V
 
- 
getExperiencepublic int getExperience()- Specified by:
- getExperiencein interface- Merchant
- Overrides:
- getExperiencein class- MerchantEntity
- Mappings:
- Namespace - Name - Mixin selector - official - r- Lclj;r()I- intermediary - method_19269- Lnet/minecraft/class_1915;method_19269()I- named - getExperience- Lnet/minecraft/village/Merchant;getExperience()I
 
- 
setExperiencepublic void setExperience(int experience) - Mappings:
- Namespace - Name - Mixin selector - official - u- Lbyb;u(I)V- intermediary - method_19625- Lnet/minecraft/class_1646;method_19625(I)V- named - setExperience- Lnet/minecraft/entity/passive/VillagerEntity;setExperience(I)V
 
- 
clearDailyRestockCountprivate void clearDailyRestockCount()- Mappings:
- Namespace - Name - Mixin selector - official - gI- Lbyb;gI()V- intermediary - method_20821- Lnet/minecraft/class_1646;method_20821()V- named - clearDailyRestockCount- Lnet/minecraft/entity/passive/VillagerEntity;clearDailyRestockCount()V
 
- 
getGossip- Mappings:
- Namespace - Name - Mixin selector - official - gt- Lbyb;gt()Lbox;- intermediary - method_21651- Lnet/minecraft/class_1646;method_21651()Lnet/minecraft/class_4136;- named - getGossip- Lnet/minecraft/entity/passive/VillagerEntity;getGossip()Lnet/minecraft/village/VillagerGossips;
 
- 
readGossipDataNbt- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyb;a(Lrk;)V- intermediary - method_21650- Lnet/minecraft/class_1646;method_21650(Lnet/minecraft/class_2520;)V- named - readGossipDataNbt- Lnet/minecraft/entity/passive/VillagerEntity;readGossipDataNbt(Lnet/minecraft/nbt/NbtElement;)V
 
- 
sendAiDebugDataprotected void sendAiDebugData()- Overrides:
- sendAiDebugDatain class- MobEntity
- Mappings:
- Namespace - Name - Mixin selector - official - V- Lbgb;V()V- intermediary - method_18409- Lnet/minecraft/class_1308;method_18409()V- named - sendAiDebugData- Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
 
- 
sleep- Overrides:
- sleepin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfz;b(Lgu;)V- intermediary - method_18403- Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)V- named - sleep- Lnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
 
- 
wakeUppublic void wakeUp()Wakes this entity up.- Overrides:
- wakeUpin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - fz- Lbfz;fz()V- intermediary - method_18400- Lnet/minecraft/class_1309;method_18400()V- named - wakeUp- Lnet/minecraft/entity/LivingEntity;wakeUp()V
 
- 
hasRecentlySleptprivate boolean hasRecentlySlept(long worldTime) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyb;b(J)Z- intermediary - method_20741- Lnet/minecraft/class_1646;method_20741(J)Z- named - hasRecentlySlept- Lnet/minecraft/entity/passive/VillagerEntity;hasRecentlySlept(J)Z
 
 
-