Package net.minecraft.entity.passive
Class VillagerEntity
- All Implemented Interfaces:
 ComponentsAccess,Attackable,DataTracked,EquipmentHolder,InteractionObserver,InventoryOwner,Leashable,Npc,Targeter,ScoreHolder,Nameable,Merchant,VillagerDataContainer,EntityLike,UniquelyIdentifiable,ServerWaypoint,Waypoint
public class VillagerEntity
extends MerchantEntity
implements InteractionObserver, VillagerDataContainer
- Mappings:
 Namespace Name named net/minecraft/entity/passive/VillagerEntityintermediary net/minecraft/class_1646official cuf
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTrackerNested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate 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 longprivate booleanprivate static final intprivate static final byteprivate static final intprivate static final intprivate static final intprivate 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.MerchantEntity
field_30599, offersFields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, CAN_PICK_UP_LOOT_KEY, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DROP_CHANCES_KEY, experiencePoints, field_35039, goalSelector, jumpControl, LEFT_HANDED_KEY, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, NO_AI_KEY, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, BRAIN_KEY, dead, DEATH_TICKS, DEATH_TIME_KEY, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_KEY, EQUIPMENT_SLOT_ID, FALL_FLYING_KEY, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.InventoryOwner
INVENTORY_KEYFields inherited from interface net.minecraft.entity.Leashable
DEFAULT_ELASTIC_DISTANCE, DEFAULT_SNAPPING_DISTANCE, ELASTICITY_MULTIPLIER, field_59997, field_59998, field_59999, field_60003, HELD_ENTITY_ATTACHMENT_POINT, LEASH_HOLDER_ATTACHMENT_POINT, LEASH_NBT_KEY, QUAD_LEASH_ATTACHMENT_POINTSFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLDFields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING - 
Constructor Summary
ConstructorsConstructorDescriptionVillagerEntity(EntityType<? extends VillagerEntity> type, World world) VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, RegistryEntry<VillagerType> type) VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, RegistryKey<VillagerType> type)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterUsing(TradeOffer offer) private voidbeginTradeWith(PlayerEntity customer) private booleanbooleancanGather(ServerWorld world, ItemStack stack) booleancanImmediatelyDespawn(double distanceSquared) private booleanbooleanprivate booleanbooleanbooleancanSummonGolem(long time) private voidprivate voidResets the special price of all the trade offers of this villager.private voidprotected voidprotected Brain.Profile<VillagerEntity> createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) static VillagerDataprivate voidprivate voiddepleteFood(int amount) protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic) voidprotected void<T> Tget(ComponentType<? extends T> type) protected @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 voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) interactMob(PlayerEntity player, Hand hand) booleanbooleanprivate voidlevelUp()protected voidloot(ServerWorld world, ItemEntity itemEntity) protected voidmobTick(ServerWorld world) booleanprivate 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) protected voidreadCustomData(ReadView view) voidreadGossipData(VillagerGossips gossips) voidreinitializeBrain(ServerWorld world) private voidvoidprotected voidvoidrestock()private voidprivate voidsayNo()protected voidprivate voidprotected <T> booleansetApplicableComponent(ComponentType<T> type, T value) voidsetAttacker(@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.protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.passive.MerchantEntity
canBeLeashed, canInteract, fillRecipesFromPool, getCustomer, getHeadRollingTimeLeft, getInventory, getLeashPos, getOffers, getStackReference, getTradingSound, getYesSound, hasCustomer, isClient, isLeveledMerchant, onSellingItem, playCelebrateSound, produceParticles, setExperienceFromServer, setHeadRollingTimeLeft, setOffersFromServer, teleportTo, tradeMethods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isBaby, onTrackedDataSet, setBaby, setBreedingAge, tickMovement, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canActVoluntarily, canDispenserEquipSlot, canMobSpawn, cannotDespawn, canPickupItem, canPickUpLoot, canRemoveSaddle, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, createNavigation, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getExperienceToDrop, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, hasSaddleEquipped, initEquipment, initGoals, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInPositionTargetRange, isInPositionTargetRange, isInPositionTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, snapLongLeash, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createEquipment, createLivingAttributes, createTracker, damage, damageArmor, damageEquipment, damageHelmet, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWaypointConfig, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, hasWaypoint, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldRenderName, shouldSwimInFluids, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, travelFlying, travelFlying, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.InventoryOwner
readInventory, writeInventoryMethods inherited from interface net.minecraft.entity.Leashable
applyElasticity, attachLeash, canBeLeashedTo, canUseQuadLeashAttachmentPoint, detachLeash, detachLeashWithoutDrop, getDistanceToCenter, getElasticLeashDistance, getLeashHolder, getLeashOffset, getLeashOffset, getLeashSnappingDistance, getQuadLeashOffsets, isLeashed, mightBeLeashed, onLongLeashTick, readLeashData, setUnresolvedLeashHolderId, writeLeashDataMethods inherited from interface net.minecraft.village.Merchant
sendOffersMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName 
- 
Field Details
- 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/passive/VillagerEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_36335Lnet/minecraft/class_1646;field_36335:Lorg/slf4j/Logger;official cqLcuf;cq:Lorg/slf4j/Logger;
 - 
VILLAGER_DATA
- Mappings:
 Namespace Name Mixin selector named VILLAGER_DATALnet/minecraft/entity/passive/VillagerEntity;VILLAGER_DATA:Lnet/minecraft/entity/data/TrackedData;intermediary field_7445Lnet/minecraft/class_1646;field_7445:Lnet/minecraft/class_2940;official crLcuf;cr:Lalh;
 - 
field_30602
public static final int field_30602- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30602Lnet/minecraft/entity/passive/VillagerEntity;field_30602:Iintermediary field_30602Lnet/minecraft/class_1646;field_30602:Iofficial cmLcuf;cm:I
 - 
ITEM_FOOD_VALUES
- Mappings:
 Namespace Name Mixin selector named ITEM_FOOD_VALUESLnet/minecraft/entity/passive/VillagerEntity;ITEM_FOOD_VALUES:Ljava/util/Map;intermediary field_18526Lnet/minecraft/class_1646;field_18526:Ljava/util/Map;official cnLcuf;cn:Ljava/util/Map;
 - 
field_30604
private static final int field_30604- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30604Lnet/minecraft/entity/passive/VillagerEntity;field_30604:Iintermediary field_30604Lnet/minecraft/class_1646;field_30604:Iofficial csLcuf;cs:I
 - 
field_30605
private static final int field_30605- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30605Lnet/minecraft/entity/passive/VillagerEntity;field_30605:Iintermediary field_30605Lnet/minecraft/class_1646;field_30605:Iofficial ctLcuf;ct:I
 - 
field_30606
private static final int field_30606- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30606Lnet/minecraft/entity/passive/VillagerEntity;field_30606:Iintermediary field_30606Lnet/minecraft/class_1646;field_30606:Iofficial cuLcuf;cu:I
 - 
field_30607
private static final int field_30607- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30607Lnet/minecraft/entity/passive/VillagerEntity;field_30607:Iintermediary field_30607Lnet/minecraft/class_1646;field_30607:Iofficial cvLcuf;cv:I
 - 
field_30609
private static final int field_30609- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30609Lnet/minecraft/entity/passive/VillagerEntity;field_30609:Iintermediary field_30609Lnet/minecraft/class_1646;field_30609:Iofficial cwLcuf;cw:I
 - 
field_30610
private static final int field_30610- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30610Lnet/minecraft/entity/passive/VillagerEntity;field_30610:Iintermediary field_30610Lnet/minecraft/class_1646;field_30610:Iofficial cxLcuf;cx:I
 - 
field_30611
private static final long field_30611- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30611Lnet/minecraft/entity/passive/VillagerEntity;field_30611:Jintermediary field_30611Lnet/minecraft/class_1646;field_30611:Jofficial cyLcuf;cy:J
 - 
field_30603
public static final float field_30603- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_30603Lnet/minecraft/entity/passive/VillagerEntity;field_30603:Fintermediary field_30603Lnet/minecraft/class_1646;field_30603:Fofficial coLcuf;co:F
 - 
field_57709
private static final int field_57709- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_57709Lnet/minecraft/entity/passive/VillagerEntity;field_57709:Iintermediary field_57709Lnet/minecraft/class_1646;field_57709:Iofficial czLcuf;cz:I
 - 
field_57710
private static final byte field_57710- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_57710Lnet/minecraft/entity/passive/VillagerEntity;field_57710:Bintermediary field_57710Lnet/minecraft/class_1646;field_57710:Bofficial cALcuf;cA:B
 - 
field_57711
private static final int field_57711- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_57711Lnet/minecraft/entity/passive/VillagerEntity;field_57711:Iintermediary field_57711Lnet/minecraft/class_1646;field_57711:Iofficial cBLcuf;cB:I
 - 
field_57712
private static final int field_57712- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_57712Lnet/minecraft/entity/passive/VillagerEntity;field_57712:Iintermediary field_57712Lnet/minecraft/class_1646;field_57712:Iofficial cCLcuf;cC:I
 - 
field_57713
private static final int field_57713- See Also:
 - Mappings:
 Namespace Name Mixin selector named field_57713Lnet/minecraft/entity/passive/VillagerEntity;field_57713:Iintermediary field_57713Lnet/minecraft/class_1646;field_57713:Iofficial cDLcuf;cD:I
 - 
DEFAULT_NATURAL
private static final boolean DEFAULT_NATURAL- See Also:
 - Mappings:
 Namespace Name Mixin selector named DEFAULT_NATURALLnet/minecraft/entity/passive/VillagerEntity;DEFAULT_NATURAL:Zintermediary field_57714Lnet/minecraft/class_1646;field_57714:Zofficial cELcuf;cE:Z
 - 
MEMORY_MODULES
- Mappings:
 Namespace Name Mixin selector named MEMORY_MODULESLnet/minecraft/entity/passive/VillagerEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;intermediary field_18538Lnet/minecraft/class_1646;field_18538:Lcom/google/common/collect/ImmutableList;official cULcuf;cU:Lcom/google/common/collect/ImmutableList;
 - 
SENSORS
- Mappings:
 Namespace Name Mixin selector named SENSORSLnet/minecraft/entity/passive/VillagerEntity;SENSORS:Lcom/google/common/collect/ImmutableList;intermediary field_18539Lnet/minecraft/class_1646;field_18539:Lcom/google/common/collect/ImmutableList;official cVLcuf;cV:Lcom/google/common/collect/ImmutableList;
 - 
POINTS_OF_INTEREST
public static final Map<MemoryModuleType<GlobalPos>,BiPredicate<VillagerEntity, POINTS_OF_INTERESTRegistryEntry<PointOfInterestType>>> - Mappings:
 Namespace Name Mixin selector named POINTS_OF_INTERESTLnet/minecraft/entity/passive/VillagerEntity;POINTS_OF_INTEREST:Ljava/util/Map;intermediary field_18851Lnet/minecraft/class_1646;field_18851:Ljava/util/Map;official cpLcuf;cp:Ljava/util/Map;
 - 
levelUpTimer
private int levelUpTimer- Mappings:
 Namespace Name Mixin selector named levelUpTimerLnet/minecraft/entity/passive/VillagerEntity;levelUpTimer:Iintermediary field_18528Lnet/minecraft/class_1646;field_18528:Iofficial cFLcuf;cF:I
 - 
levelingUp
private boolean levelingUp- Mappings:
 Namespace Name Mixin selector named levelingUpLnet/minecraft/entity/passive/VillagerEntity;levelingUp:Zintermediary field_18529Lnet/minecraft/class_1646;field_18529:Zofficial cGLcuf;cG:Z
 - 
lastCustomer
- Mappings:
 Namespace Name Mixin selector named lastCustomerLnet/minecraft/entity/passive/VillagerEntity;lastCustomer:Lnet/minecraft/entity/player/PlayerEntity;intermediary field_18530Lnet/minecraft/class_1646;field_18530:Lnet/minecraft/class_1657;official cHLcuf;cH:Lcut;
 - 
field_30612
private boolean field_30612- Mappings:
 Namespace Name Mixin selector named field_30612Lnet/minecraft/entity/passive/VillagerEntity;field_30612:Zintermediary field_30612Lnet/minecraft/class_1646;field_30612:Zofficial cILcuf;cI:Z
 - 
foodLevel
private int foodLevel- Mappings:
 Namespace Name Mixin selector named foodLevelLnet/minecraft/entity/passive/VillagerEntity;foodLevel:Iintermediary field_18533Lnet/minecraft/class_1646;field_18533:Iofficial cJLcuf;cJ:I
 - 
gossip
- Mappings:
 Namespace Name Mixin selector named gossipLnet/minecraft/entity/passive/VillagerEntity;gossip:Lnet/minecraft/village/VillagerGossips;intermediary field_18534Lnet/minecraft/class_1646;field_18534:Lnet/minecraft/class_4136;official cMLcuf;cM:Lcjk;
 - 
gossipStartTime
private long gossipStartTime- Mappings:
 Namespace Name Mixin selector named gossipStartTimeLnet/minecraft/entity/passive/VillagerEntity;gossipStartTime:Jintermediary field_18535Lnet/minecraft/class_1646;field_18535:Jofficial cNLcuf;cN:J
 - 
lastGossipDecayTime
private long lastGossipDecayTime- Mappings:
 Namespace Name Mixin selector named lastGossipDecayTimeLnet/minecraft/entity/passive/VillagerEntity;lastGossipDecayTime:Jintermediary field_19357Lnet/minecraft/class_1646;field_19357:Jofficial cOLcuf;cO:J
 - 
experience
private int experience- Mappings:
 Namespace Name Mixin selector named experienceLnet/minecraft/entity/passive/VillagerEntity;experience:Iintermediary field_18536Lnet/minecraft/class_1646;field_18536:Iofficial cPLcuf;cP:I
 - 
lastRestockTime
private long lastRestockTime- Mappings:
 Namespace Name Mixin selector named lastRestockTimeLnet/minecraft/entity/passive/VillagerEntity;lastRestockTime:Jintermediary field_18537Lnet/minecraft/class_1646;field_18537:Jofficial cQLcuf;cQ:J
 - 
restocksToday
private int restocksToday- Mappings:
 Namespace Name Mixin selector named restocksTodayLnet/minecraft/entity/passive/VillagerEntity;restocksToday:Iintermediary field_19427Lnet/minecraft/class_1646;field_19427:Iofficial cRLcuf;cR:I
 - 
lastRestockCheckTime
private long lastRestockCheckTime- Mappings:
 Namespace Name Mixin selector named lastRestockCheckTimeLnet/minecraft/entity/passive/VillagerEntity;lastRestockCheckTime:Jintermediary field_20332Lnet/minecraft/class_1646;field_20332:Jofficial cSLcuf;cS:J
 - 
natural
private boolean natural- Mappings:
 Namespace Name Mixin selector named naturalLnet/minecraft/entity/passive/VillagerEntity;natural:Zintermediary field_25167Lnet/minecraft/class_1646;field_25167:Zofficial cTLcuf;cT:Z
 
 - 
 - 
Constructor Details
- 
VillagerEntity
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbzm;<init>(Lbzv;Ldmu;)V
 - 
VillagerEntity
public VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, RegistryKey<VillagerType> type) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/VillagerEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/registry/RegistryKey;)Vintermediary <init>Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_5321;)Vofficial <init>Lcuf;<init>(Lbzv;Ldmu;Lamd;)V
 - 
VillagerEntity
public VillagerEntity(EntityType<? extends VillagerEntity> entityType, World world, RegistryEntry<VillagerType> type) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/VillagerEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary <init>Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_6880;)Vofficial <init>Lcuf;<init>(Lbzv;Ldmu;Ljl;)V
 
 - 
 - 
Method Details
- 
getBrain
- Overrides:
 getBrainin classLivingEntity- Mappings:
 Namespace Name Mixin selector named getBrainLnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18868Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;official ehLcam;eh()Lcbm;
 - 
createBrainProfile
- Overrides:
 createBrainProfilein classLivingEntity- Mappings:
 Namespace Name Mixin selector named createBrainProfileLnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;intermediary method_28306Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;official eiLcam;ei()Lcbm$b;
 - 
deserializeBrain
- Overrides:
 deserializeBrainin classLivingEntity- Mappings:
 Namespace Name Mixin selector named deserializeBrainLnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18867Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;official aLcam;a(Lcom/mojang/serialization/Dynamic;)Lcbm;
 - 
reinitializeBrain
- Mappings:
 Namespace Name Mixin selector named reinitializeBrainLnet/minecraft/entity/passive/VillagerEntity;reinitializeBrain(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_19179Lnet/minecraft/class_1646;method_19179(Lnet/minecraft/class_3218;)Vofficial gLcuf;g(Laub;)V
 - 
initBrain
- Mappings:
 Namespace Name Mixin selector named initBrainLnet/minecraft/entity/passive/VillagerEntity;initBrain(Lnet/minecraft/entity/ai/brain/Brain;)Vintermediary method_19174Lnet/minecraft/class_1646;method_19174(Lnet/minecraft/class_4095;)Vofficial aLcuf;a(Lcbm;)V
 - 
onGrowUp
protected void onGrowUp()- Overrides:
 onGrowUpin classPassiveEntity- Mappings:
 Namespace Name Mixin selector named onGrowUpLnet/minecraft/entity/passive/PassiveEntity;onGrowUp()Vintermediary method_5619Lnet/minecraft/class_1296;method_5619()Vofficial hLbzc;h()V
 - 
createVillagerAttributes
- Mappings:
 Namespace Name Mixin selector named createVillagerAttributesLnet/minecraft/entity/passive/VillagerEntity;createVillagerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26955Lnet/minecraft/class_1646;method_26955()Lnet/minecraft/class_5132$class_5133;official gQLcuf;gQ()Lcbr$a;
 - 
isNatural
public boolean isNatural()- Mappings:
 Namespace Name Mixin selector named isNaturalLnet/minecraft/entity/passive/VillagerEntity;isNatural()Zintermediary method_29279Lnet/minecraft/class_1646;method_29279()Zofficial gSLcuf;gS()Z
 - 
mobTick
 - 
tick
public void tick()Ticks this entity.- Overrides:
 tickin classMobEntity- See Also:
 - API Note:
 - This can be overridden to add additional logics. 
super.tick();should be called in those cases. - Implementation Note:
 - By default, this delegates all logics to 
MobEntity.baseTick(). - Mappings:
 Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLbzm;g()V
 - 
interactMob
- Overrides:
 interactMobin classMobEntity- Mappings:
 Namespace Name Mixin selector named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official bLcao;b(Lcut;Lbxi;)Lbxj;
 - 
sayNo
private void sayNo()- Mappings:
 Namespace Name Mixin selector named sayNoLnet/minecraft/entity/passive/VillagerEntity;sayNo()Vintermediary method_20264Lnet/minecraft/class_1646;method_20264()Vofficial hdLcuf;hd()V
 - 
beginTradeWith
- Mappings:
 Namespace Name Mixin selector named beginTradeWithLnet/minecraft/entity/passive/VillagerEntity;beginTradeWith(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_19191Lnet/minecraft/class_1646;method_19191(Lnet/minecraft/class_1657;)Vofficial jLcuf;j(Lcut;)V
 - 
setCustomer
- Specified by:
 setCustomerin interfaceMerchant- Overrides:
 setCustomerin classMerchantEntity- Mappings:
 Namespace Name Mixin selector named setCustomerLnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_8259Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)Vofficial gLdlp;g(Lcut;)V
 - 
resetCustomer
protected void resetCustomer()- Overrides:
 resetCustomerin classMerchantEntity- Mappings:
 Namespace Name Mixin selector named resetCustomerLnet/minecraft/entity/passive/MerchantEntity;resetCustomer()Vintermediary method_19181Lnet/minecraft/class_3988;method_19181()Vofficial gNLcua;gN()V
 - 
clearSpecialPrices
private void clearSpecialPrices()Resets the special price of all the trade offers of this villager.- Mappings:
 Namespace Name Mixin selector named clearSpecialPricesLnet/minecraft/entity/passive/VillagerEntity;clearSpecialPrices()Vintermediary method_19187Lnet/minecraft/class_1646;method_19187()Vofficial heLcuf;he()V
 - 
canRefreshTrades
public boolean canRefreshTrades()- Specified by:
 canRefreshTradesin interfaceMerchant- Mappings:
 Namespace Name Mixin selector named canRefreshTradesLnet/minecraft/village/Merchant;canRefreshTrades()Zintermediary method_20708Lnet/minecraft/class_1915;method_20708()Zofficial gTLdlp;gT()Z
 - 
restock
public void restock()- Mappings:
 Namespace Name Mixin selector named restockLnet/minecraft/entity/passive/VillagerEntity;restock()Vintermediary method_19182Lnet/minecraft/class_1646;method_19182()Vofficial gULcuf;gU()V
 - 
sendOffersToCustomer
private void sendOffersToCustomer()- Mappings:
 Namespace Name Mixin selector named sendOffersToCustomerLnet/minecraft/entity/passive/VillagerEntity;sendOffersToCustomer()Vintermediary method_49695Lnet/minecraft/class_1646;method_49695()Vofficial hfLcuf;hf()V
 - 
needsRestock
private 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 named needsRestockLnet/minecraft/entity/passive/VillagerEntity;needsRestock()Zintermediary method_20823Lnet/minecraft/class_1646;method_20823()Zofficial hgLcuf;hg()Z
 - 
canRestock
private boolean canRestock()- Mappings:
 Namespace Name Mixin selector named canRestockLnet/minecraft/entity/passive/VillagerEntity;canRestock()Zintermediary method_20824Lnet/minecraft/class_1646;method_20824()Zofficial hhLcuf;hh()Z
 - 
shouldRestock
public boolean shouldRestock()- Mappings:
 Namespace Name Mixin selector named shouldRestockLnet/minecraft/entity/passive/VillagerEntity;shouldRestock()Zintermediary method_20822Lnet/minecraft/class_1646;method_20822()Zofficial gVLcuf;gV()Z
 - 
restockAndUpdateDemandBonus
private void restockAndUpdateDemandBonus()- Mappings:
 Namespace Name Mixin selector named restockAndUpdateDemandBonusLnet/minecraft/entity/passive/VillagerEntity;restockAndUpdateDemandBonus()Vintermediary method_21723Lnet/minecraft/class_1646;method_21723()Vofficial hiLcuf;hi()V
 - 
updateDemandBonus
private void updateDemandBonus()Updates the demand bonus of all the trade offers of this villager.- Mappings:
 Namespace Name Mixin selector named updateDemandBonusLnet/minecraft/entity/passive/VillagerEntity;updateDemandBonus()Vintermediary method_21724Lnet/minecraft/class_1646;method_21724()Vofficial hjLcuf;hj()V
 - 
prepareOffersFor
- Mappings:
 Namespace Name Mixin selector named prepareOffersForLnet/minecraft/entity/passive/VillagerEntity;prepareOffersFor(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_19192Lnet/minecraft/class_1646;method_19192(Lnet/minecraft/class_1657;)Vofficial kLcuf;k(Lcut;)V
 - 
initDataTracker
Initializes data tracker.- Overrides:
 initDataTrackerin classMerchantEntity- API Note:
 - Subclasses should override this and add to the builder any data that needs to be tracked.
 - Mappings:
 Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbzm;a(Lall$a;)V
 - 
createVillagerData
- Mappings:
 Namespace Name Mixin selector named createVillagerDataLnet/minecraft/entity/passive/VillagerEntity;createVillagerData()Lnet/minecraft/village/VillagerData;intermediary method_67359Lnet/minecraft/class_1646;method_67359()Lnet/minecraft/class_3850;official gWLcuf;gW()Lcug;
 - 
writeCustomData
- Overrides:
 writeCustomDatain classMerchantEntity- Mappings:
 Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLbzm;a(Lfdc;)V
 - 
readCustomData
- Overrides:
 readCustomDatain classMerchantEntity- Mappings:
 Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLbzm;a(Lfda;)V
 - 
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
 canImmediatelyDespawnin classMobEntity- Mappings:
 Namespace Name Mixin selector named canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Zofficial hLcao;h(D)Z
 - 
getAmbientSound
- Overrides:
 getAmbientSoundin classMobEntity- Mappings:
 Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official pLcao;p()Layy;
 - 
getHurtSound
- Overrides:
 getHurtSoundin classLivingEntity- Mappings:
 Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official eLcam;e(Lbyb;)Layy;
 - 
getDeathSound
- Overrides:
 getDeathSoundin classLivingEntity- Mappings:
 Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official f_Lcam;f_()Layy;
 - 
playWorkSound
public void playWorkSound()- Mappings:
 Namespace Name Mixin selector named playWorkSoundLnet/minecraft/entity/passive/VillagerEntity;playWorkSound()Vintermediary method_19183Lnet/minecraft/class_1646;method_19183()Vofficial gXLcuf;gX()V
 - 
setVillagerData
- Specified by:
 setVillagerDatain interfaceVillagerDataContainer- Mappings:
 Namespace Name Mixin selector named setVillagerDataLnet/minecraft/village/VillagerDataContainer;setVillagerData(Lnet/minecraft/village/VillagerData;)Vintermediary method_7195Lnet/minecraft/class_3851;method_7195(Lnet/minecraft/class_3850;)Vofficial aLcuh;a(Lcug;)V
 - 
getVillagerData
- Specified by:
 getVillagerDatain interfaceVillagerDataContainer- Mappings:
 Namespace Name Mixin selector named getVillagerDataLnet/minecraft/village/VillagerDataContainer;getVillagerData()Lnet/minecraft/village/VillagerData;intermediary method_7231Lnet/minecraft/class_3851;method_7231()Lnet/minecraft/class_3850;official gRLcuh;gR()Lcug;
 - 
afterUsing
- Specified by:
 afterUsingin classMerchantEntity- Mappings:
 Namespace Name Mixin selector named afterUsingLnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)Vintermediary method_18008Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)Vofficial bLcua;b(Ldlq;)V
 - 
setAttacker
- Overrides:
 setAttackerin classLivingEntity- Mappings:
 Namespace Name Mixin selector named setAttackerLnet/minecraft/entity/LivingEntity;setAttacker(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_6015Lnet/minecraft/class_1309;method_6015(Lnet/minecraft/class_1309;)Vofficial aLcam;a(Lcam;)V
 - 
onDeath
- Overrides:
 onDeathin classMerchantEntity- Mappings:
 Namespace Name Mixin selector named onDeathLnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6078Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)Vofficial aLcam;a(Lbyb;)V
 - 
releaseAllTickets
private void releaseAllTickets()- Mappings:
 Namespace Name Mixin selector named releaseAllTicketsLnet/minecraft/entity/passive/VillagerEntity;releaseAllTickets()Vintermediary method_30958Lnet/minecraft/class_1646;method_30958()Vofficial hkLcuf;hk()V
 - 
notifyDeath
- Mappings:
 Namespace Name Mixin selector named notifyDeathLnet/minecraft/entity/passive/VillagerEntity;notifyDeath(Lnet/minecraft/entity/Entity;)Vintermediary method_20690Lnet/minecraft/class_1646;method_20690(Lnet/minecraft/class_1297;)Vofficial GLcuf;G(Lbzm;)V
 - 
releaseTicketFor
- Mappings:
 Namespace Name Mixin selector named releaseTicketForLnet/minecraft/entity/passive/VillagerEntity;releaseTicketFor(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Vintermediary method_19176Lnet/minecraft/class_1646;method_19176(Lnet/minecraft/class_4140;)Vofficial aLcuf;a(Lcjo;)V
 - 
isReadyToBreed
public boolean isReadyToBreed()- Overrides:
 isReadyToBreedin classPassiveEntity- Mappings:
 Namespace Name Mixin selector named isReadyToBreedLnet/minecraft/entity/passive/PassiveEntity;isReadyToBreed()Zintermediary method_19184Lnet/minecraft/class_1296;method_19184()Zofficial Y_Lbzc;Y_()Z
 - 
canEatFood
private boolean canEatFood()- Mappings:
 Namespace Name Mixin selector named canEatFoodLnet/minecraft/entity/passive/VillagerEntity;canEatFood()Zintermediary method_20698Lnet/minecraft/class_1646;method_20698()Zofficial hlLcuf;hl()Z
 - 
consumeAvailableFood
private void consumeAvailableFood()- Mappings:
 Namespace Name Mixin selector named consumeAvailableFoodLnet/minecraft/entity/passive/VillagerEntity;consumeAvailableFood()Vintermediary method_19185Lnet/minecraft/class_1646;method_19185()Vofficial hmLcuf;hm()V
 - 
getReputation
- Mappings:
 Namespace Name Mixin selector named getReputationLnet/minecraft/entity/passive/VillagerEntity;getReputation(Lnet/minecraft/entity/player/PlayerEntity;)Iintermediary method_20594Lnet/minecraft/class_1646;method_20594(Lnet/minecraft/class_1657;)Iofficial iLcuf;i(Lcut;)I
 - 
depleteFood
private void depleteFood(int amount) - Mappings:
 Namespace Name Mixin selector named depleteFoodLnet/minecraft/entity/passive/VillagerEntity;depleteFood(I)Vintermediary method_19193Lnet/minecraft/class_1646;method_19193(I)Vofficial uLcuf;u(I)V
 - 
eatForBreeding
public void eatForBreeding()- Mappings:
 Namespace Name Mixin selector named eatForBreedingLnet/minecraft/entity/passive/VillagerEntity;eatForBreeding()Vintermediary method_20697Lnet/minecraft/class_1646;method_20697()Vofficial gYLcuf;gY()V
 - 
setOffers
- Mappings:
 Namespace Name Mixin selector named setOffersLnet/minecraft/entity/passive/VillagerEntity;setOffers(Lnet/minecraft/village/TradeOfferList;)Vintermediary method_16917Lnet/minecraft/class_1646;method_16917(Lnet/minecraft/class_1916;)Vofficial bLcuf;b(Ldlr;)V
 - 
canLevelUp
private boolean canLevelUp()- Mappings:
 Namespace Name Mixin selector named canLevelUpLnet/minecraft/entity/passive/VillagerEntity;canLevelUp()Zintermediary method_19188Lnet/minecraft/class_1646;method_19188()Zofficial hnLcuf;hn()Z
 - 
levelUp
private void levelUp()- Mappings:
 Namespace Name Mixin selector named levelUpLnet/minecraft/entity/passive/VillagerEntity;levelUp()Vintermediary method_16918Lnet/minecraft/class_1646;method_16918()Vofficial hoLcuf;ho()V
 - 
getDefaultName
Returns the default name of the entity.- Overrides:
 getDefaultNamein classEntity- Returns:
 - the default name of the entity
 - See Also:
 - Mappings:
 Namespace Name Mixin selector named getDefaultNameLnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;intermediary method_23315Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;official cDLbzm;cD()Lxo;
 - 
handleStatus
public 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 classMobEntity- See Also:
 - API Note:
 - To send an entity status, use 
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
 Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLbzm;b(B)V
 - 
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
 initializein classMerchantEntity- Mappings:
 Namespace Name Mixin selector named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;official aLcao;a(Ldnl;Lbxh;Lbzu;Lcbe;)Lcbe;
 - 
createChild
@Nullable public @Nullable VillagerEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
 createChildin classPassiveEntity- Mappings:
 Namespace Name Mixin selector named createChildLnet/minecraft/entity/passive/VillagerEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/VillagerEntity;intermediary method_7225Lnet/minecraft/class_1646;method_7225(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1646;official bLcuf;b(Laub;Lbzc;)Lcuf;
 - 
onStruckByLightning
Called 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 classEntity- Mappings:
 Namespace Name Mixin selector named onStruckByLightningLnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)Vintermediary method_5800Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)Vofficial aLbzm;a(Laub;Lcal;)V
 - 
loot
- Overrides:
 lootin classMobEntity- Mappings:
 Namespace Name Mixin selector named lootLnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)Vintermediary method_5949Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)Vofficial aLcao;a(Laub;Lcqz;)V
 - 
canGather
- Overrides:
 canGatherin classMobEntity- Mappings:
 Namespace Name Mixin selector named canGatherLnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Zintermediary method_20820Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Zofficial cLcao;c(Laub;Ldcv;)Z
 - 
needsFoodForBreeding
public boolean needsFoodForBreeding()- Mappings:
 Namespace Name Mixin selector named needsFoodForBreedingLnet/minecraft/entity/passive/VillagerEntity;needsFoodForBreeding()Zintermediary method_7239Lnet/minecraft/class_1646;method_7239()Zofficial haLcuf;ha()Z
 - 
getAvailableFood
private int getAvailableFood()- Mappings:
 Namespace Name Mixin selector named getAvailableFoodLnet/minecraft/entity/passive/VillagerEntity;getAvailableFood()Iintermediary method_19189Lnet/minecraft/class_1646;method_19189()Iofficial hpLcuf;hp()I
 - 
hasSeedToPlant
public boolean hasSeedToPlant()- Mappings:
 Namespace Name Mixin selector named hasSeedToPlantLnet/minecraft/entity/passive/VillagerEntity;hasSeedToPlant()Zintermediary method_19623Lnet/minecraft/class_1646;method_19623()Zofficial hbLcuf;hb()Z
 - 
fillRecipes
protected void fillRecipes()- Specified by:
 fillRecipesin classMerchantEntity- Mappings:
 Namespace Name Mixin selector named fillRecipesLnet/minecraft/entity/passive/MerchantEntity;fillRecipes()Vintermediary method_7237Lnet/minecraft/class_3988;method_7237()Vofficial gOLcua;gO()V
 - 
talkWithVillager
- Mappings:
 Namespace Name Mixin selector named talkWithVillagerLnet/minecraft/entity/passive/VillagerEntity;talkWithVillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Vintermediary method_19177Lnet/minecraft/class_1646;method_19177(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vofficial aLcuf;a(Laub;Lcuf;J)V
 - 
decayGossip
private void decayGossip()- Mappings:
 Namespace Name Mixin selector named decayGossipLnet/minecraft/entity/passive/VillagerEntity;decayGossip()Vintermediary method_20696Lnet/minecraft/class_1646;method_20696()Vofficial hqLcuf;hq()V
 - 
summonGolem
- Mappings:
 Namespace Name Mixin selector named summonGolemLnet/minecraft/entity/passive/VillagerEntity;summonGolem(Lnet/minecraft/server/world/ServerWorld;JI)Vintermediary method_20688Lnet/minecraft/class_1646;method_20688(Lnet/minecraft/class_3218;JI)Vofficial aLcuf;a(Laub;JI)V
 - 
canSummonGolem
public boolean canSummonGolem(long time) - Mappings:
 Namespace Name Mixin selector named canSummonGolemLnet/minecraft/entity/passive/VillagerEntity;canSummonGolem(J)Zintermediary method_20687Lnet/minecraft/class_1646;method_20687(J)Zofficial aLcuf;a(J)Z
 - 
onInteractionWith
- Specified by:
 onInteractionWithin interfaceInteractionObserver- Mappings:
 Namespace Name Mixin selector named onInteractionWithLnet/minecraft/entity/InteractionObserver;onInteractionWith(Lnet/minecraft/entity/EntityInteraction;Lnet/minecraft/entity/Entity;)Vintermediary method_18870Lnet/minecraft/class_4094;method_18870(Lnet/minecraft/class_4151;Lnet/minecraft/class_1297;)Vofficial aLcbb;a(Lclm;Lbzm;)V
 - 
getExperience
public int getExperience()- Specified by:
 getExperiencein interfaceMerchant- Overrides:
 getExperiencein classMerchantEntity- Mappings:
 Namespace Name Mixin selector named getExperienceLnet/minecraft/village/Merchant;getExperience()Iintermediary method_19269Lnet/minecraft/class_1915;method_19269()Iofficial tLdlp;t()I
 - 
setExperience
public void setExperience(int experience) - Mappings:
 Namespace Name Mixin selector named setExperienceLnet/minecraft/entity/passive/VillagerEntity;setExperience(I)Vintermediary method_19625Lnet/minecraft/class_1646;method_19625(I)Vofficial tLcuf;t(I)V
 - 
clearDailyRestockCount
private void clearDailyRestockCount()- Mappings:
 Namespace Name Mixin selector named clearDailyRestockCountLnet/minecraft/entity/passive/VillagerEntity;clearDailyRestockCount()Vintermediary method_20821Lnet/minecraft/class_1646;method_20821()Vofficial hrLcuf;hr()V
 - 
getGossip
- Mappings:
 Namespace Name Mixin selector named getGossipLnet/minecraft/entity/passive/VillagerEntity;getGossip()Lnet/minecraft/village/VillagerGossips;intermediary method_21651Lnet/minecraft/class_1646;method_21651()Lnet/minecraft/class_4136;official hcLcuf;hc()Lcjk;
 - 
readGossipData
- Mappings:
 Namespace Name Mixin selector named readGossipDataLnet/minecraft/entity/passive/VillagerEntity;readGossipData(Lnet/minecraft/village/VillagerGossips;)Vintermediary method_21650Lnet/minecraft/class_1646;method_21650(Lnet/minecraft/class_4136;)Vofficial aLcuf;a(Lcjk;)V
 - 
sendAiDebugData
protected void sendAiDebugData()- Overrides:
 sendAiDebugDatain classMobEntity- Mappings:
 Namespace Name Mixin selector named sendAiDebugDataLnet/minecraft/entity/mob/MobEntity;sendAiDebugData()Vintermediary method_18409Lnet/minecraft/class_1308;method_18409()Vofficial ahLcao;ah()V
 - 
sleep
- Overrides:
 sleepin classLivingEntity- Mappings:
 Namespace Name Mixin selector named sleepLnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_18403Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)Vofficial bLcam;b(Ljb;)V
 - 
wakeUp
public void wakeUp()Wakes this entity up.- Overrides:
 wakeUpin classLivingEntity- See Also:
 - Mappings:
 Namespace Name Mixin selector named wakeUpLnet/minecraft/entity/LivingEntity;wakeUp()Vintermediary method_18400Lnet/minecraft/class_1309;method_18400()Vofficial fZLcam;fZ()V
 - 
hasRecentlySlept
private boolean hasRecentlySlept(long worldTime) - Mappings:
 Namespace Name Mixin selector named hasRecentlySleptLnet/minecraft/entity/passive/VillagerEntity;hasRecentlySlept(J)Zintermediary method_20741Lnet/minecraft/class_1646;method_20741(J)Zofficial bLcuf;b(J)Z
 - 
get
- Specified by:
 getin interfaceComponentsAccess- Overrides:
 getin classEntity- Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_58694Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkl;a(Lkp;)Ljava/lang/Object;
 - 
copyComponentsFrom
- Overrides:
 copyComponentsFromin classEntity- Mappings:
 Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_66649Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)Vofficial aLbzm;a(Lkl;)V
 - 
setApplicableComponent
- Overrides:
 setApplicableComponentin classEntity- Mappings:
 Namespace Name Mixin selector named setApplicableComponentLnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Zintermediary method_66654Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Zofficial bLbzm;b(Lkp;Ljava/lang/Object;)Z
 
 -