Class MobEntity
- All Implemented Interfaces:
- Attackable,- Targeter,- CommandOutput,- Nameable,- EntityLike
- Direct Known Subclasses:
- AmbientEntity,- EnderDragonEntity,- FlyingEntity,- PathAwareEntity,- SlimeEntity
- Mappings:
- Namespace - Name - official - bgb- intermediary - net/minecraft/class_1308- named - net/minecraft/entity/mob/MobEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.LivingEntityLivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intintprotected final float[]private final DefaultedList<ItemStack>private static final intstatic final floatThe base chance (before applying difficulty) that a mob's equipped armor can become enchanted.static final floatThe base chance (before applying difficulty) that a mob's equipped item can become enchanted.static final floatThe base chance (before applying local difficulty) that this mob will spawn with equipment.private final BodyControlprivate booleanstatic final floatUsed by Zombies to control the chance that they spawn with the ability to pick up loot.static final floatprotected intstatic final intstatic final intprotected final GoalSelectorContains actions the entity can perform.protected final float[]private final DefaultedList<ItemStack>private intprivate static final Vec3iprotected JumpControlstatic final Stringprivate @Nullable NbtCompoundprivate static final intprotected LookControlprivate @Nullable Identifierprivate longprotected static final intThe minimum additional experience a mob will drop per item of equipment they have.private static final TrackedData<Byte>protected MoveControlprotected EntityNavigationprivate final Map<PathNodeType,Float> private booleanprivate BlockPosprivate floatprivate @Nullable LivingEntityprotected final GoalSelectorContains goals used to select this entity's target.private final MobVisibilityCacheFields inherited from class net.minecraft.entity.LivingEntityactiveItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entityage, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutputDUMMY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMobEntity(EntityType<? extends MobEntity> type, World world) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidattachLeash(Entity entity, boolean sendPacket) voidbaseTick()booleancanBeLeashedBy(PlayerEntity player) booleanbooleanbooleancanImmediatelyDespawn(double distanceSquared) static booleancanMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) booleanbooleanbooleancanPickupItem(ItemStack stack) booleanbooleancanSpawn(WorldAccess world, SpawnReason spawnReason) booleanbooleancanTarget(EntityType<?> type) booleancanUseRangedWeapon(RangedWeaponItem weapon) private floatchangeAngle(float from, float to, float max) Changes the angle fromfromtoto, or bymaxdegrees iftois too big a change.voidChecks whether the entity should be despawned.voidclearGoals(Predicate<Goal> predicate) voidvoid<T extends MobEntity>
 TconvertTo(EntityType<T> entityType, boolean keepEquipment) Converts this entity to the providedentityType.protected BodyControlprotected EntityNavigationcreateNavigation(World world) voiddetachLeash(boolean sendPacket, boolean dropItem) private voiddisablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack) protected voiddropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops) protected voiddropLoot(DamageSource damageSource, boolean causedByPlayer) protected voidenchantEquipment(Random random, float power, EquipmentSlot slot) protected voidenchantMainHandItem(Random random, float power) protected voidequipLootStack(EquipmentSlot slot, ItemStack stack) voidequipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.protected @Nullable SoundEventReturns an iterable of item stacks equipped as armor.Returns the passenger in control of this entity, ornullif there is none.protected floatgetDropChance(EquipmentSlot slot) getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) Returns an iterable of item stacks held in the hands.protected Vec3iintfinal Identifierprotected IdentifierlongintReturns the maximum degrees which the head yaw can differ from the body yaw.intReturns the maximum degrees which the pitch can change when looking.intReturns the maximum degrees which the yaw can change when looking.intfloatgetPathfindingPenalty(PathNodeType nodeType) Returns the stack for creative "pick block" functionality, ornullif there is none.floatintReturns the maximum height of a fall the entity takes during pathfinding.doubleintCalled when this entity is killed and returns the amount of experience to drop.voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.booleanprotected voidInitializes data tracker.protected voidinitEquipment(Random random, LocalDifficulty localDifficulty) protected voidinitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) final ActionResultinteract(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResultinteractMob(PlayerEntity player, Hand hand) private ActionResultinteractWithItem(PlayerEntity player, Hand hand) protected booleanbooleanbooleanprotected booleanbooleanisInAttackRange(LivingEntity entity) booleanbooleanbooleanbooleanbooleanvoidlookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange) protected voidloot(ItemEntity item) protected voidmobTick()protected booleanWhen true, causes this entity to take over pathfinding for its controlling passenger.voidvoidprotected voidonPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidvoidprotected voidplayHurtSound(DamageSource source) voidbooleanprefersNewDamageableItem(ItemStack newStack, ItemStack oldStack) protected booleanprefersNewEquipment(ItemStack newStack, ItemStack oldStack) voidReads custom data fromnbt.private voidprotected voidRemoves this entity from the current dimension.private voidprotected voidvoidsetAiDisabled(boolean aiDisabled) voidsetAttacking(boolean attacking) voidsetBaby(boolean baby) voidsetCanPickUpLoot(boolean canPickUpLoot) voidsetEquipmentDropChance(EquipmentSlot slot, float chance) voidsetForwardSpeed(float forwardSpeed) voidsetHoldingEntityId(int id) voidsetLeftHanded(boolean leftHanded) voidsetMovementSpeed(float movementSpeed) voidsetPathfindingPenalty(PathNodeType nodeType, float penalty) voidvoidsetPositionTarget(BlockPos target, int range) voidsetSidewaysSpeed(float sidewaysSpeed) voidsetTarget(@Nullable LivingEntity target) voidsetUpwardSpeed(float upwardSpeed) booleanspawnsTooManyForEachTry(int count) doublesquaredAttackRange(LivingEntity target) booleanstartRiding(Entity entity, boolean force) Starts ridingentity.protected voidswimUpward(TagKey<Fluid> fluid) voidtick()Ticks this entity.voidprotected final voidbooleanprotected floatturnHead(float bodyRotation, float headRotation) voidprotected voidupdateEnchantments(Random random, LocalDifficulty localDifficulty) protected voidprotected voidvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.LivingEntityaddPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damage, damageArmor, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSounds, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getHurtSound, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRandom, getRecentDamageSource, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldDropXp, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpMethods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilenced
- 
Field Details- 
MOB_FLAGS- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b:Laby;- intermediary - field_6193- Lnet/minecraft/class_1308;field_6193:Lnet/minecraft/class_2940;- named - MOB_FLAGS- Lnet/minecraft/entity/mob/MobEntity;MOB_FLAGS:Lnet/minecraft/entity/data/TrackedData;
 
- 
AI_DISABLED_FLAGprivate static final int AI_DISABLED_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbgb;c:I- intermediary - field_30088- Lnet/minecraft/class_1308;field_30088:I- named - AI_DISABLED_FLAG- Lnet/minecraft/entity/mob/MobEntity;AI_DISABLED_FLAG:I
 
- 
LEFT_HANDED_FLAGprivate static final int LEFT_HANDED_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbgb;d:I- intermediary - field_30089- Lnet/minecraft/class_1308;field_30089:I- named - LEFT_HANDED_FLAG- Lnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_FLAG:I
 
- 
ATTACKING_FLAGprivate static final int ATTACKING_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbgb;e:I- intermediary - field_30090- Lnet/minecraft/class_1308;field_30090:I- named - ATTACKING_FLAG- Lnet/minecraft/entity/mob/MobEntity;ATTACKING_FLAG:I
 
- 
MINIMUM_DROPPED_XP_PER_EQUIPMENTprotected static final int MINIMUM_DROPPED_XP_PER_EQUIPMENTThe minimum additional experience a mob will drop per item of equipment they have.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbgb;f:I- intermediary - field_30087- Lnet/minecraft/class_1308;field_30087:I- named - MINIMUM_DROPPED_XP_PER_EQUIPMENT- Lnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_XP_PER_EQUIPMENT:I
 
- 
ITEM_PICK_UP_RANGE_EXPANDER- Mappings:
- Namespace - Name - Mixin selector - official - bS- Lbgb;bS:Lhz;- intermediary - field_38386- Lnet/minecraft/class_1308;field_38386:Lnet/minecraft/class_2382;- named - ITEM_PICK_UP_RANGE_EXPANDER- Lnet/minecraft/entity/mob/MobEntity;ITEM_PICK_UP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
 
- 
BASE_SPAWN_EQUIPMENT_CHANCEpublic static final float BASE_SPAWN_EQUIPMENT_CHANCEThe base chance (before applying local difficulty) that this mob will spawn with equipment.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbgb;g:F- intermediary - field_30091- Lnet/minecraft/class_1308;field_30091:F- named - BASE_SPAWN_EQUIPMENT_CHANCE- Lnet/minecraft/entity/mob/MobEntity;BASE_SPAWN_EQUIPMENT_CHANCE:F
 
- 
DEFAULT_CAN_PICKUP_LOOT_CHANCEpublic static final float DEFAULT_CAN_PICKUP_LOOT_CHANCEUsed by Zombies to control the chance that they spawn with the ability to pick up loot.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bB- Lbgb;bB:F- intermediary - field_30083- Lnet/minecraft/class_1308;field_30083:F- named - DEFAULT_CAN_PICKUP_LOOT_CHANCE- Lnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICKUP_LOOT_CHANCE:F
 
- 
BASE_ENCHANTED_ARMOR_CHANCEpublic static final float BASE_ENCHANTED_ARMOR_CHANCEThe base chance (before applying difficulty) that a mob's equipped armor can become enchanted.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bC- Lbgb;bC:F- intermediary - field_30084- Lnet/minecraft/class_1308;field_30084:F- named - BASE_ENCHANTED_ARMOR_CHANCE- Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_ARMOR_CHANCE:F
 
- 
BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCEpublic static final float BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCEThe base chance (before applying difficulty) that a mob's equipped item can become enchanted.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bD- Lbgb;bD:F- intermediary - field_30085- Lnet/minecraft/class_1308;field_30085:F- named - BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE- Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE:F
 
- 
LEASH_KEY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bE- Lbgb;bE:Ljava/lang/String;- intermediary - field_30086- Lnet/minecraft/class_1308;field_30086:Ljava/lang/String;- named - LEASH_KEY- Lnet/minecraft/entity/mob/MobEntity;LEASH_KEY:Ljava/lang/String;
 
- 
DEFAULT_DROP_CHANCEpublic static final float DEFAULT_DROP_CHANCE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bF- Lbgb;bF:F- intermediary - field_34043- Lnet/minecraft/class_1308;field_34043:F- named - DEFAULT_DROP_CHANCE- Lnet/minecraft/entity/mob/MobEntity;DEFAULT_DROP_CHANCE:F
 
- 
field_38932public static final int field_38932- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bG- Lbgb;bG:I- intermediary - field_38932- Lnet/minecraft/class_1308;field_38932:I- named - field_38932- Lnet/minecraft/entity/mob/MobEntity;field_38932:I
 
- 
field_35039public static final int field_35039- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bH- Lbgb;bH:I- intermediary - field_35039- Lnet/minecraft/class_1308;field_35039:I- named - field_35039- Lnet/minecraft/entity/mob/MobEntity;field_35039:I
 
- 
ambientSoundChancepublic int ambientSoundChance- Mappings:
- Namespace - Name - Mixin selector - official - bI- Lbgb;bI:I- intermediary - field_6191- Lnet/minecraft/class_1308;field_6191:I- named - ambientSoundChance- Lnet/minecraft/entity/mob/MobEntity;ambientSoundChance:I
 
- 
experiencePointsprotected int experiencePoints- Mappings:
- Namespace - Name - Mixin selector - official - bJ- Lbgb;bJ:I- intermediary - field_6194- Lnet/minecraft/class_1308;field_6194:I- named - experiencePoints- Lnet/minecraft/entity/mob/MobEntity;experiencePoints:I
 
- 
lookControl- Mappings:
- Namespace - Name - Mixin selector - official - bK- Lbgb;bK:Lblx;- intermediary - field_6206- Lnet/minecraft/class_1308;field_6206:Lnet/minecraft/class_1333;- named - lookControl- Lnet/minecraft/entity/mob/MobEntity;lookControl:Lnet/minecraft/entity/ai/control/LookControl;
 
- 
moveControl- Mappings:
- Namespace - Name - Mixin selector - official - bL- Lbgb;bL:Lbly;- intermediary - field_6207- Lnet/minecraft/class_1308;field_6207:Lnet/minecraft/class_1335;- named - moveControl- Lnet/minecraft/entity/mob/MobEntity;moveControl:Lnet/minecraft/entity/ai/control/MoveControl;
 
- 
jumpControl- Mappings:
- Namespace - Name - Mixin selector - official - bM- Lbgb;bM:Lblw;- intermediary - field_6204- Lnet/minecraft/class_1308;field_6204:Lnet/minecraft/class_1334;- named - jumpControl- Lnet/minecraft/entity/mob/MobEntity;jumpControl:Lnet/minecraft/entity/ai/control/JumpControl;
 
- 
bodyControl- Mappings:
- Namespace - Name - Mixin selector - official - bT- Lbgb;bT:Lblt;- intermediary - field_6188- Lnet/minecraft/class_1308;field_6188:Lnet/minecraft/class_1330;- named - bodyControl- Lnet/minecraft/entity/mob/MobEntity;bodyControl:Lnet/minecraft/entity/ai/control/BodyControl;
 
- 
goalSelectorContains actions the entity can perform. These may consume, for example, the target entity as determined during thetargetSelector's execution.- Mappings:
- Namespace - Name - Mixin selector - official - bO- Lbgb;bO:Lbmw;- intermediary - field_6201- Lnet/minecraft/class_1308;field_6201:Lnet/minecraft/class_1355;- named - goalSelector- Lnet/minecraft/entity/mob/MobEntity;goalSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
 
- 
targetSelectorContains goals used to select this entity's target. Actions in this queue are executed first so the selected target is available to the rest of the AI's goals.- Mappings:
- Namespace - Name - Mixin selector - official - bP- Lbgb;bP:Lbmw;- intermediary - field_6185- Lnet/minecraft/class_1308;field_6185:Lnet/minecraft/class_1355;- named - targetSelector- Lnet/minecraft/entity/mob/MobEntity;targetSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
 
- 
target- Mappings:
- Namespace - Name - Mixin selector - official - bU- Lbgb;bU:Lbfz;- intermediary - field_6199- Lnet/minecraft/class_1308;field_6199:Lnet/minecraft/class_1309;- named - target- Lnet/minecraft/entity/mob/MobEntity;target:Lnet/minecraft/entity/LivingEntity;
 
- 
visibilityCache- Mappings:
- Namespace - Name - Mixin selector - official - bV- Lbgb;bV:Lbqe;- intermediary - field_6190- Lnet/minecraft/class_1308;field_6190:Lnet/minecraft/class_1413;- named - visibilityCache- Lnet/minecraft/entity/mob/MobEntity;visibilityCache:Lnet/minecraft/entity/mob/MobVisibilityCache;
 
- 
handItems- Mappings:
- Namespace - Name - Mixin selector - official - bW- Lbgb;bW:Lhn;- intermediary - field_6195- Lnet/minecraft/class_1308;field_6195:Lnet/minecraft/class_2371;- named - handItems- Lnet/minecraft/entity/mob/MobEntity;handItems:Lnet/minecraft/util/collection/DefaultedList;
 
- 
handDropChancesprotected final float[] handDropChances- Mappings:
- Namespace - Name - Mixin selector - official - bQ- Lbgb;bQ:[F- intermediary - field_6187- Lnet/minecraft/class_1308;field_6187:[F- named - handDropChances- Lnet/minecraft/entity/mob/MobEntity;handDropChances:[F
 
- 
armorItems- Mappings:
- Namespace - Name - Mixin selector - official - bX- Lbgb;bX:Lhn;- intermediary - field_6205- Lnet/minecraft/class_1308;field_6205:Lnet/minecraft/class_2371;- named - armorItems- Lnet/minecraft/entity/mob/MobEntity;armorItems:Lnet/minecraft/util/collection/DefaultedList;
 
- 
armorDropChancesprotected final float[] armorDropChances- Mappings:
- Namespace - Name - Mixin selector - official - bR- Lbgb;bR:[F- intermediary - field_6186- Lnet/minecraft/class_1308;field_6186:[F- named - armorDropChances- Lnet/minecraft/entity/mob/MobEntity;armorDropChances:[F
 
- 
canPickUpLootprivate boolean canPickUpLoot- Mappings:
- Namespace - Name - Mixin selector - official - bY- Lbgb;bY:Z- intermediary - field_6203- Lnet/minecraft/class_1308;field_6203:Z- named - canPickUpLoot- Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot:Z
 
- 
persistentprivate boolean persistent- Mappings:
- Namespace - Name - Mixin selector - official - bZ- Lbgb;bZ:Z- intermediary - field_6200- Lnet/minecraft/class_1308;field_6200:Z- named - persistent- Lnet/minecraft/entity/mob/MobEntity;persistent:Z
 
- 
pathfindingPenalties- Mappings:
- Namespace - Name - Mixin selector - official - ca- Lbgb;ca:Ljava/util/Map;- intermediary - field_6196- Lnet/minecraft/class_1308;field_6196:Ljava/util/Map;- named - pathfindingPenalties- Lnet/minecraft/entity/mob/MobEntity;pathfindingPenalties:Ljava/util/Map;
 
- 
lootTable- Mappings:
- Namespace - Name - Mixin selector - official - cb- Lbgb;cb:Lacq;- intermediary - field_6198- Lnet/minecraft/class_1308;field_6198:Lnet/minecraft/class_2960;- named - lootTable- Lnet/minecraft/entity/mob/MobEntity;lootTable:Lnet/minecraft/util/Identifier;
 
- 
lootTableSeedprivate long lootTableSeed- Mappings:
- Namespace - Name - Mixin selector - official - cc- Lbgb;cc:J- intermediary - field_6184- Lnet/minecraft/class_1308;field_6184:J- named - lootTableSeed- Lnet/minecraft/entity/mob/MobEntity;lootTableSeed:J
 
- 
holdingEntity- Mappings:
- Namespace - Name - Mixin selector - official - cd- Lbgb;cd:Lbfj;- intermediary - field_6202- Lnet/minecraft/class_1308;field_6202:Lnet/minecraft/class_1297;- named - holdingEntity- Lnet/minecraft/entity/mob/MobEntity;holdingEntity:Lnet/minecraft/entity/Entity;
 
- 
holdingEntityIdprivate int holdingEntityId- Mappings:
- Namespace - Name - Mixin selector - official - ce- Lbgb;ce:I- intermediary - field_18279- Lnet/minecraft/class_1308;field_18279:I- named - holdingEntityId- Lnet/minecraft/entity/mob/MobEntity;holdingEntityId:I
 
- 
leashNbt- Mappings:
- Namespace - Name - Mixin selector - official - cf- Lbgb;cf:Lqr;- intermediary - field_6192- Lnet/minecraft/class_1308;field_6192:Lnet/minecraft/class_2487;- named - leashNbt- Lnet/minecraft/entity/mob/MobEntity;leashNbt:Lnet/minecraft/nbt/NbtCompound;
 
- 
positionTarget- Mappings:
- Namespace - Name - Mixin selector - official - cg- Lbgb;cg:Lgu;- intermediary - field_18074- Lnet/minecraft/class_1308;field_18074:Lnet/minecraft/class_2338;- named - positionTarget- Lnet/minecraft/entity/mob/MobEntity;positionTarget:Lnet/minecraft/util/math/BlockPos;
 
- 
positionTargetRangeprivate float positionTargetRange- Mappings:
- Namespace - Name - Mixin selector - official - ch- Lbgb;ch:F- intermediary - field_18075- Lnet/minecraft/class_1308;field_18075:F- named - positionTargetRange- Lnet/minecraft/entity/mob/MobEntity;positionTargetRange:F
 
 
- 
- 
Constructor Details- 
MobEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj;<init>(Lbfn;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
 
 
- 
- 
Method Details- 
initGoalsprotected void initGoals()- Mappings:
- Namespace - Name - Mixin selector - official - x- Lbgb;x()V- intermediary - method_5959- Lnet/minecraft/class_1308;method_5959()V- named - initGoals- Lnet/minecraft/entity/mob/MobEntity;initGoals()V
 
- 
createMobAttributes- Mappings:
- Namespace - Name - Mixin selector - official - y- Lbgb;y()Lbhf$a;- intermediary - method_26828- Lnet/minecraft/class_1308;method_26828()Lnet/minecraft/class_5132$class_5133;- named - createMobAttributes- Lnet/minecraft/entity/mob/MobEntity;createMobAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
 
- 
movesIndependentlyprotected boolean movesIndependently()When true, causes this entity to take over pathfinding for its controlling passenger.- Mappings:
- Namespace - Name - Mixin selector - official - z- Lbgb;z()Z- intermediary - method_26323- Lnet/minecraft/class_1308;method_26323()Z- named - movesIndependently- Lnet/minecraft/entity/mob/MobEntity;movesIndependently()Z
 
- 
getPathfindingPenalty- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Ldxp;)F- intermediary - method_5944- Lnet/minecraft/class_1308;method_5944(Lnet/minecraft/class_7;)F- named - getPathfindingPenalty- Lnet/minecraft/entity/mob/MobEntity;getPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;)F
 
- 
setPathfindingPenalty- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Ldxp;F)V- intermediary - method_5941- Lnet/minecraft/class_1308;method_5941(Lnet/minecraft/class_7;F)V- named - setPathfindingPenalty- Lnet/minecraft/entity/mob/MobEntity;setPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;F)V
 
- 
onStartPathfindingpublic void onStartPathfinding()- Mappings:
- Namespace - Name - Mixin selector - official - A- Lbgb;A()V- intermediary - method_51504- Lnet/minecraft/class_1308;method_51504()V- named - onStartPathfinding- Lnet/minecraft/entity/mob/MobEntity;onStartPathfinding()V
 
- 
onFinishPathfindingpublic void onFinishPathfinding()- Mappings:
- Namespace - Name - Mixin selector - official - C- Lbgb;C()V- intermediary - method_51503- Lnet/minecraft/class_1308;method_51503()V- named - onFinishPathfinding- Lnet/minecraft/entity/mob/MobEntity;onFinishPathfinding()V
 
- 
createBodyControl- Mappings:
- Namespace - Name - Mixin selector - official - D- Lbgb;D()Lblt;- intermediary - method_5963- Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;- named - createBodyControl- Lnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
 
- 
getLookControl- Mappings:
- Namespace - Name - Mixin selector - official - E- Lbgb;E()Lblx;- intermediary - method_5988- Lnet/minecraft/class_1308;method_5988()Lnet/minecraft/class_1333;- named - getLookControl- Lnet/minecraft/entity/mob/MobEntity;getLookControl()Lnet/minecraft/entity/ai/control/LookControl;
 
- 
getMoveControl- Mappings:
- Namespace - Name - Mixin selector - official - G- Lbgb;G()Lbly;- intermediary - method_5962- Lnet/minecraft/class_1308;method_5962()Lnet/minecraft/class_1335;- named - getMoveControl- Lnet/minecraft/entity/mob/MobEntity;getMoveControl()Lnet/minecraft/entity/ai/control/MoveControl;
 
- 
getJumpControl- Mappings:
- Namespace - Name - Mixin selector - official - I- Lbgb;I()Lblw;- intermediary - method_5993- Lnet/minecraft/class_1308;method_5993()Lnet/minecraft/class_1334;- named - getJumpControl- Lnet/minecraft/entity/mob/MobEntity;getJumpControl()Lnet/minecraft/entity/ai/control/JumpControl;
 
- 
getControllingPassengerReturns the passenger in control of this entity, ornullif there is none.Rideable entities should override this to return the entity. This is usually #getFirstPassenger.- Overrides:
- getControllingPassengerin class- Entity
- Returns:
- the passenger in control of this entity, or nullif there is none
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cL- Lbfj;cL()Lbfz;- intermediary - method_5642- Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;- named - getControllingPassenger- Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
 
- 
getVisibilityCache- Mappings:
- Namespace - Name - Mixin selector - official - K- Lbgb;K()Lbqe;- intermediary - method_5985- Lnet/minecraft/class_1308;method_5985()Lnet/minecraft/class_1413;- named - getVisibilityCache- Lnet/minecraft/entity/mob/MobEntity;getVisibilityCache()Lnet/minecraft/entity/mob/MobVisibilityCache;
 
- 
getTarget
- 
setTarget- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbgb;h(Lbfz;)V- intermediary - method_5980- Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)V- named - setTarget- Lnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)V
 
- 
canTarget- Overrides:
- canTargetin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lbfn;)Z- intermediary - method_5973- Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Z- named - canTarget- Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Z
 
- 
canUseRangedWeapon- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lcgp;)Z- intermediary - method_25938- Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Z- named - canUseRangedWeapon- Lnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
 
- 
onEatingGrasspublic void onEatingGrass()- Mappings:
- Namespace - Name - Mixin selector - official - L- Lbgb;L()V- intermediary - method_5983- Lnet/minecraft/class_1308;method_5983()V- named - onEatingGrass- Lnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
 
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Overrides:
- initDataTrackerin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
getMinAmbientSoundDelaypublic int getMinAmbientSoundDelay()- Mappings:
- Namespace - Name - Mixin selector - official - M- Lbgb;M()I- intermediary - method_5970- Lnet/minecraft/class_1308;method_5970()I- named - getMinAmbientSoundDelay- Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
 
- 
playAmbientSoundpublic void playAmbientSound()- Mappings:
- Namespace - Name - Mixin selector - official - N- Lbgb;N()V- intermediary - method_5966- Lnet/minecraft/class_1308;method_5966()V- named - playAmbientSound- Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
 
- 
baseTickpublic void baseTick()- Overrides:
- baseTickin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - ao- Lbfj;ao()V- intermediary - method_5670- Lnet/minecraft/class_1297;method_5670()V- named - baseTick- Lnet/minecraft/entity/Entity;baseTick()V
 
- 
playHurtSound- Overrides:
- playHurtSoundin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbfz;e(Lben;)V- intermediary - method_6013- Lnet/minecraft/class_1309;method_6013(Lnet/minecraft/class_1282;)V- named - playHurtSound- Lnet/minecraft/entity/LivingEntity;playHurtSound(Lnet/minecraft/entity/damage/DamageSource;)V
 
- 
resetSoundDelayprivate void resetSoundDelay()- Mappings:
- Namespace - Name - Mixin selector - official - q- Lbgb;q()V- intermediary - method_5975- Lnet/minecraft/class_1308;method_5975()V- named - resetSoundDelay- Lnet/minecraft/entity/mob/MobEntity;resetSoundDelay()V
 
- 
getXpToDroppublic int getXpToDrop()Called when this entity is killed and returns the amount of experience to drop.- Overrides:
- getXpToDropin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - ea- Lbfz;ea()I- intermediary - method_6110- Lnet/minecraft/class_1309;method_6110()I- named - getXpToDrop- Lnet/minecraft/entity/LivingEntity;getXpToDrop()I
 
- 
playSpawnEffectspublic void playSpawnEffects()- Mappings:
- Namespace - Name - Mixin selector - official - O- Lbgb;O()V- intermediary - method_5990- Lnet/minecraft/class_1308;method_5990()V- named - playSpawnEffects- Lnet/minecraft/entity/mob/MobEntity;playSpawnEffects()V
 
- 
handleStatuspublic 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:
- handleStatusin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(B)V- intermediary - method_5711- Lnet/minecraft/class_1297;method_5711(B)V- named - handleStatus- Lnet/minecraft/entity/Entity;handleStatus(B)V
 
- 
tickpublic void tick()Ticks this entity.- Overrides:
- tickin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbfj;l()V- intermediary - method_5773- Lnet/minecraft/class_1297;method_5773()V- named - tick- Lnet/minecraft/entity/Entity;tick()V
 
- 
updateGoalControlsprotected void updateGoalControls()- Mappings:
- Namespace - Name - Mixin selector - official - P- Lbgb;P()V- intermediary - method_20417- Lnet/minecraft/class_1308;method_20417()V- named - updateGoalControls- Lnet/minecraft/entity/mob/MobEntity;updateGoalControls()V
 
- 
turnHeadprotected float turnHead(float bodyRotation, float headRotation) - Overrides:
- turnHeadin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbfz;e(FF)F- intermediary - method_6031- Lnet/minecraft/class_1309;method_6031(FF)F- named - turnHead- Lnet/minecraft/entity/LivingEntity;turnHead(FF)F
 
- 
getAmbientSound- Mappings:
- Namespace - Name - Mixin selector - official - s- Lbgb;s()Lamg;- intermediary - method_5994- Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;- named - getAmbientSound- Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. - Overrides:
- writeCustomDataToNbtin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
- readCustomDataFromNbtin class- LivingEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
dropLoot- Overrides:
- dropLootin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lben;Z)V- intermediary - method_16077- Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_1282;Z)V- named - dropLoot- Lnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/entity/damage/DamageSource;Z)V
 
- 
getLootTable- Overrides:
- getLootTablein class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - ew- Lbfz;ew()Lacq;- intermediary - method_5989- Lnet/minecraft/class_1309;method_5989()Lnet/minecraft/class_2960;- named - getLootTable- Lnet/minecraft/entity/LivingEntity;getLootTable()Lnet/minecraft/util/Identifier;
 
- 
getLootTableId- Mappings:
- Namespace - Name - Mixin selector - official - Q- Lbgb;Q()Lacq;- intermediary - method_5991- Lnet/minecraft/class_1308;method_5991()Lnet/minecraft/class_2960;- named - getLootTableId- Lnet/minecraft/entity/mob/MobEntity;getLootTableId()Lnet/minecraft/util/Identifier;
 
- 
getLootTableSeedpublic long getLootTableSeed()- Overrides:
- getLootTableSeedin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - ex- Lbfz;ex()J- intermediary - method_51851- Lnet/minecraft/class_1309;method_51851()J- named - getLootTableSeed- Lnet/minecraft/entity/LivingEntity;getLootTableSeed()J
 
- 
setForwardSpeedpublic void setForwardSpeed(float forwardSpeed) - Mappings:
- Namespace - Name - Mixin selector - official - z- Lbgb;z(F)V- intermediary - method_5930- Lnet/minecraft/class_1308;method_5930(F)V- named - setForwardSpeed- Lnet/minecraft/entity/mob/MobEntity;setForwardSpeed(F)V
 
- 
setUpwardSpeedpublic void setUpwardSpeed(float upwardSpeed) - Mappings:
- Namespace - Name - Mixin selector - official - A- Lbgb;A(F)V- intermediary - method_5976- Lnet/minecraft/class_1308;method_5976(F)V- named - setUpwardSpeed- Lnet/minecraft/entity/mob/MobEntity;setUpwardSpeed(F)V
 
- 
setSidewaysSpeedpublic void setSidewaysSpeed(float sidewaysSpeed) - Mappings:
- Namespace - Name - Mixin selector - official - B- Lbgb;B(F)V- intermediary - method_5938- Lnet/minecraft/class_1308;method_5938(F)V- named - setSidewaysSpeed- Lnet/minecraft/entity/mob/MobEntity;setSidewaysSpeed(F)V
 
- 
setMovementSpeedpublic void setMovementSpeed(float movementSpeed) - Overrides:
- setMovementSpeedin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - w- Lbfz;w(F)V- intermediary - method_6125- Lnet/minecraft/class_1309;method_6125(F)V- named - setMovementSpeed- Lnet/minecraft/entity/LivingEntity;setMovementSpeed(F)V
 
- 
tickMovementpublic void tickMovement()- Overrides:
- tickMovementin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b_- Lbfz;b_()V- intermediary - method_6007- Lnet/minecraft/class_1309;method_6007()V- named - tickMovement- Lnet/minecraft/entity/LivingEntity;tickMovement()V
 
- 
getItemPickUpRangeExpander- Mappings:
- Namespace - Name - Mixin selector - official - R- Lbgb;R()Lhz;- intermediary - method_42646- Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;- named - getItemPickUpRangeExpander- Lnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;
 
- 
loot- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lbvh;)V- intermediary - method_5949- Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_1542;)V- named - loot- Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/entity/ItemEntity;)V
 
- 
tryEquip- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbgb;i(Lcfz;)Lcfz;- intermediary - method_24523- Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;- named - tryEquip- Lnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
 
- 
equipLootStack- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lbfo;Lcfz;)V- intermediary - method_24834- Lnet/minecraft/class_1308;method_24834(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V- named - equipLootStack- Lnet/minecraft/entity/mob/MobEntity;equipLootStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
 
- 
updateDropChances- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbgb;e(Lbfo;)V- intermediary - method_25939- Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)V- named - updateDropChances- Lnet/minecraft/entity/mob/MobEntity;updateDropChances(Lnet/minecraft/entity/EquipmentSlot;)V
 
- 
prefersNewEquipment- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lcfz;Lcfz;)Z- intermediary - method_5955- Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z- named - prefersNewEquipment- Lnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
 
- 
prefersNewDamageableItem- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbgb;c(Lcfz;Lcfz;)Z- intermediary - method_26320- Lnet/minecraft/class_1308;method_26320(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z- named - prefersNewDamageableItem- Lnet/minecraft/entity/mob/MobEntity;prefersNewDamageableItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
 
- 
canPickupItem- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbgb;j(Lcfz;)Z- intermediary - method_5939- Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Z- named - canPickupItem- Lnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Z
 
- 
canGather- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbgb;k(Lcfz;)Z- intermediary - method_20820- Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Z- named - canGather- Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Z
 
- 
canImmediatelyDespawnpublic boolean canImmediatelyDespawn(double distanceSquared) - Mappings:
- Namespace - Name - Mixin selector - official - h- Lbgb;h(D)Z- intermediary - method_5974- Lnet/minecraft/class_1308;method_5974(D)Z- named - canImmediatelyDespawn- Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
 
- 
cannotDespawnpublic boolean cannotDespawn()- Mappings:
- Namespace - Name - Mixin selector - official - T- Lbgb;T()Z- intermediary - method_17326- Lnet/minecraft/class_1308;method_17326()Z- named - cannotDespawn- Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
 
- 
isDisallowedInPeacefulprotected boolean isDisallowedInPeaceful()- Mappings:
- Namespace - Name - Mixin selector - official - U- Lbgb;U()Z- intermediary - method_23734- Lnet/minecraft/class_1308;method_23734()Z- named - isDisallowedInPeaceful- Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
 
- 
checkDespawnpublic void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call Entity.discard().- Overrides:
- checkDespawnin class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - du- Lbfj;du()V- intermediary - method_5982- Lnet/minecraft/class_1297;method_5982()V- named - checkDespawn- Lnet/minecraft/entity/Entity;checkDespawn()V
 
- 
tickNewAiprotected final void tickNewAi()- Overrides:
- tickNewAiin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - fc- Lbfz;fc()V- intermediary - method_6023- Lnet/minecraft/class_1309;method_6023()V- named - tickNewAi- Lnet/minecraft/entity/LivingEntity;tickNewAi()V
 
- 
sendAiDebugDataprotected void sendAiDebugData()- Mappings:
- Namespace - Name - Mixin selector - official - V- Lbgb;V()V- intermediary - method_18409- Lnet/minecraft/class_1308;method_18409()V- named - sendAiDebugData- Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
 
- 
mobTickprotected void mobTick()- Mappings:
- Namespace - Name - Mixin selector - official - W- Lbgb;W()V- intermediary - method_5958- Lnet/minecraft/class_1308;method_5958()V- named - mobTick- Lnet/minecraft/entity/mob/MobEntity;mobTick()V
 
- 
getMaxLookPitchChangepublic int getMaxLookPitchChange()Returns the maximum degrees which the pitch can change when looking.This is used by the look control. It can return from 1for entities that can hardly raise their head, like axolotls or dolphins, or180for entities that can freely raise and lower their head, like guardians. The default return value is40.- Returns:
- the maximum degrees which the pitch can change when looking
- Mappings:
- Namespace - Name - Mixin selector - official - X- Lbgb;X()I- intermediary - method_5978- Lnet/minecraft/class_1308;method_5978()I- named - getMaxLookPitchChange- Lnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()I
 
- 
getMaxHeadRotationpublic int getMaxHeadRotation()Returns the maximum degrees which the head yaw can differ from the body yaw.This is used by the body control. It can return from 1for entities that can hardly rotate their head, like axolotls or dolphins, or180for entities that can freely rotate their head, like shulkers. The default return value is75.- Returns:
- the maximum degrees which the head yaw can differ from the body yaw
- Mappings:
- Namespace - Name - Mixin selector - official - fC- Lbgb;fC()I- intermediary - method_5986- Lnet/minecraft/class_1308;method_5986()I- named - getMaxHeadRotation- Lnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()I
 
- 
getMaxLookYawChangepublic int getMaxLookYawChange()Returns the maximum degrees which the yaw can change when looking.This is used by the look control. The default return value is 10.- Returns:
- the maximum degrees which the yaw can change when looking
- Mappings:
- Namespace - Name - Mixin selector - official - fD- Lbgb;fD()I- intermediary - method_20240- Lnet/minecraft/class_1308;method_20240()I- named - getMaxLookYawChange- Lnet/minecraft/entity/mob/MobEntity;getMaxLookYawChange()I
 
- 
lookAtEntity- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbfj;FF)V- intermediary - method_5951- Lnet/minecraft/class_1308;method_5951(Lnet/minecraft/class_1297;FF)V- named - lookAtEntity- Lnet/minecraft/entity/mob/MobEntity;lookAtEntity(Lnet/minecraft/entity/Entity;FF)V
 
- 
changeAngleprivate float changeAngle(float from, float to, float max) Changes the angle fromfromtoto, or bymaxdegrees iftois too big a change.This is the same as LookControl.changeAngle(float, float, float).- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(FFF)F- intermediary - method_5960- Lnet/minecraft/class_1308;method_5960(FFF)F- named - changeAngle- Lnet/minecraft/entity/mob/MobEntity;changeAngle(FFF)F
 
- 
canMobSpawnpublic static boolean canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbfn;Lcmn;Lbgd;Lgu;Lapf;)Z- intermediary - method_20636- Lnet/minecraft/class_1308;method_20636(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z- named - canMobSpawn- Lnet/minecraft/entity/mob/MobEntity;canMobSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
 
- 
canSpawn- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lcmn;Lbgd;)Z- intermediary - method_5979- Lnet/minecraft/class_1308;method_5979(Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;)Z- named - canSpawn- Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;)Z
 
- 
canSpawn- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lcmp;)Z- intermediary - method_5957- Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z- named - canSpawn- Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
 
- 
getLimitPerChunkpublic int getLimitPerChunk()- Mappings:
- Namespace - Name - Mixin selector - official - fE- Lbgb;fE()I- intermediary - method_5945- Lnet/minecraft/class_1308;method_5945()I- named - getLimitPerChunk- Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
 
- 
spawnsTooManyForEachTrypublic boolean spawnsTooManyForEachTry(int count) - Mappings:
- Namespace - Name - Mixin selector - official - d- Lbgb;d(I)Z- intermediary - method_5969- Lnet/minecraft/class_1308;method_5969(I)Z- named - spawnsTooManyForEachTry- Lnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(I)Z
 
- 
getSafeFallDistancepublic int getSafeFallDistance()Returns the maximum height of a fall the entity takes during pathfinding.- Overrides:
- getSafeFallDistancein class- Entity
- Returns:
- the maximum height of a fall the entity takes during pathfinding
- Mappings:
- Namespace - Name - Mixin selector - official - cr- Lbfj;cr()I- intermediary - method_5850- Lnet/minecraft/class_1297;method_5850()I- named - getSafeFallDistance- Lnet/minecraft/entity/Entity;getSafeFallDistance()I
 
- 
getHandItemsReturns an iterable of item stacks held in the hands.- Overrides:
- getHandItemsin class- Entity
- Returns:
- an iterable of item stacks held in the hands
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bI- Lbfj;bI()Ljava/lang/Iterable;- intermediary - method_5877- Lnet/minecraft/class_1297;method_5877()Ljava/lang/Iterable;- named - getHandItems- Lnet/minecraft/entity/Entity;getHandItems()Ljava/lang/Iterable;
 
- 
getArmorItemsReturns an iterable of item stacks equipped as armor.- Specified by:
- getArmorItemsin class- LivingEntity
- Returns:
- an iterable of item stacks equipped as armor
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - bJ- Lbfj;bJ()Ljava/lang/Iterable;- intermediary - method_5661- Lnet/minecraft/class_1297;method_5661()Ljava/lang/Iterable;- named - getArmorItems- Lnet/minecraft/entity/Entity;getArmorItems()Ljava/lang/Iterable;
 
- 
getEquippedStack- Specified by:
- getEquippedStackin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfz;c(Lbfo;)Lcfz;- intermediary - method_6118- Lnet/minecraft/class_1309;method_6118(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;- named - getEquippedStack- Lnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;
 
- 
equipStackEquipsstackatslot.This is also used to set an entity's mainhand or offhand stack. This overwrites any stacks present in that slot without dropping them.- Specified by:
- equipStackin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lbfo;Lcfz;)V- intermediary - method_5673- Lnet/minecraft/class_1297;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V- named - equipStack- Lnet/minecraft/entity/Entity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
 
- 
dropEquipment- Overrides:
- dropEquipmentin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfz;a(Lben;IZ)V- intermediary - method_6099- Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)V- named - dropEquipment- Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
 
- 
getDropChance- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbgb;f(Lbfo;)F- intermediary - method_5929- Lnet/minecraft/class_1308;method_5929(Lnet/minecraft/class_1304;)F- named - getDropChance- Lnet/minecraft/entity/mob/MobEntity;getDropChance(Lnet/minecraft/entity/EquipmentSlot;)F
 
- 
initEquipment- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lapf;Lbdv;)V- intermediary - method_5964- Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V- named - initEquipment- Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
 
- 
getEquipmentForSlot@Nullable public static @Nullable Item getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbfo;I)Lcfu;- intermediary - method_5948- Lnet/minecraft/class_1308;method_5948(Lnet/minecraft/class_1304;I)Lnet/minecraft/class_1792;- named - getEquipmentForSlot- Lnet/minecraft/entity/mob/MobEntity;getEquipmentForSlot(Lnet/minecraft/entity/EquipmentSlot;I)Lnet/minecraft/item/Item;
 
- 
updateEnchantments- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lapf;Lbdv;)V- intermediary - method_5984- Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V- named - updateEnchantments- Lnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
 
- 
enchantMainHandItem- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lapf;F)V- intermediary - method_30759- Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5819;F)V- named - enchantMainHandItem- Lnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/util/math/random/Random;F)V
 
- 
enchantEquipment- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lapf;FLbfo;)V- intermediary - method_30758- Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5819;FLnet/minecraft/class_1304;)V- named - enchantEquipment- Lnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/util/math/random/Random;FLnet/minecraft/entity/EquipmentSlot;)V
 
- 
initialize@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lcnb;Lbdv;Lbgd;Lbgt;Lqr;)Lbgt;- 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_2487;)Lnet/minecraft/class_1315;- 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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
 
- 
setPersistentpublic void setPersistent()- Mappings:
- Namespace - Name - Mixin selector - official - fF- Lbgb;fF()V- intermediary - method_5971- Lnet/minecraft/class_1308;method_5971()V- named - setPersistent- Lnet/minecraft/entity/mob/MobEntity;setPersistent()V
 
- 
setEquipmentDropChance- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbfo;F)V- intermediary - method_5946- Lnet/minecraft/class_1308;method_5946(Lnet/minecraft/class_1304;F)V- named - setEquipmentDropChance- Lnet/minecraft/entity/mob/MobEntity;setEquipmentDropChance(Lnet/minecraft/entity/EquipmentSlot;F)V
 
- 
canPickUpLootpublic boolean canPickUpLoot()- Mappings:
- Namespace - Name - Mixin selector - official - fG- Lbgb;fG()Z- intermediary - method_5936- Lnet/minecraft/class_1308;method_5936()Z- named - canPickUpLoot- Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot()Z
 
- 
setCanPickUpLootpublic void setCanPickUpLoot(boolean canPickUpLoot) - Mappings:
- Namespace - Name - Mixin selector - official - s- Lbgb;s(Z)V- intermediary - method_5952- Lnet/minecraft/class_1308;method_5952(Z)V- named - setCanPickUpLoot- Lnet/minecraft/entity/mob/MobEntity;setCanPickUpLoot(Z)V
 
- 
canEquip- Overrides:
- canEquipin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbfz;f(Lcfz;)Z- intermediary - method_18397- Lnet/minecraft/class_1309;method_18397(Lnet/minecraft/class_1799;)Z- named - canEquip- Lnet/minecraft/entity/LivingEntity;canEquip(Lnet/minecraft/item/ItemStack;)Z
 
- 
isPersistentpublic boolean isPersistent()- Mappings:
- Namespace - Name - Mixin selector - official - fH- Lbgb;fH()Z- intermediary - method_5947- Lnet/minecraft/class_1308;method_5947()Z- named - isPersistent- Lnet/minecraft/entity/mob/MobEntity;isPersistent()Z
 
- 
interactCalled when a player interacts with this entity.- Overrides:
- interactin class- Entity
- Parameters:
- player- the player
- hand- the hand the player used to interact with this entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lbyo;Lbdw;)Lbdx;- intermediary - method_5688- Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;- named - interact- Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
 
- 
interactWithItem- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbgb;c(Lbyo;Lbdw;)Lbdx;- intermediary - method_29506- Lnet/minecraft/class_1308;method_29506(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;- named - interactWithItem- Lnet/minecraft/entity/mob/MobEntity;interactWithItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
 
- 
onPlayerSpawnedChild- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbyo;Lbgb;)V- intermediary - method_18249- Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)V- named - onPlayerSpawnedChild- Lnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)V
 
- 
interactMob- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lbyo;Lbdw;)Lbdx;- intermediary - method_5992- Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;- named - interactMob- Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
 
- 
isInWalkTargetRangepublic boolean isInWalkTargetRange()- Mappings:
- Namespace - Name - Mixin selector - official - fI- Lbgb;fI()Z- intermediary - method_18411- Lnet/minecraft/class_1308;method_18411()Z- named - isInWalkTargetRange- Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange()Z
 
- 
isInWalkTargetRange- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lgu;)Z- intermediary - method_18407- Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Z- named - isInWalkTargetRange- Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange(Lnet/minecraft/util/math/BlockPos;)Z
 
- 
setPositionTarget- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lgu;I)V- intermediary - method_18408- Lnet/minecraft/class_1308;method_18408(Lnet/minecraft/class_2338;I)V- named - setPositionTarget- Lnet/minecraft/entity/mob/MobEntity;setPositionTarget(Lnet/minecraft/util/math/BlockPos;I)V
 
- 
getPositionTarget- Mappings:
- Namespace - Name - Mixin selector - official - fJ- Lbgb;fJ()Lgu;- intermediary - method_18412- Lnet/minecraft/class_1308;method_18412()Lnet/minecraft/class_2338;- named - getPositionTarget- Lnet/minecraft/entity/mob/MobEntity;getPositionTarget()Lnet/minecraft/util/math/BlockPos;
 
- 
getPositionTargetRangepublic float getPositionTargetRange()- Mappings:
- Namespace - Name - Mixin selector - official - fK- Lbgb;fK()F- intermediary - method_18413- Lnet/minecraft/class_1308;method_18413()F- named - getPositionTargetRange- Lnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()F
 
- 
clearPositionTargetpublic void clearPositionTarget()- Mappings:
- Namespace - Name - Mixin selector - official - fL- Lbgb;fL()V- intermediary - method_35055- Lnet/minecraft/class_1308;method_35055()V- named - clearPositionTarget- Lnet/minecraft/entity/mob/MobEntity;clearPositionTarget()V
 
- 
hasPositionTargetpublic boolean hasPositionTarget()- Mappings:
- Namespace - Name - Mixin selector - official - fM- Lbgb;fM()Z- intermediary - method_18410- Lnet/minecraft/class_1308;method_18410()Z- named - hasPositionTarget- Lnet/minecraft/entity/mob/MobEntity;hasPositionTarget()Z
 
- 
convertToConverts this entity to the providedentityType.The new entity will keep many of the properties set for this entity, including its vehicle, its name and whether it is persistent or not. If keepEquipmentistrue, it will also keep its equipment.- Parameters:
- entityType- the entity type to convert to
- keepEquipment- whether the equipment of this entity should be kept
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbfn;Z)Lbgb;- intermediary - method_29243- Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Z)Lnet/minecraft/class_1308;- named - convertTo- Lnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Z)Lnet/minecraft/entity/mob/MobEntity;
 
- 
updateLeashprotected void updateLeash()- Mappings:
- Namespace - Name - Mixin selector - official - fN- Lbgb;fN()V- intermediary - method_5995- Lnet/minecraft/class_1308;method_5995()V- named - updateLeash- Lnet/minecraft/entity/mob/MobEntity;updateLeash()V
 
- 
detachLeashpublic void detachLeash(boolean sendPacket, boolean dropItem) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(ZZ)V- intermediary - method_5932- Lnet/minecraft/class_1308;method_5932(ZZ)V- named - detachLeash- Lnet/minecraft/entity/mob/MobEntity;detachLeash(ZZ)V
 
- 
canBeLeashedBy- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbyo;)Z- intermediary - method_5931- Lnet/minecraft/class_1308;method_5931(Lnet/minecraft/class_1657;)Z- named - canBeLeashedBy- Lnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
 
- 
isLeashedpublic boolean isLeashed()- Mappings:
- Namespace - Name - Mixin selector - official - fO- Lbgb;fO()Z- intermediary - method_5934- Lnet/minecraft/class_1308;method_5934()Z- named - isLeashed- Lnet/minecraft/entity/mob/MobEntity;isLeashed()Z
 
- 
getHoldingEntity- Mappings:
- Namespace - Name - Mixin selector - official - fP- Lbgb;fP()Lbfj;- intermediary - method_5933- Lnet/minecraft/class_1308;method_5933()Lnet/minecraft/class_1297;- named - getHoldingEntity- Lnet/minecraft/entity/mob/MobEntity;getHoldingEntity()Lnet/minecraft/entity/Entity;
 
- 
attachLeash- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbgb;b(Lbfj;Z)V- intermediary - method_5954- Lnet/minecraft/class_1308;method_5954(Lnet/minecraft/class_1297;Z)V- named - attachLeash- Lnet/minecraft/entity/mob/MobEntity;attachLeash(Lnet/minecraft/entity/Entity;Z)V
 
- 
setHoldingEntityIdpublic void setHoldingEntityId(int id) - Mappings:
- Namespace - Name - Mixin selector - official - r- Lbgb;r(I)V- intermediary - method_18810- Lnet/minecraft/class_1308;method_18810(I)V- named - setHoldingEntityId- Lnet/minecraft/entity/mob/MobEntity;setHoldingEntityId(I)V
 
- 
startRidingStarts ridingentity.For example, player.startRiding(horse)causes the player to ride a horse; the opposite,horse.startRiding(player), will cause the horse to ride a player.This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa) unless forceistrue. If this entity is already riding another entity, it will stop riding that entity first.- Overrides:
- startRidingin class- Entity
- Parameters:
- force- whether to bypass the entity's rideability check
- Returns:
- whether this entity successfully started riding
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lbfj;Z)Z- intermediary - method_5873- Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z- named - startRiding- Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
 
- 
readLeashNbtprivate void readLeashNbt()- Mappings:
- Namespace - Name - Mixin selector - official - fV- Lbgb;fV()V- intermediary - method_5940- Lnet/minecraft/class_1308;method_5940()V- named - readLeashNbt- Lnet/minecraft/entity/mob/MobEntity;readLeashNbt()V
 
- 
canMoveVoluntarilypublic boolean canMoveVoluntarily()- Overrides:
- canMoveVoluntarilyin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - cV- Lbfj;cV()Z- intermediary - method_6034- Lnet/minecraft/class_1297;method_6034()Z- named - canMoveVoluntarily- Lnet/minecraft/entity/Entity;canMoveVoluntarily()Z
 
- 
setAiDisabledpublic void setAiDisabled(boolean aiDisabled) - Mappings:
- Namespace - Name - Mixin selector - official - t- Lbgb;t(Z)V- intermediary - method_5977- Lnet/minecraft/class_1308;method_5977(Z)V- named - setAiDisabled- Lnet/minecraft/entity/mob/MobEntity;setAiDisabled(Z)V
 
- 
setLeftHandedpublic void setLeftHanded(boolean leftHanded) - Mappings:
- Namespace - Name - Mixin selector - official - u- Lbgb;u(Z)V- intermediary - method_5937- Lnet/minecraft/class_1308;method_5937(Z)V- named - setLeftHanded- Lnet/minecraft/entity/mob/MobEntity;setLeftHanded(Z)V
 
- 
setAttackingpublic void setAttacking(boolean attacking) - Mappings:
- Namespace - Name - Mixin selector - official - v- Lbgb;v(Z)V- intermediary - method_19540- Lnet/minecraft/class_1308;method_19540(Z)V- named - setAttacking- Lnet/minecraft/entity/mob/MobEntity;setAttacking(Z)V
 
- 
isAiDisabledpublic boolean isAiDisabled()- Mappings:
- Namespace - Name - Mixin selector - official - fQ- Lbgb;fQ()Z- intermediary - method_5987- Lnet/minecraft/class_1308;method_5987()Z- named - isAiDisabled- Lnet/minecraft/entity/mob/MobEntity;isAiDisabled()Z
 
- 
isLeftHandedpublic boolean isLeftHanded()- Mappings:
- Namespace - Name - Mixin selector - official - fR- Lbgb;fR()Z- intermediary - method_5961- Lnet/minecraft/class_1308;method_5961()Z- named - isLeftHanded- Lnet/minecraft/entity/mob/MobEntity;isLeftHanded()Z
 
- 
isAttackingpublic boolean isAttacking()- Mappings:
- Namespace - Name - Mixin selector - official - fS- Lbgb;fS()Z- intermediary - method_6510- Lnet/minecraft/class_1308;method_6510()Z- named - isAttacking- Lnet/minecraft/entity/mob/MobEntity;isAttacking()Z
 
- 
setBabypublic void setBaby(boolean baby) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Z)V- intermediary - method_7217- Lnet/minecraft/class_1308;method_7217(Z)V- named - setBaby- Lnet/minecraft/entity/mob/MobEntity;setBaby(Z)V
 
- 
getMainArm- Specified by:
- getMainArmin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - fh- Lbfz;fh()Lbft;- intermediary - method_6068- Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;- named - getMainArm- Lnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;
 
- 
squaredAttackRange- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbgb;i(Lbfz;)D- intermediary - method_33191- Lnet/minecraft/class_1308;method_33191(Lnet/minecraft/class_1309;)D- named - squaredAttackRange- Lnet/minecraft/entity/mob/MobEntity;squaredAttackRange(Lnet/minecraft/entity/LivingEntity;)D
 
- 
getSquaredDistanceToAttackPosOf- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbgb;j(Lbfz;)D- intermediary - method_47922- Lnet/minecraft/class_1308;method_47922(Lnet/minecraft/class_1309;)D- named - getSquaredDistanceToAttackPosOf- Lnet/minecraft/entity/mob/MobEntity;getSquaredDistanceToAttackPosOf(Lnet/minecraft/entity/LivingEntity;)D
 
- 
isInAttackRange- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbgb;k(Lbfz;)Z- intermediary - method_42150- Lnet/minecraft/class_1308;method_42150(Lnet/minecraft/class_1309;)Z- named - isInAttackRange- Lnet/minecraft/entity/mob/MobEntity;isInAttackRange(Lnet/minecraft/entity/LivingEntity;)Z
 
- 
tryAttack- Overrides:
- tryAttackin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - z- Lbfz;z(Lbfj;)Z- intermediary - method_6121- Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Z- named - tryAttack- Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
 
- 
disablePlayerShield- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbgb;a(Lbyo;Lcfz;Lcfz;)V- intermediary - method_24521- Lnet/minecraft/class_1308;method_24521(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V- named - disablePlayerShield- Lnet/minecraft/entity/mob/MobEntity;disablePlayerShield(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
 
- 
isAffectedByDaylightprotected boolean isAffectedByDaylight()- Mappings:
- Namespace - Name - Mixin selector - official - fT- Lbgb;fT()Z- intermediary - method_5972- Lnet/minecraft/class_1308;method_5972()Z- named - isAffectedByDaylight- Lnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Z
 
- 
swimUpward- Overrides:
- swimUpwardin class- LivingEntity
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfz;c(Lanl;)V- intermediary - method_6010- Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)V- named - swimUpward- Lnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
 
- 
clearGoalsAndTaskspublic void clearGoalsAndTasks()- Mappings:
- Namespace - Name - Mixin selector - official - fU- Lbgb;fU()V- intermediary - method_35056- Lnet/minecraft/class_1308;method_35056()V- named - clearGoalsAndTasks- Lnet/minecraft/entity/mob/MobEntity;clearGoalsAndTasks()V
 
- 
clearGoals- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbgb;c(Ljava/util/function/Predicate;)V- intermediary - method_47825- Lnet/minecraft/class_1308;method_47825(Ljava/util/function/Predicate;)V- named - clearGoals- Lnet/minecraft/entity/mob/MobEntity;clearGoals(Ljava/util/function/Predicate;)V
 
- 
removeFromDimensionprotected void removeFromDimension()Removes this entity from the current dimension.This calls Entity.setRemoved(net.minecraft.entity.Entity.RemovalReason)by default. Subclasses can add other logics, such as setting the stack count of equipped stacks to zero.- Overrides:
- removeFromDimensionin class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cp- Lbfj;cp()V- intermediary - method_30076- Lnet/minecraft/class_1297;method_30076()V- named - removeFromDimension- Lnet/minecraft/entity/Entity;removeFromDimension()V
 
- 
getPickBlockStackReturns the stack for creative "pick block" functionality, ornullif there is none.If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Overrides:
- getPickBlockStackin class- Entity
- Returns:
- the stack for creative "pick block" functionality, or nullif there is none
- Mappings:
- Namespace - Name - Mixin selector - official - dv- Lbfj;dv()Lcfz;- intermediary - method_31480- Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;- named - getPickBlockStack- Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
 
 
-