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.PathAwareEntity
net.minecraft.entity.passive.PassiveEntity
net.minecraft.entity.passive.AnimalEntity
- All Implemented Interfaces:
CommandSource,EntityCategoryProvider
- Direct Known Subclasses:
ChickenEntity,CowEntity,HorseBaseEntity,PigEntity,RabbitEntity,SheepEntity,TameableEntity
- Mappings:
Namespace Name official abqintermediary net/minecraft/class_942named net/minecraft/entity/passive/AnimalEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.entity.passive.PassiveEntity
field_11896, field_11898, forcedAgeFields inherited from class net.minecraft.entity.PathAwareEntity
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_6748, field_6749, field_6750, field_6752, field_6753, field_6771, field_6776, field_6777, field_6778, field_6782, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, 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, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_22434, field_3223, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, updateNeeded, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeLeashedBy(PlayerEntity player) booleancanBreedWith(AnimalEntity other) protected booleanbooleancanSpawn()booleandamage(DamageSource source, float amount) protected voideat(PlayerEntity player, ItemStack stack) intfloatprotected intgetXpToDrop(PlayerEntity player) voidhandleStatus(byte status) booleanisBreedingItem(ItemStack stack) booleanisInLove()voidlovePlayer(PlayerEntity player) protected voidmobTick()voidvoidvoidvoidMethods inherited from class net.minecraft.entity.passive.PassiveEntity
age, breed, initDataTracker, isBaby, method_10925, method_10926, method_5377, method_5378, method_6095, setAge, setBoundsMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, createNavigation, detachLeash, dropLoot, equip, getAmbientSound, getArmorStacks, getDefaultDrop, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getTarget, getVisibilityCache, initEquipment, initialize, initializeAttributes, isLeashed, isPersistent, isTameable, lookAtEntity, loot, method_2469, method_2638, method_4470, method_4472, method_4485, method_5388, method_6162, method_8374, onEatingGrass, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, tick, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getDeathSound, getEffectInstance, getFallSound, getGroup, getHandSwingProgress, getHeadRotation, getHealth, getHurtSound, getJumpVelocity, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotation, getRotationVector, getScoreboardTeam, getSoundPitch, getSoundVolume, getStatusEffectInstances, getStuckArrows, handleFallDamage, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isClimbing, isInSameTeam, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_2582, method_2607, method_2610, method_2634, method_2649, method_2658, method_4473, method_6108, method_6109, method_6111, method_6117, method_6149, method_6150, method_6152, onKilled, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, shouldAlwaysDropXp, shouldDropXp, shouldRenderName, startRiding, swingHand, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, travel, tryAttack, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, equals, extinguish, fromClientNbt, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getLightmapCoordinates, getMaxNetherPortalTime, getMountedHeightOffset, getParts, getPos, getRotationVector, getSavedEntityId, getSplashSound, getSwimSound, getTargetingMargin, 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, isSwimming, isTouchingLava, isTouchingWater, method_10786, method_10941, method_10948, method_10957, method_10965, method_6097, method_6344, method_8364, move, onKilledOther, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInLava, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportToDimension, tickFire, toListNbt, toListNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateVelocity, updateWaterState, writePlayerData
-
Field Details
-
field_11973
- Mappings:
Namespace Name Mixin selector official blLabq;bl:Latr;intermediary field_11973Lnet/minecraft/class_942;field_11973:Lnet/minecraft/class_197;named field_11973Lnet/minecraft/entity/passive/AnimalEntity;field_11973:Lnet/minecraft/block/Block;
-
loveTicks
private int loveTicks- Mappings:
Namespace Name Mixin selector official bkLabq;bk:Iintermediary field_3696Lnet/minecraft/class_942;field_3696:Inamed loveTicksLnet/minecraft/entity/passive/AnimalEntity;loveTicks:I
-
lovingPlayer
- Mappings:
Namespace Name Mixin selector official bmLabq;bm:Lahd;intermediary field_9106Lnet/minecraft/class_942;field_9106:Lnet/minecraft/class_988;named lovingPlayerLnet/minecraft/entity/passive/AnimalEntity;lovingPlayer:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
AnimalEntity
- Mappings:
Namespace Name Mixin selector official <init>Lwv;<init>(Laqu;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
mobTick
protected void mobTick() -
tickMovement
public void tickMovement()- Overrides:
tickMovementin classPassiveEntity- Mappings:
Namespace Name Mixin selector official mLxm;m()Vintermediary method_2651Lnet/minecraft/class_1699;method_2651()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
damage
- Overrides:
damagein classLivingEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lwh;F)Zintermediary method_2499Lnet/minecraft/class_864;method_2499(Lnet/minecraft/class_856;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
getPathfindingFavor
- Overrides:
getPathfindingFavorin classPathAwareEntity- Mappings:
Namespace Name Mixin selector official aLxu;a(Ldt;)Fintermediary method_10989Lnet/minecraft/class_877;method_10989(Lnet/minecraft/class_2552;)Fnamed getPathfindingFavorLnet/minecraft/entity/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;)F
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classPassiveEntity- Mappings:
Namespace Name Mixin selector official bLwv;b(Lfn;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classPassiveEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lfn;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
canSpawn
public boolean canSpawn()- Overrides:
canSpawnin classPathAwareEntity- Mappings:
Namespace Name Mixin selector official bQLxn;bQ()Zintermediary method_2637Lnet/minecraft/class_871;method_2637()Znamed canSpawnLnet/minecraft/entity/mob/MobEntity;canSpawn()Z
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Overrides:
getMinAmbientSoundDelayin classMobEntity- Mappings:
Namespace Name Mixin selector official wLxn;w()Iintermediary method_2594Lnet/minecraft/class_871;method_2594()Inamed getMinAmbientSoundDelayLnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
-
canImmediatelyDespawn
protected boolean canImmediatelyDespawn()- Overrides:
canImmediatelyDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector official CLxn;C()Zintermediary method_2631Lnet/minecraft/class_871;method_2631()Znamed canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn()Z
-
getXpToDrop
- Overrides:
getXpToDropin classMobEntity- Mappings:
Namespace Name Mixin selector official bLxm;b(Lahd;)Iintermediary method_2585Lnet/minecraft/class_1699;method_2585(Lnet/minecraft/class_988;)Inamed getXpToDropLnet/minecraft/entity/LivingEntity;getXpToDrop(Lnet/minecraft/entity/player/PlayerEntity;)I
-
isBreedingItem
- Mappings:
Namespace Name Mixin selector official dLabq;d(Lamj;)Zintermediary method_2853Lnet/minecraft/class_942;method_2853(Lnet/minecraft/class_1071;)Znamed isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
-
canBeLeashedBy
- Overrides:
canBeLeashedByin classPassiveEntity- Mappings:
Namespace Name Mixin selector official aLxn;a(Lahd;)Zintermediary method_2537Lnet/minecraft/class_871;method_2537(Lnet/minecraft/class_988;)Znamed canBeLeashedByLnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
eat
- Mappings:
Namespace Name Mixin selector official aLabq;a(Lahd;Lamj;)Vintermediary method_11070Lnet/minecraft/class_942;method_11070(Lnet/minecraft/class_988;Lnet/minecraft/class_1071;)Vnamed eatLnet/minecraft/entity/passive/AnimalEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
lovePlayer
- Mappings:
Namespace Name Mixin selector official cLabq;c(Lahd;)Vintermediary method_8386Lnet/minecraft/class_942;method_8386(Lnet/minecraft/class_988;)Vnamed lovePlayerLnet/minecraft/entity/passive/AnimalEntity;lovePlayer(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getLovingPlayer
- Mappings:
Namespace Name Mixin selector official coLabq;co()Lahd;intermediary method_8385Lnet/minecraft/class_942;method_8385()Lnet/minecraft/class_988;named getLovingPlayerLnet/minecraft/entity/passive/AnimalEntity;getLovingPlayer()Lnet/minecraft/entity/player/PlayerEntity;
-
isInLove
public boolean isInLove()- Mappings:
Namespace Name Mixin selector official cpLabq;cp()Zintermediary method_2855Lnet/minecraft/class_942;method_2855()Znamed isInLoveLnet/minecraft/entity/passive/AnimalEntity;isInLove()Z
-
resetLoveTicks
public void resetLoveTicks()- Mappings:
Namespace Name Mixin selector official cqLabq;cq()Vintermediary method_2856Lnet/minecraft/class_942;method_2856()Vnamed resetLoveTicksLnet/minecraft/entity/passive/AnimalEntity;resetLoveTicks()V
-
canBreedWith
- Mappings:
Namespace Name Mixin selector official aLabq;a(Labq;)Zintermediary method_2852Lnet/minecraft/class_942;method_2852(Lnet/minecraft/class_942;)Znamed canBreedWithLnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
-
handleStatus
- Overrides:
handleStatusin classMobEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(B)Vintermediary method_2485Lnet/minecraft/class_864;method_2485(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-