Class VillagerEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.MobEntity
net.minecraft.entity.CreatureEntity
net.minecraft.entity.AgeableEntity
net.minecraft.entity.merchant.villager.AbstractVillagerEntity
net.minecraft.entity.merchant.villager.VillagerEntity
- All Implemented Interfaces:
ICommandSource
,INPC
,IMerchant
,IReputationTracking
,IVillagerDataHolder
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
public class VillagerEntity
extends AbstractVillagerEntity
implements IReputationTracking, IVillagerDataHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.AgeableEntity
AgeableEntity.AgeableData
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final DataParameter<VillagerData>
private byte
private final GossipManager
private boolean
private long
private long
private long
private long
private PlayerEntity
private static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
private int
static final Map<MemoryModuleType<GlobalPos>,
BiPredicate<VillagerEntity, PointOfInterestType>> private static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>>
private int
private int
Fields inherited from class net.minecraft.entity.merchant.villager.AbstractVillagerEntity
offers
Fields inherited from class net.minecraft.entity.AgeableEntity
age, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ConstructorDescriptionVillagerEntity
(EntityType<? extends VillagerEntity> p_i50182_1_, World p_i50182_2_) VillagerEntity
(EntityType<? extends VillagerEntity> p_i50183_1_, World p_i50183_2_, VillagerType p_i50183_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_213281_1_) protected void
private boolean
boolean
protected Brain.BrainCodec<VillagerEntity>
boolean
canBreed()
boolean
private void
private int
protected void
protected void
void
die
(DamageSource p_70645_1_) private void
digestFood
(int p_213758_1_) void
private void
finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) private BlockPos
findSpawnPositionForGolemInColumn
(BlockPos p_241433_1_, double p_241433_2_, double p_241433_4_) protected SoundEvent
getBrain()
getBreedOffspring
(ServerWorld p_241840_1_, AgeableEntity p_241840_2_) protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource p_184601_1_) int
getPlayerReputation
(PlayerEntity p_223107_1_) protected ITextComponent
int
private boolean
golemSpawnConditionsMet
(long p_223352_1_) void
gossip
(ServerWorld p_242368_1_, VillagerEntity p_242368_2_, long p_242368_3_) void
handleEntityEvent
(byte p_70103_1_) boolean
boolean
private boolean
hungry()
private void
protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> p_213364_1_) private void
mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) private boolean
void
onReputationEventFrom
(IReputationType p_213739_1_, Entity p_213739_2_) protected void
pickUpItem
(ItemEntity p_175445_1_) void
void
readAdditionalSaveData
(CompoundNBT p_70037_1_) void
refreshBrain
(ServerWorld p_213770_1_) private void
registerBrainGoals
(Brain<VillagerEntity> p_213744_1_) private void
void
releasePoi
(MemoryModuleType<GlobalPos> p_213742_1_) boolean
removeWhenFarAway
(double p_213397_1_) private void
private void
void
restock()
protected void
rewardTradeXp
(MerchantOffer p_213713_1_) protected void
void
setGossips
(INBT p_223716_1_) void
setLastHurtByMob
(LivingEntity p_70604_1_) void
setOffers
(MerchantOffers p_213768_1_) void
setTradingPlayer
(PlayerEntity p_70932_1_) private void
void
setVillagerData
(VillagerData p_213753_1_) void
setVillagerXp
(int p_213761_1_) private boolean
boolean
void
spawnGolemIfNeeded
(ServerWorld p_242367_1_, long p_242367_2_, int p_242367_4_) void
startSleeping
(BlockPos p_213342_1_) private void
startTrading
(PlayerEntity p_213740_1_) void
protected void
private void
tellWitnessesThatIWasMurdered
(Entity p_223361_1_) void
thunderHit
(ServerWorld p_241841_1_, LightningBoltEntity p_241841_2_) void
tick()
private IronGolemEntity
trySpawnGolem
(ServerWorld p_213759_1_) private void
private void
updateSpecialPrices
(PlayerEntity p_213762_1_) protected void
boolean
boolean
wantsToPickUp
(ItemStack p_230293_1_) boolean
wantsToSpawnGolem
(long p_223350_1_) Methods inherited from class net.minecraft.entity.merchant.villager.AbstractVillagerEntity
addOffersFromItemListings, addParticlesAroundSelf, canBeLeashed, changeDimension, getInventory, getLevel, getNotifyTradeSound, getOffers, getRopeHoldPosition, getStandingEyeHeight, getTradeUpdatedSound, getTradingPlayer, getUnhappyCounter, isTrading, notifyTrade, notifyTradeUpdated, overrideOffers, overrideXp, playCelebrateSound, setSlot, setUnhappyCounter, showProgressBar
Methods inherited from class net.minecraft.entity.AgeableEntity
ageUp, ageUp, aiStep, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startUsingItem, stopRiding, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
Methods inherited from interface net.minecraft.entity.merchant.IMerchant
openTradingScreen
-
Field Details
-
DATA_VILLAGER_DATA
-
FOOD_POINTS
-
WANTED_ITEMS
-
updateMerchantTimer
private int updateMerchantTimer -
increaseProfessionLevelOnUpdate
private boolean increaseProfessionLevelOnUpdate -
lastTradedPlayer
-
foodLevel
private byte foodLevel -
gossips
-
lastGossipTime
private long lastGossipTime -
lastGossipDecayTime
private long lastGossipDecayTime -
villagerXp
private int villagerXp -
lastRestockGameTime
private long lastRestockGameTime -
numberOfRestocksToday
private int numberOfRestocksToday -
lastRestockCheckDayTime
private long lastRestockCheckDayTime -
assignProfessionWhenSpawned
private boolean assignProfessionWhenSpawned -
MEMORY_TYPES
-
SENSOR_TYPES
private static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>> SENSOR_TYPES -
POI_MEMORIES
public static final Map<MemoryModuleType<GlobalPos>,BiPredicate<VillagerEntity, POI_MEMORIESPointOfInterestType>>
-
-
Constructor Details
-
VillagerEntity
-
VillagerEntity
public VillagerEntity(EntityType<? extends VillagerEntity> p_i50183_1_, World p_i50183_2_, VillagerType p_i50183_3_)
-
-
Method Details
-
getBrain
- Overrides:
getBrain
in classLivingEntity
-
brainProvider
- Overrides:
brainProvider
in classLivingEntity
-
makeBrain
- Overrides:
makeBrain
in classLivingEntity
-
refreshBrain
-
registerBrainGoals
-
ageBoundaryReached
protected void ageBoundaryReached()- Overrides:
ageBoundaryReached
in classAgeableEntity
-
createAttributes
-
assignProfessionWhenSpawned
public boolean assignProfessionWhenSpawned() -
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStep
in classMobEntity
-
tick
public void tick() -
mobInteract
- Overrides:
mobInteract
in classMobEntity
-
setUnhappy
private void setUnhappy() -
startTrading
-
setTradingPlayer
- Specified by:
setTradingPlayer
in interfaceIMerchant
- Overrides:
setTradingPlayer
in classAbstractVillagerEntity
-
stopTrading
protected void stopTrading()- Overrides:
stopTrading
in classAbstractVillagerEntity
-
resetSpecialPrices
private void resetSpecialPrices() -
canRestock
public boolean canRestock()- Specified by:
canRestock
in interfaceIMerchant
-
restock
public void restock() -
needsToRestock
private boolean needsToRestock() -
allowedToRestock
private boolean allowedToRestock() -
shouldRestock
public boolean shouldRestock() -
catchUpDemand
private void catchUpDemand() -
updateDemand
private void updateDemand() -
updateSpecialPrices
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAbstractVillagerEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAbstractVillagerEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classAbstractVillagerEntity
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_) - Overrides:
removeWhenFarAway
in classMobEntity
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
playWorkSound
public void playWorkSound() -
setVillagerData
-
getVillagerData
- Specified by:
getVillagerData
in interfaceIVillagerDataHolder
-
rewardTradeXp
- Specified by:
rewardTradeXp
in classAbstractVillagerEntity
-
setLastHurtByMob
- Overrides:
setLastHurtByMob
in classLivingEntity
-
die
- Overrides:
die
in classAbstractVillagerEntity
-
releaseAllPois
private void releaseAllPois() -
tellWitnessesThatIWasMurdered
-
releasePoi
-
canBreed
public boolean canBreed()- Overrides:
canBreed
in classAgeableEntity
-
hungry
private boolean hungry() -
eatUntilFull
private void eatUntilFull() -
getPlayerReputation
-
digestFood
private void digestFood(int p_213758_1_) -
eatAndDigestFood
public void eatAndDigestFood() -
setOffers
-
shouldIncreaseLevel
private boolean shouldIncreaseLevel() -
increaseMerchantCareer
private void increaseMerchantCareer() -
getTypeName
- Overrides:
getTypeName
in classEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEvent
in classMobEntity
-
finalizeSpawn
@Nullable public ILivingEntityData finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, @Nullable ILivingEntityData p_213386_4_, @Nullable CompoundNBT p_213386_5_) - Overrides:
finalizeSpawn
in classAbstractVillagerEntity
-
getBreedOffspring
- Specified by:
getBreedOffspring
in classAgeableEntity
-
thunderHit
- Overrides:
thunderHit
in classEntity
-
pickUpItem
- Overrides:
pickUpItem
in classMobEntity
-
wantsToPickUp
- Overrides:
wantsToPickUp
in classMobEntity
-
hasExcessFood
public boolean hasExcessFood() -
wantsMoreFood
public boolean wantsMoreFood() -
countFoodPointsInInventory
private int countFoodPointsInInventory() -
hasFarmSeeds
public boolean hasFarmSeeds() -
updateTrades
protected void updateTrades()- Specified by:
updateTrades
in classAbstractVillagerEntity
-
gossip
-
maybeDecayGossip
private void maybeDecayGossip() -
spawnGolemIfNeeded
-
wantsToSpawnGolem
public boolean wantsToSpawnGolem(long p_223350_1_) -
trySpawnGolem
-
findSpawnPositionForGolemInColumn
-
onReputationEventFrom
- Specified by:
onReputationEventFrom
in interfaceIReputationTracking
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXp
in interfaceIMerchant
- Overrides:
getVillagerXp
in classAbstractVillagerEntity
-
setVillagerXp
public void setVillagerXp(int p_213761_1_) -
resetNumberOfRestocks
private void resetNumberOfRestocks() -
getGossips
-
setGossips
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPackets
in classMobEntity
-
startSleeping
- Overrides:
startSleeping
in classLivingEntity
-
stopSleeping
public void stopSleeping()- Overrides:
stopSleeping
in classLivingEntity
-
golemSpawnConditionsMet
private boolean golemSpawnConditionsMet(long p_223352_1_)
-