Package net.minecraft.entity.passive
Class AnimalEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.mob.MobEntity
net.minecraft.entity.PassivePathFindingEntity
net.minecraft.entity.passive.AgeableEntity
net.minecraft.entity.passive.AnimalEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider
- Direct Known Subclasses:
ChickenEntity,CowEntity,HorseBaseEntity,PigEntity,RabbitEntity,SheepEntity,TameableEntity
public abstract class AnimalEntity extends AgeableEntity implements EntityCategoryProvider
- Mappings:
Namespace Name official tmintermediary net/minecraft/class_1847named net/minecraft/entity/passive/AnimalEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
Field Summary
Fields Modifier and Type Field Description protected Blockfield_7884private PlayerEntityfield_7885private intloveTicksFields inherited from class net.minecraft.entity.passive.AgeableEntity
field_7327, field_7331, forcedAgeFields inherited from class net.minecraft.entity.PassivePathFindingEntity
FLEEING_SPEED_BONUS_ID, FLEEING_SPEED_MODIFIERFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, attackGoals, entityMotionHelper, experiencePoints, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_7434, field_7435, field_7436, field_7438, field_7439, field_7456, field_7457, field_7458, field_7462, field_7463, field_7472, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, headYaw, hurtTime, jumping, knockbackVelocity, lastHandSwingProgress, maxHurtTime, playerHitTimer, prevBodyYaw, prevDistanceTravelled, prevHeadYaw, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, serverPitch, serverY, serverYaw, serverZ, serxerX, sidewaysSpeed, stepBobbingAmountFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description AnimalEntity(World world) -
Method Summary
Modifier and Type Method Description booleancanBreedWith(AnimalEntity other)booleandamage(DamageSource source, float amount)voiddeserialize(CompoundTag tag)protected voideat(PlayerEntity player, ItemStack stack)intgetMinAmbientSoundDelay()voidhandleStatus(byte status)booleanisBreedingItem(ItemStack stack)booleanisInLove()voidlovePlayer(PlayerEntity player)protected intmethod_7104(PlayerEntity playerEntity)protected booleanmethod_7184()booleanmethod_7195(PlayerEntity player)booleanmethod_7202()floatmethod_7239(BlockPos blockPos)PlayerEntitymethod_7515()protected voidmobTick()voidresetLoveTicks()voidserialize(CompoundTag tag)voidtickMovement()Methods inherited from class net.minecraft.entity.passive.AgeableEntity
age, initDataTracker, isBaby, method_6887, method_6888, method_6889, method_6890, method_6891, method_6894, setAge, setBoundsMethods inherited from class net.minecraft.entity.PassivePathFindingEntity
method_7240, method_7241, method_7242, method_7243, method_7244, method_7245, method_7246, method_7247, method_7248, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, detachLeash, equip, getAmbientSound, getArmorStacks, getAttackTarget, getDefaultDrop, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getVisibilityCache, hasNoAi, hasPositionTarget, initEquipment, initializeAttributes, isPersistent, isTameable, lookAtEntity, loot, method_7096, method_7106, method_7156, method_7164, method_7177, method_7187, method_7188, method_7191, method_7203, method_7204, method_7206, method_7210, method_7214, newNavigation, onEatingGrass, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setAttackTarget, setCanPickUpLoot, setForwardSpeed, setPersistent, tick, tickNewAi, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttributeContainer, getDamageEnchantmentTarget, getDamageTracker, getDeathSound, getEffectInstance, getFallSound, getHandSwingProgress, getHeadRotation, getHealth, getHurtSound, getLastHurtTimestamp, getMaxHealth, getRandom, getRotationVector, getScoreboardTeam, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isInSameTeam, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_6985, method_7087, method_7091, method_7092, method_7093, method_7098, method_7099, method_7100, method_7102, method_7105, method_7108, method_7109, method_7110, method_7111, method_7113, method_7114, method_7115, method_7118, method_7123, method_7124, method_7126, method_7128, method_7129, method_7130, method_7132, method_7134, method_7139, method_7142, method_7146, method_7149, method_7153, method_7154, method_7162, method_7166, method_7171, method_7176, method_7178, method_7179, onKilled, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldRenderName, startRiding, swingHand, tickRiding, tickStatusEffects, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, doesNotCollide, doesRenderOnFire, equals, extinguish, fromClientTag, fromTag, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleAttack, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setStat, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, teleportToDimension, tickFire, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePosition, updatePositionAndAngles, writePlayerData
-
Field Details
-
field_7884
- Mappings:
Namespace Name Mixin selector official bnLtm;bn:Lafh;intermediary field_7884Lnet/minecraft/class_1847;field_7884:Lnet/minecraft/class_160;named field_7884Lnet/minecraft/entity/passive/AnimalEntity;field_7884:Lnet/minecraft/block/Block;
-
loveTicks
private int loveTicks- Mappings:
Namespace Name Mixin selector official bmLtm;bm:Iintermediary field_7883Lnet/minecraft/class_1847;field_7883:Inamed loveTicksLnet/minecraft/entity/passive/AnimalEntity;loveTicks:I
-
field_7885
- Mappings:
Namespace Name Mixin selector official boLtm;bo:Lwn;intermediary field_7885Lnet/minecraft/class_1847;field_7885:Lnet/minecraft/class_1963;named field_7885Lnet/minecraft/entity/passive/AnimalEntity;field_7885:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
AnimalEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
mobTick
protected void mobTick() -
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAgeableEntity- Mappings:
Namespace Name Mixin selector official mLpr;m()Vintermediary method_7169Lnet/minecraft/class_1752;method_7169()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
damage
- Overrides:
damagein classLivingEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Low;F)Zintermediary method_6937Lnet/minecraft/class_1745;method_6937(Lnet/minecraft/class_1733;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
method_7239
- Overrides:
method_7239in classPassivePathFindingEntity- Mappings:
Namespace Name Mixin selector official aLpy;a(Lcj;)Fintermediary method_7239Lnet/minecraft/class_1760;method_7239(Lnet/minecraft/class_1372;)Fnamed method_7239Lnet/minecraft/entity/PassivePathFindingEntity;method_7239(Lnet/minecraft/util/math/BlockPos;)F
-
serialize
- Overrides:
serializein classAgeableEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_7003Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)Vnamed serializeLnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
-
deserialize
- Overrides:
deserializein classAgeableEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
method_7202
public boolean method_7202()- Overrides:
method_7202in classPassivePathFindingEntity- Mappings:
Namespace Name Mixin selector official bRLps;bR()Zintermediary method_7202Lnet/minecraft/class_1753;method_7202()Znamed method_7202Lnet/minecraft/entity/mob/MobEntity;method_7202()Z
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Overrides:
getMinAmbientSoundDelayin classMobEntity- Mappings:
Namespace Name Mixin selector official wLps;w()Iintermediary method_7228Lnet/minecraft/class_1753;method_7228()Inamed getMinAmbientSoundDelayLnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
-
method_7184
protected boolean method_7184()- Overrides:
method_7184in classMobEntity- Mappings:
Namespace Name Mixin selector official CLps;C()Zintermediary method_7184Lnet/minecraft/class_1753;method_7184()Znamed method_7184Lnet/minecraft/entity/mob/MobEntity;method_7184()Z
-
method_7104
- Overrides:
method_7104in classMobEntity- Mappings:
Namespace Name Mixin selector official bLpr;b(Lwn;)Iintermediary method_7104Lnet/minecraft/class_1752;method_7104(Lnet/minecraft/class_1963;)Inamed method_7104Lnet/minecraft/entity/LivingEntity;method_7104(Lnet/minecraft/entity/player/PlayerEntity;)I
-
isBreedingItem
- Mappings:
Namespace Name Mixin selector official dLtm;d(Lzx;)Zintermediary method_7518Lnet/minecraft/class_1847;method_7518(Lnet/minecraft/class_2056;)Znamed isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
-
method_7195
- Overrides:
method_7195in classAgeableEntity- Mappings:
Namespace Name Mixin selector official aLps;a(Lwn;)Zintermediary method_7195Lnet/minecraft/class_1753;method_7195(Lnet/minecraft/class_1963;)Znamed method_7195Lnet/minecraft/entity/mob/MobEntity;method_7195(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
eat
- Mappings:
Namespace Name Mixin selector official aLtm;a(Lwn;Lzx;)Vintermediary method_7513Lnet/minecraft/class_1847;method_7513(Lnet/minecraft/class_1963;Lnet/minecraft/class_2056;)Vnamed eatLnet/minecraft/entity/passive/AnimalEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
lovePlayer
- Mappings:
Namespace Name Mixin selector official cLtm;c(Lwn;)Vintermediary method_7514Lnet/minecraft/class_1847;method_7514(Lnet/minecraft/class_1963;)Vnamed lovePlayerLnet/minecraft/entity/passive/AnimalEntity;lovePlayer(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_7515
- Mappings:
Namespace Name Mixin selector official cqLtm;cq()Lwn;intermediary method_7515Lnet/minecraft/class_1847;method_7515()Lnet/minecraft/class_1963;named method_7515Lnet/minecraft/entity/passive/AnimalEntity;method_7515()Lnet/minecraft/entity/player/PlayerEntity;
-
isInLove
public boolean isInLove()- Mappings:
Namespace Name Mixin selector official crLtm;cr()Zintermediary method_7516Lnet/minecraft/class_1847;method_7516()Znamed isInLoveLnet/minecraft/entity/passive/AnimalEntity;isInLove()Z
-
resetLoveTicks
public void resetLoveTicks()- Mappings:
Namespace Name Mixin selector official csLtm;cs()Vintermediary method_7517Lnet/minecraft/class_1847;method_7517()Vnamed resetLoveTicksLnet/minecraft/entity/passive/AnimalEntity;resetLoveTicks()V
-
canBreedWith
- Mappings:
Namespace Name Mixin selector official aLtm;a(Ltm;)Zintermediary method_7512Lnet/minecraft/class_1847;method_7512(Lnet/minecraft/class_1847;)Znamed canBreedWithLnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
-
handleStatus
- Overrides:
handleStatusin classMobEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(B)Vintermediary method_6916Lnet/minecraft/class_1745;method_6916(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-