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,class_3136,CowEntity,PigEntity,PolarBearEntity,RabbitEntity,SheepEntity,TameableEntity
- Mappings:
Namespace Name official zvintermediary net/minecraft/class_942named net/minecraft/entity/passive/AnimalEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.mob.MobEntity
MobEntity.Location -
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, field_14559, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_14542, field_14543, field_14546, field_14547, field_14548, field_16513, 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, mainHand, 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_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, tracedX, tracedY, tracedZ, updateNeeded, uuidString, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBreedWith(AnimalEntity other) protected booleanbooleancanSpawn()booleandamage(DamageSource source, float amount) protected voideat(PlayerEntity player, ItemStack stack) doubleintfloatprotected intgetXpToDrop(PlayerEntity player) voidhandleStatus(byte status) booleaninteractMob(PlayerEntity playerEntity, Hand hand) 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_13929, method_5377, method_5378, method_6095, onTrackedDataSet, setAge, setBoundsMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_13951, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
ambientSound, attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canBeLeashedBy, canMoveVoluntarily, canPickupItem, canPickUpLoot, checkDespawn, createNavigation, detachLeash, dropLoot, equip, equipStack, getArmorItems, getDefaultDrop, getDurability, getItemsHand, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getLootTableId, getMotionHelper, getNavigation, getSafeFallDistance, getTarget, getVisibilityCache, hasNoAi, initEquipment, initGoals, initialize, initializeAttributes, interact, isLeashed, isPersistent, lookAtEntity, loot, method_13003, method_13043, method_13044, method_13051, method_13075, method_13076, method_13077, method_13078, method_13080, method_13081, method_13082, method_13083, method_13084, method_13086, method_13088, method_13950, method_15061, method_2469, method_2638, method_4472, method_6162, onEatingGrass, playAmbientSound, playSpawnEffects, setAiDisabled, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, startRiding, tick, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
addStatusEffect, animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, deathSound, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getArmorProtectionValue, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getEffectInstance, getGroup, getHandSwingProgress, getHeadRotation, getHealth, getHurtSound, getJumpVelocity, getLandSound, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotationVector, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffectInstances, getStatusEffects, getStuckArrows, handleFallDamage, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isClimbing, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_13038, method_13040, method_13041, method_13042, method_13045, method_13046, method_13050, method_13052, method_13053, method_13054, method_13055, method_13056, method_13057, method_13058, method_13059, method_13061, method_13062, method_13063, method_13064, method_13065, method_13066, method_13067, method_13071, method_13072, method_13493, method_13494, method_13946, method_13947, method_13948, method_15058, method_2582, method_2607, method_2610, method_2634, method_2649, method_2657, method_2658, method_3217, method_6108, method_6109, method_6111, method_6117, method_6150, method_6152, onKilled, pushAway, removeStatusEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, setYaw, shouldAlwaysDropXp, shouldDropXp, shouldRenderName, stopRiding, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, tryAttack, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, afterSpawn, applyMirror, applyRotation, attemptSprintingParticles, burn, canAddPassenger, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUseCommand, canUsePortals, changeDimension, checkBlockCollision, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, entityDataRequiresOperator, equals, extinguish, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEntityName, getEyeHeight, getFlag, getHardCollisionBox, getHorizontalDirection, getHoverEvent, getItemsEquipped, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMinecraftServer, getMountedHeightOffset, getMovementDirection, getParts, getPassengerList, getPassengersDeep, getPassengersDeep, getPistonBehavior, getPos, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotation, getRotationClient, getRotationVecClient, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getSoundCategory, getTargetingMargin, getTranslatedName, getUuid, getVehicle, getVisibilityBoundingBox, getWorld, handleAttack, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, increaseTransforms, interactAt, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTeammate, isTeamPlayer, isTouchingLava, isTouchingWater, method_10965, method_12984, method_12985, method_12991, method_13932, method_15051, method_15052, method_15055, method_2492, method_6344, move, onBlockCollision, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setGlowing, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStat, setUuid, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportRequested, tickFire, tickNetherPortalCooldown, toListNbt, toListNbt, toNbt, toString, updateKilledAchievement, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSubmergedInWaterState, updateWaterState
-
Field Details
-
field_11973
- Mappings:
Namespace Name Mixin selector official bALzv;bA:Laow;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 bxLzv;bx:Iintermediary field_3696Lnet/minecraft/class_942;field_3696:Inamed loveTicksLnet/minecraft/entity/passive/AnimalEntity;loveTicks:I
-
field_16550
- Mappings:
Namespace Name Mixin selector official byLzv;by:Ljava/util/UUID;intermediary field_16550Lnet/minecraft/class_942;field_16550:Ljava/util/UUID;named field_16550Lnet/minecraft/entity/passive/AnimalEntity;field_16550:Ljava/util/UUID;
-
-
Constructor Details
-
AnimalEntity
- Mappings:
Namespace Name Mixin selector official <init>Lvg;<init>(Lamu;)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 nLvp;n()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 aLvg;a(Lur;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 aLvx;a(Let;)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 bLvg;b(Lfy;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getHeightOffset
public double getHeightOffset()- Overrides:
getHeightOffsetin classEntity- Mappings:
Namespace Name Mixin selector official aFLvg;aF()Dintermediary method_2480Lnet/minecraft/class_864;method_2480()Dnamed getHeightOffsetLnet/minecraft/entity/Entity;getHeightOffset()D
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classPassiveEntity- Mappings:
Namespace Name Mixin selector official aLvg;a(Lfy;)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 PLvq;P()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 CLvq;C()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 KLvq;K()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 bLvp;b(Laed;)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 eLzv;e(Laip;)Zintermediary method_2853Lnet/minecraft/class_942;method_2853(Lnet/minecraft/class_1071;)Znamed isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
-
interactMob
- Overrides:
interactMobin classPassiveEntity- Mappings:
Namespace Name Mixin selector official aLvq;a(Laed;Lub;)Zintermediary method_13079Lnet/minecraft/class_871;method_13079(Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Znamed interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Z
-
eat
- Mappings:
Namespace Name Mixin selector official aLzv;a(Laed;Laip;)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 fLzv;f(Laed;)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
-
method_15103
- Mappings:
Namespace Name Mixin selector official dqLzv;dq()Loq;intermediary method_15103Lnet/minecraft/class_942;method_15103()Lnet/minecraft/class_798;named method_15103Lnet/minecraft/entity/passive/AnimalEntity;method_15103()Lnet/minecraft/entity/player/ServerPlayerEntity;
-
isInLove
public boolean isInLove()- Mappings:
Namespace Name Mixin selector official drLzv;dr()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 dsLzv;ds()Vintermediary method_2856Lnet/minecraft/class_942;method_2856()Vnamed resetLoveTicksLnet/minecraft/entity/passive/AnimalEntity;resetLoveTicks()V
-
canBreedWith
- Mappings:
Namespace Name Mixin selector official aLzv;a(Lzv;)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 aLvg;a(B)Vintermediary method_2485Lnet/minecraft/class_864;method_2485(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-