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/VillagerEntity
intermediary net/minecraft/class_1646
official cuf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashData
Nested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTracker
Nested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private int
static final int
static final float
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final long
private boolean
private static final int
private static final byte
private static final int
private static final int
private static final int
private int
private final VillagerGossips
private long
private @Nullable PlayerEntity
private long
private long
private long
private boolean
private int
private static final Logger
private static final ImmutableList
<MemoryModuleType<?>> private boolean
static final Map
<MemoryModuleType<GlobalPos>, BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> private int
private static final ImmutableList
<SensorType<? extends Sensor<? super VillagerEntity>>> private static final TrackedData
<VillagerData> Fields inherited from class net.minecraft.entity.passive.MerchantEntity
field_30599, offers
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields 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, targetSelector
Fields 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_FLAG
Fields 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, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.InventoryOwner
INVENTORY_KEY
Fields 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_POINTS
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
Fields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLD
Fields 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 void
afterUsing
(TradeOffer offer) private void
beginTradeWith
(PlayerEntity customer) private boolean
boolean
canGather
(ServerWorld world, ItemStack stack) boolean
canImmediatelyDespawn
(double distanceSquared) private boolean
boolean
private boolean
boolean
boolean
canSummonGolem
(long time) private void
private void
Resets the special price of all the trade offers of this villager.private void
protected void
protected Brain.Profile
<VillagerEntity> createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) static VillagerData
private void
private void
depleteFood
(int amount) protected Brain
<?> deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) void
protected void
<T> T
get
(ComponentType<? extends T> type) protected @Nullable SoundEvent
private int
getBrain()
protected SoundEvent
protected Text
Returns the default name of the entity.int
protected SoundEvent
getHurtSound
(DamageSource source) int
getReputation
(PlayerEntity player) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.private boolean
hasRecentlySlept
(long worldTime) boolean
private void
initBrain
(Brain<VillagerEntity> brain) protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) interactMob
(PlayerEntity player, Hand hand) boolean
boolean
private void
levelUp()
protected void
loot
(ServerWorld world, ItemEntity itemEntity) protected void
mobTick
(ServerWorld world) boolean
private boolean
Returns whether this villager needs restock.private void
notifyDeath
(Entity killer) void
onDeath
(DamageSource damageSource) protected void
onGrowUp()
void
onInteractionWith
(EntityInteraction interaction, Entity entity) void
onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.void
private void
prepareOffersFor
(PlayerEntity player) protected void
readCustomData
(ReadView view) void
readGossipData
(VillagerGossips gossips) void
reinitializeBrain
(ServerWorld world) private void
void
protected void
void
restock()
private void
private void
sayNo()
protected void
private void
protected <T> boolean
setApplicableComponent
(ComponentType<T> type, T value) void
setAttacker
(@Nullable LivingEntity attacker) void
setCustomer
(@Nullable PlayerEntity customer) void
setExperience
(int experience) void
setOffers
(TradeOfferList offers) void
setVillagerData
(VillagerData villagerData) boolean
void
void
summonGolem
(ServerWorld world, long time, int requiredCount) void
talkWithVillager
(ServerWorld world, VillagerEntity villager, long time) void
tick()
Ticks this entity.private void
Updates the demand bonus of all the trade offers of this villager.void
wakeUp()
Wakes this entity up.protected void
writeCustomData
(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, trade
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isBaby, onTrackedDataSet, setBaby, setBreedingAge, tickMovement, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods 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, updateGoalControls
Methods 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, wouldNotSuffocateInPose
Methods 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, writeData
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.InventoryOwner
readInventory, writeInventory
Methods 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, writeLeashData
Methods inherited from interface net.minecraft.village.Merchant
sendOffers
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/passive/VillagerEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_36335
Lnet/minecraft/class_1646;field_36335:Lorg/slf4j/Logger;
official cq
Lcuf;cq:Lorg/slf4j/Logger;
-
VILLAGER_DATA
- Mappings:
Namespace Name Mixin selector named VILLAGER_DATA
Lnet/minecraft/entity/passive/VillagerEntity;VILLAGER_DATA:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7445
Lnet/minecraft/class_1646;field_7445:Lnet/minecraft/class_2940;
official cr
Lcuf;cr:Lalh;
-
field_30602
public static final int field_30602- See Also:
- Mappings:
Namespace Name Mixin selector named field_30602
Lnet/minecraft/entity/passive/VillagerEntity;field_30602:I
intermediary field_30602
Lnet/minecraft/class_1646;field_30602:I
official cm
Lcuf;cm:I
-
ITEM_FOOD_VALUES
- Mappings:
Namespace Name Mixin selector named ITEM_FOOD_VALUES
Lnet/minecraft/entity/passive/VillagerEntity;ITEM_FOOD_VALUES:Ljava/util/Map;
intermediary field_18526
Lnet/minecraft/class_1646;field_18526:Ljava/util/Map;
official cn
Lcuf;cn:Ljava/util/Map;
-
field_30604
private static final int field_30604- See Also:
- Mappings:
Namespace Name Mixin selector named field_30604
Lnet/minecraft/entity/passive/VillagerEntity;field_30604:I
intermediary field_30604
Lnet/minecraft/class_1646;field_30604:I
official cs
Lcuf;cs:I
-
field_30605
private static final int field_30605- See Also:
- Mappings:
Namespace Name Mixin selector named field_30605
Lnet/minecraft/entity/passive/VillagerEntity;field_30605:I
intermediary field_30605
Lnet/minecraft/class_1646;field_30605:I
official ct
Lcuf;ct:I
-
field_30606
private static final int field_30606- See Also:
- Mappings:
Namespace Name Mixin selector named field_30606
Lnet/minecraft/entity/passive/VillagerEntity;field_30606:I
intermediary field_30606
Lnet/minecraft/class_1646;field_30606:I
official cu
Lcuf;cu:I
-
field_30607
private static final int field_30607- See Also:
- Mappings:
Namespace Name Mixin selector named field_30607
Lnet/minecraft/entity/passive/VillagerEntity;field_30607:I
intermediary field_30607
Lnet/minecraft/class_1646;field_30607:I
official cv
Lcuf;cv:I
-
field_30609
private static final int field_30609- See Also:
- Mappings:
Namespace Name Mixin selector named field_30609
Lnet/minecraft/entity/passive/VillagerEntity;field_30609:I
intermediary field_30609
Lnet/minecraft/class_1646;field_30609:I
official cw
Lcuf;cw:I
-
field_30610
private static final int field_30610- See Also:
- Mappings:
Namespace Name Mixin selector named field_30610
Lnet/minecraft/entity/passive/VillagerEntity;field_30610:I
intermediary field_30610
Lnet/minecraft/class_1646;field_30610:I
official cx
Lcuf;cx:I
-
field_30611
private static final long field_30611- See Also:
- Mappings:
Namespace Name Mixin selector named field_30611
Lnet/minecraft/entity/passive/VillagerEntity;field_30611:J
intermediary field_30611
Lnet/minecraft/class_1646;field_30611:J
official cy
Lcuf;cy:J
-
field_30603
public static final float field_30603- See Also:
- Mappings:
Namespace Name Mixin selector named field_30603
Lnet/minecraft/entity/passive/VillagerEntity;field_30603:F
intermediary field_30603
Lnet/minecraft/class_1646;field_30603:F
official co
Lcuf;co:F
-
field_57709
private static final int field_57709- See Also:
- Mappings:
Namespace Name Mixin selector named field_57709
Lnet/minecraft/entity/passive/VillagerEntity;field_57709:I
intermediary field_57709
Lnet/minecraft/class_1646;field_57709:I
official cz
Lcuf;cz:I
-
field_57710
private static final byte field_57710- See Also:
- Mappings:
Namespace Name Mixin selector named field_57710
Lnet/minecraft/entity/passive/VillagerEntity;field_57710:B
intermediary field_57710
Lnet/minecraft/class_1646;field_57710:B
official cA
Lcuf;cA:B
-
field_57711
private static final int field_57711- See Also:
- Mappings:
Namespace Name Mixin selector named field_57711
Lnet/minecraft/entity/passive/VillagerEntity;field_57711:I
intermediary field_57711
Lnet/minecraft/class_1646;field_57711:I
official cB
Lcuf;cB:I
-
field_57712
private static final int field_57712- See Also:
- Mappings:
Namespace Name Mixin selector named field_57712
Lnet/minecraft/entity/passive/VillagerEntity;field_57712:I
intermediary field_57712
Lnet/minecraft/class_1646;field_57712:I
official cC
Lcuf;cC:I
-
field_57713
private static final int field_57713- See Also:
- Mappings:
Namespace Name Mixin selector named field_57713
Lnet/minecraft/entity/passive/VillagerEntity;field_57713:I
intermediary field_57713
Lnet/minecraft/class_1646;field_57713:I
official cD
Lcuf;cD:I
-
DEFAULT_NATURAL
private static final boolean DEFAULT_NATURAL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NATURAL
Lnet/minecraft/entity/passive/VillagerEntity;DEFAULT_NATURAL:Z
intermediary field_57714
Lnet/minecraft/class_1646;field_57714:Z
official cE
Lcuf;cE:Z
-
MEMORY_MODULES
- Mappings:
Namespace Name Mixin selector named MEMORY_MODULES
Lnet/minecraft/entity/passive/VillagerEntity;MEMORY_MODULES:Lcom/google/common/collect/ImmutableList;
intermediary field_18538
Lnet/minecraft/class_1646;field_18538:Lcom/google/common/collect/ImmutableList;
official cU
Lcuf;cU:Lcom/google/common/collect/ImmutableList;
-
SENSORS
- Mappings:
Namespace Name Mixin selector named SENSORS
Lnet/minecraft/entity/passive/VillagerEntity;SENSORS:Lcom/google/common/collect/ImmutableList;
intermediary field_18539
Lnet/minecraft/class_1646;field_18539:Lcom/google/common/collect/ImmutableList;
official cV
Lcuf;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_INTEREST
Lnet/minecraft/entity/passive/VillagerEntity;POINTS_OF_INTEREST:Ljava/util/Map;
intermediary field_18851
Lnet/minecraft/class_1646;field_18851:Ljava/util/Map;
official cp
Lcuf;cp:Ljava/util/Map;
-
levelUpTimer
private int levelUpTimer- Mappings:
Namespace Name Mixin selector named levelUpTimer
Lnet/minecraft/entity/passive/VillagerEntity;levelUpTimer:I
intermediary field_18528
Lnet/minecraft/class_1646;field_18528:I
official cF
Lcuf;cF:I
-
levelingUp
private boolean levelingUp- Mappings:
Namespace Name Mixin selector named levelingUp
Lnet/minecraft/entity/passive/VillagerEntity;levelingUp:Z
intermediary field_18529
Lnet/minecraft/class_1646;field_18529:Z
official cG
Lcuf;cG:Z
-
lastCustomer
- Mappings:
Namespace Name Mixin selector named lastCustomer
Lnet/minecraft/entity/passive/VillagerEntity;lastCustomer:Lnet/minecraft/entity/player/PlayerEntity;
intermediary field_18530
Lnet/minecraft/class_1646;field_18530:Lnet/minecraft/class_1657;
official cH
Lcuf;cH:Lcut;
-
field_30612
private boolean field_30612- Mappings:
Namespace Name Mixin selector named field_30612
Lnet/minecraft/entity/passive/VillagerEntity;field_30612:Z
intermediary field_30612
Lnet/minecraft/class_1646;field_30612:Z
official cI
Lcuf;cI:Z
-
foodLevel
private int foodLevel- Mappings:
Namespace Name Mixin selector named foodLevel
Lnet/minecraft/entity/passive/VillagerEntity;foodLevel:I
intermediary field_18533
Lnet/minecraft/class_1646;field_18533:I
official cJ
Lcuf;cJ:I
-
gossip
- Mappings:
Namespace Name Mixin selector named gossip
Lnet/minecraft/entity/passive/VillagerEntity;gossip:Lnet/minecraft/village/VillagerGossips;
intermediary field_18534
Lnet/minecraft/class_1646;field_18534:Lnet/minecraft/class_4136;
official cM
Lcuf;cM:Lcjk;
-
gossipStartTime
private long gossipStartTime- Mappings:
Namespace Name Mixin selector named gossipStartTime
Lnet/minecraft/entity/passive/VillagerEntity;gossipStartTime:J
intermediary field_18535
Lnet/minecraft/class_1646;field_18535:J
official cN
Lcuf;cN:J
-
lastGossipDecayTime
private long lastGossipDecayTime- Mappings:
Namespace Name Mixin selector named lastGossipDecayTime
Lnet/minecraft/entity/passive/VillagerEntity;lastGossipDecayTime:J
intermediary field_19357
Lnet/minecraft/class_1646;field_19357:J
official cO
Lcuf;cO:J
-
experience
private int experience- Mappings:
Namespace Name Mixin selector named experience
Lnet/minecraft/entity/passive/VillagerEntity;experience:I
intermediary field_18536
Lnet/minecraft/class_1646;field_18536:I
official cP
Lcuf;cP:I
-
lastRestockTime
private long lastRestockTime- Mappings:
Namespace Name Mixin selector named lastRestockTime
Lnet/minecraft/entity/passive/VillagerEntity;lastRestockTime:J
intermediary field_18537
Lnet/minecraft/class_1646;field_18537:J
official cQ
Lcuf;cQ:J
-
restocksToday
private int restocksToday- Mappings:
Namespace Name Mixin selector named restocksToday
Lnet/minecraft/entity/passive/VillagerEntity;restocksToday:I
intermediary field_19427
Lnet/minecraft/class_1646;field_19427:I
official cR
Lcuf;cR:I
-
lastRestockCheckTime
private long lastRestockCheckTime- Mappings:
Namespace Name Mixin selector named lastRestockCheckTime
Lnet/minecraft/entity/passive/VillagerEntity;lastRestockCheckTime:J
intermediary field_20332
Lnet/minecraft/class_1646;field_20332:J
official cS
Lcuf;cS:J
-
natural
private boolean natural- Mappings:
Namespace Name Mixin selector named natural
Lnet/minecraft/entity/passive/VillagerEntity;natural:Z
intermediary field_25167
Lnet/minecraft/class_1646;field_25167:Z
official cT
Lcuf;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;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <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;)V
intermediary <init>
Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_5321;)V
official <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;)V
intermediary <init>
Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_6880;)V
official <init>
Lcuf;<init>(Lbzv;Ldmu;Ljl;)V
-
-
Method Details
-
getBrain
- Overrides:
getBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getBrain
Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
intermediary method_18868
Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
official eh
Lcam;eh()Lcbm;
-
createBrainProfile
- Overrides:
createBrainProfile
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named createBrainProfile
Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
intermediary method_28306
Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
official ei
Lcam;ei()Lcbm$b;
-
deserializeBrain
- Overrides:
deserializeBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named deserializeBrain
Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
intermediary method_18867
Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
official a
Lcam;a(Lcom/mojang/serialization/Dynamic;)Lcbm;
-
reinitializeBrain
- Mappings:
Namespace Name Mixin selector named reinitializeBrain
Lnet/minecraft/entity/passive/VillagerEntity;reinitializeBrain(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_19179
Lnet/minecraft/class_1646;method_19179(Lnet/minecraft/class_3218;)V
official g
Lcuf;g(Laub;)V
-
initBrain
- Mappings:
Namespace Name Mixin selector named initBrain
Lnet/minecraft/entity/passive/VillagerEntity;initBrain(Lnet/minecraft/entity/ai/brain/Brain;)V
intermediary method_19174
Lnet/minecraft/class_1646;method_19174(Lnet/minecraft/class_4095;)V
official a
Lcuf;a(Lcbm;)V
-
onGrowUp
protected void onGrowUp()- Overrides:
onGrowUp
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named onGrowUp
Lnet/minecraft/entity/passive/PassiveEntity;onGrowUp()V
intermediary method_5619
Lnet/minecraft/class_1296;method_5619()V
official h
Lbzc;h()V
-
createVillagerAttributes
- Mappings:
Namespace Name Mixin selector named createVillagerAttributes
Lnet/minecraft/entity/passive/VillagerEntity;createVillagerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26955
Lnet/minecraft/class_1646;method_26955()Lnet/minecraft/class_5132$class_5133;
official gQ
Lcuf;gQ()Lcbr$a;
-
isNatural
public boolean isNatural()- Mappings:
Namespace Name Mixin selector named isNatural
Lnet/minecraft/entity/passive/VillagerEntity;isNatural()Z
intermediary method_29279
Lnet/minecraft/class_1646;method_29279()Z
official gS
Lcuf;gS()Z
-
mobTick
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in 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 tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official g
Lbzm;g()V
-
interactMob
- Overrides:
interactMob
in classMobEntity
- Mappings:
Namespace Name Mixin selector named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official b
Lcao;b(Lcut;Lbxi;)Lbxj;
-
sayNo
private void sayNo()- Mappings:
Namespace Name Mixin selector named sayNo
Lnet/minecraft/entity/passive/VillagerEntity;sayNo()V
intermediary method_20264
Lnet/minecraft/class_1646;method_20264()V
official hd
Lcuf;hd()V
-
beginTradeWith
- Mappings:
Namespace Name Mixin selector named beginTradeWith
Lnet/minecraft/entity/passive/VillagerEntity;beginTradeWith(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_19191
Lnet/minecraft/class_1646;method_19191(Lnet/minecraft/class_1657;)V
official j
Lcuf;j(Lcut;)V
-
setCustomer
- Specified by:
setCustomer
in interfaceMerchant
- Overrides:
setCustomer
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named setCustomer
Lnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_8259
Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)V
official g
Ldlp;g(Lcut;)V
-
resetCustomer
protected void resetCustomer()- Overrides:
resetCustomer
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named resetCustomer
Lnet/minecraft/entity/passive/MerchantEntity;resetCustomer()V
intermediary method_19181
Lnet/minecraft/class_3988;method_19181()V
official gN
Lcua;gN()V
-
clearSpecialPrices
private void clearSpecialPrices()Resets the special price of all the trade offers of this villager.- Mappings:
Namespace Name Mixin selector named clearSpecialPrices
Lnet/minecraft/entity/passive/VillagerEntity;clearSpecialPrices()V
intermediary method_19187
Lnet/minecraft/class_1646;method_19187()V
official he
Lcuf;he()V
-
canRefreshTrades
public boolean canRefreshTrades()- Specified by:
canRefreshTrades
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector named canRefreshTrades
Lnet/minecraft/village/Merchant;canRefreshTrades()Z
intermediary method_20708
Lnet/minecraft/class_1915;method_20708()Z
official gT
Ldlp;gT()Z
-
restock
public void restock()- Mappings:
Namespace Name Mixin selector named restock
Lnet/minecraft/entity/passive/VillagerEntity;restock()V
intermediary method_19182
Lnet/minecraft/class_1646;method_19182()V
official gU
Lcuf;gU()V
-
sendOffersToCustomer
private void sendOffersToCustomer()- Mappings:
Namespace Name Mixin selector named sendOffersToCustomer
Lnet/minecraft/entity/passive/VillagerEntity;sendOffersToCustomer()V
intermediary method_49695
Lnet/minecraft/class_1646;method_49695()V
official hf
Lcuf;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 needsRestock
Lnet/minecraft/entity/passive/VillagerEntity;needsRestock()Z
intermediary method_20823
Lnet/minecraft/class_1646;method_20823()Z
official hg
Lcuf;hg()Z
-
canRestock
private boolean canRestock()- Mappings:
Namespace Name Mixin selector named canRestock
Lnet/minecraft/entity/passive/VillagerEntity;canRestock()Z
intermediary method_20824
Lnet/minecraft/class_1646;method_20824()Z
official hh
Lcuf;hh()Z
-
shouldRestock
public boolean shouldRestock()- Mappings:
Namespace Name Mixin selector named shouldRestock
Lnet/minecraft/entity/passive/VillagerEntity;shouldRestock()Z
intermediary method_20822
Lnet/minecraft/class_1646;method_20822()Z
official gV
Lcuf;gV()Z
-
restockAndUpdateDemandBonus
private void restockAndUpdateDemandBonus()- Mappings:
Namespace Name Mixin selector named restockAndUpdateDemandBonus
Lnet/minecraft/entity/passive/VillagerEntity;restockAndUpdateDemandBonus()V
intermediary method_21723
Lnet/minecraft/class_1646;method_21723()V
official hi
Lcuf;hi()V
-
updateDemandBonus
private void updateDemandBonus()Updates the demand bonus of all the trade offers of this villager.- Mappings:
Namespace Name Mixin selector named updateDemandBonus
Lnet/minecraft/entity/passive/VillagerEntity;updateDemandBonus()V
intermediary method_21724
Lnet/minecraft/class_1646;method_21724()V
official hj
Lcuf;hj()V
-
prepareOffersFor
- Mappings:
Namespace Name Mixin selector named prepareOffersFor
Lnet/minecraft/entity/passive/VillagerEntity;prepareOffersFor(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_19192
Lnet/minecraft/class_1646;method_19192(Lnet/minecraft/class_1657;)V
official k
Lcuf;k(Lcut;)V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in 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 initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbzm;a(Lall$a;)V
-
createVillagerData
- Mappings:
Namespace Name Mixin selector named createVillagerData
Lnet/minecraft/entity/passive/VillagerEntity;createVillagerData()Lnet/minecraft/village/VillagerData;
intermediary method_67359
Lnet/minecraft/class_1646;method_67359()Lnet/minecraft/class_3850;
official gW
Lcuf;gW()Lcug;
-
writeCustomData
- Overrides:
writeCustomData
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named writeCustomData
Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
official a
Lbzm;a(Lfdc;)V
-
readCustomData
- Overrides:
readCustomData
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named readCustomData
Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
official a
Lbzm;a(Lfda;)V
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawn
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canImmediatelyDespawn
Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
intermediary method_5974
Lnet/minecraft/class_1308;method_5974(D)Z
official h
Lcao;h(D)Z
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official p
Lcao;p()Layy;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official e
Lcam;e(Lbyb;)Layy;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official f_
Lcam;f_()Layy;
-
playWorkSound
public void playWorkSound()- Mappings:
Namespace Name Mixin selector named playWorkSound
Lnet/minecraft/entity/passive/VillagerEntity;playWorkSound()V
intermediary method_19183
Lnet/minecraft/class_1646;method_19183()V
official gX
Lcuf;gX()V
-
setVillagerData
- Specified by:
setVillagerData
in interfaceVillagerDataContainer
- Mappings:
Namespace Name Mixin selector named setVillagerData
Lnet/minecraft/village/VillagerDataContainer;setVillagerData(Lnet/minecraft/village/VillagerData;)V
intermediary method_7195
Lnet/minecraft/class_3851;method_7195(Lnet/minecraft/class_3850;)V
official a
Lcuh;a(Lcug;)V
-
getVillagerData
- Specified by:
getVillagerData
in interfaceVillagerDataContainer
- Mappings:
Namespace Name Mixin selector named getVillagerData
Lnet/minecraft/village/VillagerDataContainer;getVillagerData()Lnet/minecraft/village/VillagerData;
intermediary method_7231
Lnet/minecraft/class_3851;method_7231()Lnet/minecraft/class_3850;
official gR
Lcuh;gR()Lcug;
-
afterUsing
- Specified by:
afterUsing
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named afterUsing
Lnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)V
intermediary method_18008
Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)V
official b
Lcua;b(Ldlq;)V
-
setAttacker
- Overrides:
setAttacker
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named setAttacker
Lnet/minecraft/entity/LivingEntity;setAttacker(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_6015
Lnet/minecraft/class_1309;method_6015(Lnet/minecraft/class_1309;)V
official a
Lcam;a(Lcam;)V
-
onDeath
- Overrides:
onDeath
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named onDeath
Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6078
Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
official a
Lcam;a(Lbyb;)V
-
releaseAllTickets
private void releaseAllTickets()- Mappings:
Namespace Name Mixin selector named releaseAllTickets
Lnet/minecraft/entity/passive/VillagerEntity;releaseAllTickets()V
intermediary method_30958
Lnet/minecraft/class_1646;method_30958()V
official hk
Lcuf;hk()V
-
notifyDeath
- Mappings:
Namespace Name Mixin selector named notifyDeath
Lnet/minecraft/entity/passive/VillagerEntity;notifyDeath(Lnet/minecraft/entity/Entity;)V
intermediary method_20690
Lnet/minecraft/class_1646;method_20690(Lnet/minecraft/class_1297;)V
official G
Lcuf;G(Lbzm;)V
-
releaseTicketFor
- Mappings:
Namespace Name Mixin selector named releaseTicketFor
Lnet/minecraft/entity/passive/VillagerEntity;releaseTicketFor(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
intermediary method_19176
Lnet/minecraft/class_1646;method_19176(Lnet/minecraft/class_4140;)V
official a
Lcuf;a(Lcjo;)V
-
isReadyToBreed
public boolean isReadyToBreed()- Overrides:
isReadyToBreed
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named isReadyToBreed
Lnet/minecraft/entity/passive/PassiveEntity;isReadyToBreed()Z
intermediary method_19184
Lnet/minecraft/class_1296;method_19184()Z
official Y_
Lbzc;Y_()Z
-
canEatFood
private boolean canEatFood()- Mappings:
Namespace Name Mixin selector named canEatFood
Lnet/minecraft/entity/passive/VillagerEntity;canEatFood()Z
intermediary method_20698
Lnet/minecraft/class_1646;method_20698()Z
official hl
Lcuf;hl()Z
-
consumeAvailableFood
private void consumeAvailableFood()- Mappings:
Namespace Name Mixin selector named consumeAvailableFood
Lnet/minecraft/entity/passive/VillagerEntity;consumeAvailableFood()V
intermediary method_19185
Lnet/minecraft/class_1646;method_19185()V
official hm
Lcuf;hm()V
-
getReputation
- Mappings:
Namespace Name Mixin selector named getReputation
Lnet/minecraft/entity/passive/VillagerEntity;getReputation(Lnet/minecraft/entity/player/PlayerEntity;)I
intermediary method_20594
Lnet/minecraft/class_1646;method_20594(Lnet/minecraft/class_1657;)I
official i
Lcuf;i(Lcut;)I
-
depleteFood
private void depleteFood(int amount) - Mappings:
Namespace Name Mixin selector named depleteFood
Lnet/minecraft/entity/passive/VillagerEntity;depleteFood(I)V
intermediary method_19193
Lnet/minecraft/class_1646;method_19193(I)V
official u
Lcuf;u(I)V
-
eatForBreeding
public void eatForBreeding()- Mappings:
Namespace Name Mixin selector named eatForBreeding
Lnet/minecraft/entity/passive/VillagerEntity;eatForBreeding()V
intermediary method_20697
Lnet/minecraft/class_1646;method_20697()V
official gY
Lcuf;gY()V
-
setOffers
- Mappings:
Namespace Name Mixin selector named setOffers
Lnet/minecraft/entity/passive/VillagerEntity;setOffers(Lnet/minecraft/village/TradeOfferList;)V
intermediary method_16917
Lnet/minecraft/class_1646;method_16917(Lnet/minecraft/class_1916;)V
official b
Lcuf;b(Ldlr;)V
-
canLevelUp
private boolean canLevelUp()- Mappings:
Namespace Name Mixin selector named canLevelUp
Lnet/minecraft/entity/passive/VillagerEntity;canLevelUp()Z
intermediary method_19188
Lnet/minecraft/class_1646;method_19188()Z
official hn
Lcuf;hn()Z
-
levelUp
private void levelUp()- Mappings:
Namespace Name Mixin selector named levelUp
Lnet/minecraft/entity/passive/VillagerEntity;levelUp()V
intermediary method_16918
Lnet/minecraft/class_1646;method_16918()V
official ho
Lcuf;ho()V
-
getDefaultName
Returns the default name of the entity.- Overrides:
getDefaultName
in classEntity
- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultName
Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
intermediary method_23315
Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
official cD
Lbzm;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:
handleStatus
in classMobEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbzm;b(B)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initialize
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector 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/entity/EntityData;
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_1315;
official a
Lcao;a(Ldnl;Lbxh;Lbzu;Lcbe;)Lcbe;
-
createChild
@Nullable public @Nullable VillagerEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/VillagerEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/VillagerEntity;
intermediary method_7225
Lnet/minecraft/class_1646;method_7225(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1646;
official b
Lcuf;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:
onStruckByLightning
in classEntity
- Mappings:
Namespace Name Mixin selector named onStruckByLightning
Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
intermediary method_5800
Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
official a
Lbzm;a(Laub;Lcal;)V
-
loot
- Overrides:
loot
in classMobEntity
- Mappings:
Namespace Name Mixin selector named loot
Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
intermediary method_5949
Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
official a
Lcao;a(Laub;Lcqz;)V
-
canGather
- Overrides:
canGather
in classMobEntity
- Mappings:
Namespace Name Mixin selector named canGather
Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
intermediary method_20820
Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
official c
Lcao;c(Laub;Ldcv;)Z
-
needsFoodForBreeding
public boolean needsFoodForBreeding()- Mappings:
Namespace Name Mixin selector named needsFoodForBreeding
Lnet/minecraft/entity/passive/VillagerEntity;needsFoodForBreeding()Z
intermediary method_7239
Lnet/minecraft/class_1646;method_7239()Z
official ha
Lcuf;ha()Z
-
getAvailableFood
private int getAvailableFood()- Mappings:
Namespace Name Mixin selector named getAvailableFood
Lnet/minecraft/entity/passive/VillagerEntity;getAvailableFood()I
intermediary method_19189
Lnet/minecraft/class_1646;method_19189()I
official hp
Lcuf;hp()I
-
hasSeedToPlant
public boolean hasSeedToPlant()- Mappings:
Namespace Name Mixin selector named hasSeedToPlant
Lnet/minecraft/entity/passive/VillagerEntity;hasSeedToPlant()Z
intermediary method_19623
Lnet/minecraft/class_1646;method_19623()Z
official hb
Lcuf;hb()Z
-
fillRecipes
protected void fillRecipes()- Specified by:
fillRecipes
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named fillRecipes
Lnet/minecraft/entity/passive/MerchantEntity;fillRecipes()V
intermediary method_7237
Lnet/minecraft/class_3988;method_7237()V
official gO
Lcua;gO()V
-
talkWithVillager
- Mappings:
Namespace Name Mixin selector named talkWithVillager
Lnet/minecraft/entity/passive/VillagerEntity;talkWithVillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19177
Lnet/minecraft/class_1646;method_19177(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official a
Lcuf;a(Laub;Lcuf;J)V
-
decayGossip
private void decayGossip()- Mappings:
Namespace Name Mixin selector named decayGossip
Lnet/minecraft/entity/passive/VillagerEntity;decayGossip()V
intermediary method_20696
Lnet/minecraft/class_1646;method_20696()V
official hq
Lcuf;hq()V
-
summonGolem
- Mappings:
Namespace Name Mixin selector named summonGolem
Lnet/minecraft/entity/passive/VillagerEntity;summonGolem(Lnet/minecraft/server/world/ServerWorld;JI)V
intermediary method_20688
Lnet/minecraft/class_1646;method_20688(Lnet/minecraft/class_3218;JI)V
official a
Lcuf;a(Laub;JI)V
-
canSummonGolem
public boolean canSummonGolem(long time) - Mappings:
Namespace Name Mixin selector named canSummonGolem
Lnet/minecraft/entity/passive/VillagerEntity;canSummonGolem(J)Z
intermediary method_20687
Lnet/minecraft/class_1646;method_20687(J)Z
official a
Lcuf;a(J)Z
-
onInteractionWith
- Specified by:
onInteractionWith
in interfaceInteractionObserver
- Mappings:
Namespace Name Mixin selector named onInteractionWith
Lnet/minecraft/entity/InteractionObserver;onInteractionWith(Lnet/minecraft/entity/EntityInteraction;Lnet/minecraft/entity/Entity;)V
intermediary method_18870
Lnet/minecraft/class_4094;method_18870(Lnet/minecraft/class_4151;Lnet/minecraft/class_1297;)V
official a
Lcbb;a(Lclm;Lbzm;)V
-
getExperience
public int getExperience()- Specified by:
getExperience
in interfaceMerchant
- Overrides:
getExperience
in classMerchantEntity
- Mappings:
Namespace Name Mixin selector named getExperience
Lnet/minecraft/village/Merchant;getExperience()I
intermediary method_19269
Lnet/minecraft/class_1915;method_19269()I
official t
Ldlp;t()I
-
setExperience
public void setExperience(int experience) - Mappings:
Namespace Name Mixin selector named setExperience
Lnet/minecraft/entity/passive/VillagerEntity;setExperience(I)V
intermediary method_19625
Lnet/minecraft/class_1646;method_19625(I)V
official t
Lcuf;t(I)V
-
clearDailyRestockCount
private void clearDailyRestockCount()- Mappings:
Namespace Name Mixin selector named clearDailyRestockCount
Lnet/minecraft/entity/passive/VillagerEntity;clearDailyRestockCount()V
intermediary method_20821
Lnet/minecraft/class_1646;method_20821()V
official hr
Lcuf;hr()V
-
getGossip
- Mappings:
Namespace Name Mixin selector named getGossip
Lnet/minecraft/entity/passive/VillagerEntity;getGossip()Lnet/minecraft/village/VillagerGossips;
intermediary method_21651
Lnet/minecraft/class_1646;method_21651()Lnet/minecraft/class_4136;
official hc
Lcuf;hc()Lcjk;
-
readGossipData
- Mappings:
Namespace Name Mixin selector named readGossipData
Lnet/minecraft/entity/passive/VillagerEntity;readGossipData(Lnet/minecraft/village/VillagerGossips;)V
intermediary method_21650
Lnet/minecraft/class_1646;method_21650(Lnet/minecraft/class_4136;)V
official a
Lcuf;a(Lcjk;)V
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official ah
Lcao;ah()V
-
sleep
- Overrides:
sleep
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named sleep
Lnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_18403
Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)V
official b
Lcam;b(Ljb;)V
-
wakeUp
public void wakeUp()Wakes this entity up.- Overrides:
wakeUp
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named wakeUp
Lnet/minecraft/entity/LivingEntity;wakeUp()V
intermediary method_18400
Lnet/minecraft/class_1309;method_18400()V
official fZ
Lcam;fZ()V
-
hasRecentlySlept
private boolean hasRecentlySlept(long worldTime) - Mappings:
Namespace Name Mixin selector named hasRecentlySlept
Lnet/minecraft/entity/passive/VillagerEntity;hasRecentlySlept(J)Z
intermediary method_20741
Lnet/minecraft/class_1646;method_20741(J)Z
official b
Lcuf;b(J)Z
-
get
- Specified by:
get
in interfaceComponentsAccess
- Overrides:
get
in classEntity
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
intermediary method_58694
Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lkl;a(Lkp;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFrom
in classEntity
- Mappings:
Namespace Name Mixin selector named copyComponentsFrom
Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
intermediary method_66649
Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
official a
Lbzm;a(Lkl;)V
-
setApplicableComponent
- Overrides:
setApplicableComponent
in classEntity
- Mappings:
Namespace Name Mixin selector named setApplicableComponent
Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
intermediary method_66654
Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
official b
Lbzm;b(Lkp;Ljava/lang/Object;)Z
-