Class MobEntity
- All Implemented Interfaces:
Attackable,DataTracked,EquipmentHolder,Targeter,ScoreHolder,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
AmbientEntity,EnderDragonEntity,FlyingEntity,PathAwareEntity,SlimeEntity
- Mappings:
Namespace Name named net/minecraft/entity/mob/MobEntityintermediary net/minecraft/class_1308official bts
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intintprotected final float[]private final DefaultedList<ItemStack> private static final doubleprivate 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 ItemStackprotected floatprivate 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 static final intprotected LookControlprivate @Nullable RegistryKey<LootTable> private 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.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, 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, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, 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.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, 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.CommandOutput
DUMMYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMobEntity(EntityType<? extends MobEntity> type, World world) -
Method Summary
Modifier 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) booleancanUseSlot(EquipmentSlot slot) 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.protected voidvoidclearGoals(Predicate<Goal> predicate) voidvoid<T extends MobEntity>
TconvertTo(EntityType<T> entityType, boolean keepEquipment) Converts this entity to the providedentityType.protected BodyControlprivate LootContextParameterSetprotected EntityNavigationcreateNavigation(World world) voiddetachLeash(boolean sendPacket, boolean dropItem) 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) voidequipBodyArmor(ItemStack stack) protected voidequipLootStack(EquipmentSlot slot, ItemStack stack) voidequipStack(EquipmentSlot slot, ItemStack stack) protected @Nullable SoundEventprotected BoxGets the area in which this mob can attack entities whose hitbox intersects it.private doublegetAttackDamageWith(ItemStack stack) Returns the passenger in control of this entity, ornullif there is none.protected floatgetDropChance(EquipmentSlot slot) getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) protected Vec3iintfinal RegistryKey<LootTable> protected RegistryKey<LootTable> longintReturns 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.protected final @Nullable LivingEntityintCalled 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.booleanprivate static booleanbooleanprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected voidinitEquipment(Random random, LocalDifficulty localDifficulty) protected voidinitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) 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 booleanbooleanisHorseArmor(ItemStack stack) booleanisInAttackRange(LivingEntity entity) booleanbooleanbooleanbooleanbooleanbooleanvoidlookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange) protected voidloot(ItemEntity item) booleanprotected voidmobTick()protected booleanWhen true, causes this entity to take over pathfinding for its controlling passenger.voidvoidprotected voidonPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidvoidprotected voidplayHurtSound(DamageSource damageSource) 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 dropChance) voidsetEquipmentFromTable(EquipmentTable equipmentTable) voidsetEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) 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) booleanstartRiding(Entity entity, boolean force) Starts ridingentity.voidprotected 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.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getFallSounds, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRandom, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, 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, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, 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, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerNearestTo, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandomBodyY, getRegistryManager, 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, getVehicleAttachmentPos, 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, isInFluid, 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, lerpPosAndRotation, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, 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, removeCommandTag, removePassenger, 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, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, 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, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
MOB_FLAGS
- Mappings:
Namespace Name Mixin selector named MOB_FLAGSLnet/minecraft/entity/mob/MobEntity;MOB_FLAGS:Lnet/minecraft/entity/data/TrackedData;intermediary field_6193Lnet/minecraft/class_1308;field_6193:Lnet/minecraft/class_2940;official bLbts;b:Lakk;
-
AI_DISABLED_FLAG
private static final int AI_DISABLED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named AI_DISABLED_FLAGLnet/minecraft/entity/mob/MobEntity;AI_DISABLED_FLAG:Iintermediary field_30088Lnet/minecraft/class_1308;field_30088:Iofficial cLbts;c:I
-
LEFT_HANDED_FLAG
private static final int LEFT_HANDED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_HANDED_FLAGLnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_FLAG:Iintermediary field_30089Lnet/minecraft/class_1308;field_30089:Iofficial dLbts;d:I
-
ATTACKING_FLAG
private static final int ATTACKING_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named ATTACKING_FLAGLnet/minecraft/entity/mob/MobEntity;ATTACKING_FLAG:Iintermediary field_30090Lnet/minecraft/class_1308;field_30090:Iofficial eLbts;e:I
-
MINIMUM_DROPPED_XP_PER_EQUIPMENT
protected 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 named MINIMUM_DROPPED_XP_PER_EQUIPMENTLnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_XP_PER_EQUIPMENT:Iintermediary field_30087Lnet/minecraft/class_1308;field_30087:Iofficial fLbts;f:I
-
ITEM_PICK_UP_RANGE_EXPANDER
- Mappings:
Namespace Name Mixin selector named ITEM_PICK_UP_RANGE_EXPANDERLnet/minecraft/entity/mob/MobEntity;ITEM_PICK_UP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;intermediary field_38386Lnet/minecraft/class_1308;field_38386:Lnet/minecraft/class_2382;official bXLbts;bX:Lkd;
-
BASE_SPAWN_EQUIPMENT_CHANCE
public 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 named BASE_SPAWN_EQUIPMENT_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_SPAWN_EQUIPMENT_CHANCE:Fintermediary field_30091Lnet/minecraft/class_1308;field_30091:Fofficial gLbts;g:F
-
DEFAULT_CAN_PICKUP_LOOT_CHANCE
public 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 named DEFAULT_CAN_PICKUP_LOOT_CHANCELnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICKUP_LOOT_CHANCE:Fintermediary field_30083Lnet/minecraft/class_1308;field_30083:Fofficial bFLbts;bF:F
-
BASE_ENCHANTED_ARMOR_CHANCE
public 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 named BASE_ENCHANTED_ARMOR_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_ARMOR_CHANCE:Fintermediary field_30084Lnet/minecraft/class_1308;field_30084:Fofficial bGLbts;bG:F
-
BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE
public 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 named BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE:Fintermediary field_30085Lnet/minecraft/class_1308;field_30085:Fofficial bHLbts;bH:F
-
LEASH_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named LEASH_KEYLnet/minecraft/entity/mob/MobEntity;LEASH_KEY:Ljava/lang/String;intermediary field_30086Lnet/minecraft/class_1308;field_30086:Ljava/lang/String;official bILbts;bI:Ljava/lang/String;
-
DEFAULT_DROP_CHANCE
public static final float DEFAULT_DROP_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DROP_CHANCELnet/minecraft/entity/mob/MobEntity;DEFAULT_DROP_CHANCE:Fintermediary field_34043Lnet/minecraft/class_1308;field_34043:Fofficial bJLbts;bJ:F
-
field_38932
public static final int field_38932- See Also:
- Mappings:
Namespace Name Mixin selector named field_38932Lnet/minecraft/entity/mob/MobEntity;field_38932:Iintermediary field_38932Lnet/minecraft/class_1308;field_38932:Iofficial bKLbts;bK:I
-
field_35039
public static final int field_35039- See Also:
- Mappings:
Namespace Name Mixin selector named field_35039Lnet/minecraft/entity/mob/MobEntity;field_35039:Iintermediary field_35039Lnet/minecraft/class_1308;field_35039:Iofficial bLLbts;bL:I
-
ATTACK_RANGE
private static final double ATTACK_RANGE- Mappings:
Namespace Name Mixin selector named ATTACK_RANGELnet/minecraft/entity/mob/MobEntity;ATTACK_RANGE:Dintermediary field_45969Lnet/minecraft/class_1308;field_45969:Dofficial bYLbts;bY:D
-
ambientSoundChance
public int ambientSoundChance- Mappings:
Namespace Name Mixin selector named ambientSoundChanceLnet/minecraft/entity/mob/MobEntity;ambientSoundChance:Iintermediary field_6191Lnet/minecraft/class_1308;field_6191:Iofficial bMLbts;bM:I
-
experiencePoints
protected int experiencePoints- Mappings:
Namespace Name Mixin selector named experiencePointsLnet/minecraft/entity/mob/MobEntity;experiencePoints:Iintermediary field_6194Lnet/minecraft/class_1308;field_6194:Iofficial bNLbts;bN:I
-
lookControl
- Mappings:
Namespace Name Mixin selector named lookControlLnet/minecraft/entity/mob/MobEntity;lookControl:Lnet/minecraft/entity/ai/control/LookControl;intermediary field_6206Lnet/minecraft/class_1308;field_6206:Lnet/minecraft/class_1333;official bOLbts;bO:Lbzq;
-
moveControl
- Mappings:
Namespace Name Mixin selector named moveControlLnet/minecraft/entity/mob/MobEntity;moveControl:Lnet/minecraft/entity/ai/control/MoveControl;intermediary field_6207Lnet/minecraft/class_1308;field_6207:Lnet/minecraft/class_1335;official bPLbts;bP:Lbzr;
-
jumpControl
- Mappings:
Namespace Name Mixin selector named jumpControlLnet/minecraft/entity/mob/MobEntity;jumpControl:Lnet/minecraft/entity/ai/control/JumpControl;intermediary field_6204Lnet/minecraft/class_1308;field_6204:Lnet/minecraft/class_1334;official bQLbts;bQ:Lbzp;
-
bodyControl
- Mappings:
Namespace Name Mixin selector named bodyControlLnet/minecraft/entity/mob/MobEntity;bodyControl:Lnet/minecraft/entity/ai/control/BodyControl;intermediary field_6188Lnet/minecraft/class_1308;field_6188:Lnet/minecraft/class_1330;official bZLbts;bZ:Lbzm;
-
goalSelector
Contains actions the entity can perform. These may consume, for example, the target entity as determined during thetargetSelector's execution.- Mappings:
Namespace Name Mixin selector named goalSelectorLnet/minecraft/entity/mob/MobEntity;goalSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;intermediary field_6201Lnet/minecraft/class_1308;field_6201:Lnet/minecraft/class_1355;official bSLbts;bS:Lcap;
-
targetSelector
Contains 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 named targetSelectorLnet/minecraft/entity/mob/MobEntity;targetSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;intermediary field_6185Lnet/minecraft/class_1308;field_6185:Lnet/minecraft/class_1355;official bTLbts;bT:Lcap;
-
target
- Mappings:
Namespace Name Mixin selector named targetLnet/minecraft/entity/mob/MobEntity;target:Lnet/minecraft/entity/LivingEntity;intermediary field_6199Lnet/minecraft/class_1308;field_6199:Lnet/minecraft/class_1309;official caLbts;ca:Lbtq;
-
visibilityCache
- Mappings:
Namespace Name Mixin selector named visibilityCacheLnet/minecraft/entity/mob/MobEntity;visibilityCache:Lnet/minecraft/entity/mob/MobVisibilityCache;intermediary field_6190Lnet/minecraft/class_1308;field_6190:Lnet/minecraft/class_1413;official cbLbts;cb:Lcdz;
-
handItems
- Mappings:
Namespace Name Mixin selector named handItemsLnet/minecraft/entity/mob/MobEntity;handItems:Lnet/minecraft/util/collection/DefaultedList;intermediary field_6195Lnet/minecraft/class_1308;field_6195:Lnet/minecraft/class_2371;official ccLbts;cc:Ljr;
-
handDropChances
protected final float[] handDropChances- Mappings:
Namespace Name Mixin selector named handDropChancesLnet/minecraft/entity/mob/MobEntity;handDropChances:[Fintermediary field_6187Lnet/minecraft/class_1308;field_6187:[Fofficial bULbts;bU:[F
-
armorItems
- Mappings:
Namespace Name Mixin selector named armorItemsLnet/minecraft/entity/mob/MobEntity;armorItems:Lnet/minecraft/util/collection/DefaultedList;intermediary field_6205Lnet/minecraft/class_1308;field_6205:Lnet/minecraft/class_2371;official cdLbts;cd:Ljr;
-
armorDropChances
protected final float[] armorDropChances- Mappings:
Namespace Name Mixin selector named armorDropChancesLnet/minecraft/entity/mob/MobEntity;armorDropChances:[Fintermediary field_6186Lnet/minecraft/class_1308;field_6186:[Fofficial bVLbts;bV:[F
-
bodyArmor
- Mappings:
Namespace Name Mixin selector named bodyArmorLnet/minecraft/entity/mob/MobEntity;bodyArmor:Lnet/minecraft/item/ItemStack;intermediary field_48829Lnet/minecraft/class_1308;field_48829:Lnet/minecraft/class_1799;official ceLbts;ce:Lcuq;
-
bodyArmorDropChance
protected float bodyArmorDropChance- Mappings:
Namespace Name Mixin selector named bodyArmorDropChanceLnet/minecraft/entity/mob/MobEntity;bodyArmorDropChance:Fintermediary field_48828Lnet/minecraft/class_1308;field_48828:Fofficial bWLbts;bW:F
-
canPickUpLoot
private boolean canPickUpLoot- Mappings:
Namespace Name Mixin selector named canPickUpLootLnet/minecraft/entity/mob/MobEntity;canPickUpLoot:Zintermediary field_6203Lnet/minecraft/class_1308;field_6203:Zofficial cfLbts;cf:Z
-
persistent
private boolean persistent- Mappings:
Namespace Name Mixin selector named persistentLnet/minecraft/entity/mob/MobEntity;persistent:Zintermediary field_6200Lnet/minecraft/class_1308;field_6200:Zofficial cgLbts;cg:Z
-
pathfindingPenalties
- Mappings:
Namespace Name Mixin selector named pathfindingPenaltiesLnet/minecraft/entity/mob/MobEntity;pathfindingPenalties:Ljava/util/Map;intermediary field_6196Lnet/minecraft/class_1308;field_6196:Ljava/util/Map;official chLbts;ch:Ljava/util/Map;
-
lootTable
- Mappings:
Namespace Name Mixin selector named lootTableLnet/minecraft/entity/mob/MobEntity;lootTable:Lnet/minecraft/registry/RegistryKey;intermediary field_6198Lnet/minecraft/class_1308;field_6198:Lnet/minecraft/class_5321;official ciLbts;ci:Lale;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector named lootTableSeedLnet/minecraft/entity/mob/MobEntity;lootTableSeed:Jintermediary field_6184Lnet/minecraft/class_1308;field_6184:Jofficial cjLbts;cj:J
-
holdingEntity
- Mappings:
Namespace Name Mixin selector named holdingEntityLnet/minecraft/entity/mob/MobEntity;holdingEntity:Lnet/minecraft/entity/Entity;intermediary field_6202Lnet/minecraft/class_1308;field_6202:Lnet/minecraft/class_1297;official ckLbts;ck:Lbsv;
-
holdingEntityId
private int holdingEntityId- Mappings:
Namespace Name Mixin selector named holdingEntityIdLnet/minecraft/entity/mob/MobEntity;holdingEntityId:Iintermediary field_18279Lnet/minecraft/class_1308;field_18279:Iofficial clLbts;cl:I
-
leashNbt
- Mappings:
Namespace Name Mixin selector named leashNbtLnet/minecraft/entity/mob/MobEntity;leashNbt:Lcom/mojang/datafixers/util/Either;intermediary field_6192Lnet/minecraft/class_1308;field_6192:Lcom/mojang/datafixers/util/Either;official cmLbts;cm:Lcom/mojang/datafixers/util/Either;
-
positionTarget
- Mappings:
Namespace Name Mixin selector named positionTargetLnet/minecraft/entity/mob/MobEntity;positionTarget:Lnet/minecraft/util/math/BlockPos;intermediary field_18074Lnet/minecraft/class_1308;field_18074:Lnet/minecraft/class_2338;official cnLbts;cn:Liz;
-
positionTargetRange
private float positionTargetRange- Mappings:
Namespace Name Mixin selector named positionTargetRangeLnet/minecraft/entity/mob/MobEntity;positionTargetRange:Fintermediary field_18075Lnet/minecraft/class_1308;field_18075:Fofficial coLbts;co:F
-
-
Constructor Details
-
MobEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbsv;<init>(Lbtb;Ldbz;)V
-
-
Method Details
-
initGoals
protected void initGoals()- Mappings:
Namespace Name Mixin selector named initGoalsLnet/minecraft/entity/mob/MobEntity;initGoals()Vintermediary method_5959Lnet/minecraft/class_1308;method_5959()Vofficial zLbts;z()V
-
createMobAttributes
- Mappings:
Namespace Name Mixin selector named createMobAttributesLnet/minecraft/entity/mob/MobEntity;createMobAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26828Lnet/minecraft/class_1308;method_26828()Lnet/minecraft/class_5132$class_5133;official ALbts;A()Lbux$a;
-
movesIndependently
protected boolean movesIndependently()When true, causes this entity to take over pathfinding for its controlling passenger.- Mappings:
Namespace Name Mixin selector named movesIndependentlyLnet/minecraft/entity/mob/MobEntity;movesIndependently()Zintermediary method_26323Lnet/minecraft/class_1308;method_26323()Zofficial BLbts;B()Z
-
getPathfindingPenalty
- Mappings:
Namespace Name Mixin selector named getPathfindingPenaltyLnet/minecraft/entity/mob/MobEntity;getPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Fintermediary method_5944Lnet/minecraft/class_1308;method_5944(Lnet/minecraft/class_7;)Fofficial aLbts;a(Leon;)F
-
setPathfindingPenalty
- Mappings:
Namespace Name Mixin selector named setPathfindingPenaltyLnet/minecraft/entity/mob/MobEntity;setPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;F)Vintermediary method_5941Lnet/minecraft/class_1308;method_5941(Lnet/minecraft/class_7;F)Vofficial aLbts;a(Leon;F)V
-
onStartPathfinding
public void onStartPathfinding()- Mappings:
Namespace Name Mixin selector named onStartPathfindingLnet/minecraft/entity/mob/MobEntity;onStartPathfinding()Vintermediary method_51504Lnet/minecraft/class_1308;method_51504()Vofficial CLbts;C()V
-
onFinishPathfinding
public void onFinishPathfinding()- Mappings:
Namespace Name Mixin selector named onFinishPathfindingLnet/minecraft/entity/mob/MobEntity;onFinishPathfinding()Vintermediary method_51503Lnet/minecraft/class_1308;method_51503()Vofficial DLbts;D()V
-
createBodyControl
- Mappings:
Namespace Name Mixin selector named createBodyControlLnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;intermediary method_5963Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;official ELbts;E()Lbzm;
-
getLookControl
- Mappings:
Namespace Name Mixin selector named getLookControlLnet/minecraft/entity/mob/MobEntity;getLookControl()Lnet/minecraft/entity/ai/control/LookControl;intermediary method_5988Lnet/minecraft/class_1308;method_5988()Lnet/minecraft/class_1333;official GLbts;G()Lbzq;
-
getMoveControl
- Mappings:
Namespace Name Mixin selector named getMoveControlLnet/minecraft/entity/mob/MobEntity;getMoveControl()Lnet/minecraft/entity/ai/control/MoveControl;intermediary method_5962Lnet/minecraft/class_1308;method_5962()Lnet/minecraft/class_1335;official HLbts;H()Lbzr;
-
getJumpControl
- Mappings:
Namespace Name Mixin selector named getJumpControlLnet/minecraft/entity/mob/MobEntity;getJumpControl()Lnet/minecraft/entity/ai/control/JumpControl;intermediary method_5993Lnet/minecraft/class_1308;method_5993()Lnet/minecraft/class_1334;official ILbts;I()Lbzp;
-
getControllingPassenger
Returns 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 classEntity- Returns:
- the passenger in control of this entity, or
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingPassengerLnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;intermediary method_5642Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;official cQLbsv;cQ()Lbtq;
-
getVisibilityCache
- Mappings:
Namespace Name Mixin selector named getVisibilityCacheLnet/minecraft/entity/mob/MobEntity;getVisibilityCache()Lnet/minecraft/entity/mob/MobVisibilityCache;intermediary method_5985Lnet/minecraft/class_1308;method_5985()Lnet/minecraft/class_1413;official MLbts;M()Lcdz;
-
getTarget
-
getTargetInBrain
- Mappings:
Namespace Name Mixin selector named getTargetInBrainLnet/minecraft/entity/mob/MobEntity;getTargetInBrain()Lnet/minecraft/entity/LivingEntity;intermediary method_59664Lnet/minecraft/class_1308;method_59664()Lnet/minecraft/class_1309;official NLbts;N()Lbtq;
-
setTarget
- Mappings:
Namespace Name Mixin selector named setTargetLnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_5980Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)Vofficial hLbts;h(Lbtq;)V
-
canTarget
- Overrides:
canTargetin classLivingEntity- Mappings:
Namespace Name Mixin selector named canTargetLnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Zintermediary method_5973Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Zofficial aLbtq;a(Lbtb;)Z
-
canUseRangedWeapon
- Mappings:
Namespace Name Mixin selector named canUseRangedWeaponLnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Zintermediary method_25938Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Zofficial aLbts;a(Lcvj;)Z
-
onEatingGrass
public void onEatingGrass()- Mappings:
Namespace Name Mixin selector named onEatingGrassLnet/minecraft/entity/mob/MobEntity;onEatingGrass()Vintermediary method_5983Lnet/minecraft/class_1308;method_5983()Vofficial OLbts;O()V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classLivingEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbsv;a(Lako$a;)V
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Mappings:
Namespace Name Mixin selector named getMinAmbientSoundDelayLnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()Iintermediary method_5970Lnet/minecraft/class_1308;method_5970()Iofficial PLbts;P()I
-
playAmbientSound
public void playAmbientSound()- Mappings:
Namespace Name Mixin selector named playAmbientSoundLnet/minecraft/entity/mob/MobEntity;playAmbientSound()Vintermediary method_5966Lnet/minecraft/class_1308;method_5966()Vofficial QLbts;Q()V
-
baseTick
public void baseTick()- Overrides:
baseTickin classLivingEntity- Mappings:
Namespace Name Mixin selector named baseTickLnet/minecraft/entity/Entity;baseTick()Vintermediary method_5670Lnet/minecraft/class_1297;method_5670()Vofficial auLbsv;au()V
-
playHurtSound
- Overrides:
playHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named playHurtSoundLnet/minecraft/entity/LivingEntity;playHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6013Lnet/minecraft/class_1309;method_6013(Lnet/minecraft/class_1282;)Vofficial eLbtq;e(Lbro;)V
-
resetSoundDelay
private void resetSoundDelay()- Mappings:
Namespace Name Mixin selector named resetSoundDelayLnet/minecraft/entity/mob/MobEntity;resetSoundDelay()Vintermediary method_5975Lnet/minecraft/class_1308;method_5975()Vofficial sLbts;s()V
-
getXpToDrop
public int getXpToDrop()Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getXpToDropin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named getXpToDropLnet/minecraft/entity/LivingEntity;getXpToDrop()Iintermediary method_6110Lnet/minecraft/class_1309;method_6110()Iofficial ejLbtq;ej()I
-
playSpawnEffects
public void playSpawnEffects()- Mappings:
Namespace Name Mixin selector named playSpawnEffectsLnet/minecraft/entity/mob/MobEntity;playSpawnEffects()Vintermediary method_5990Lnet/minecraft/class_1308;method_5990()Vofficial RLbts;R()V
-
handleStatus
public 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 classLivingEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLbsv;b(B)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classLivingEntity- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
baseTick(). - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial lLbsv;l()V
-
updateGoalControls
protected void updateGoalControls()- Mappings:
Namespace Name Mixin selector named updateGoalControlsLnet/minecraft/entity/mob/MobEntity;updateGoalControls()Vintermediary method_20417Lnet/minecraft/class_1308;method_20417()Vofficial SLbts;S()V
-
turnHead
protected float turnHead(float bodyRotation, float headRotation) - Overrides:
turnHeadin classLivingEntity- Mappings:
Namespace Name Mixin selector named turnHeadLnet/minecraft/entity/LivingEntity;turnHead(FF)Fintermediary method_6031Lnet/minecraft/class_1309;method_6031(FF)Fofficial eLbtq;e(FF)F
-
getAmbientSound
- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official vLbts;v()Lavz;
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have 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 classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbsv;b(Lus;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have 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 classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbsv;a(Lus;)V
-
dropLoot
- Overrides:
dropLootin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropLootLnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/entity/damage/DamageSource;Z)Vintermediary method_16077Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_1282;Z)Vofficial aLbtq;a(Lbro;Z)V
-
getLootTable
- Overrides:
getLootTablein classLivingEntity- Mappings:
Namespace Name Mixin selector named getLootTableLnet/minecraft/entity/LivingEntity;getLootTable()Lnet/minecraft/registry/RegistryKey;intermediary method_5989Lnet/minecraft/class_1309;method_5989()Lnet/minecraft/class_5321;official eFLbtq;eF()Lale;
-
getLootTableId
- Mappings:
Namespace Name Mixin selector named getLootTableIdLnet/minecraft/entity/mob/MobEntity;getLootTableId()Lnet/minecraft/registry/RegistryKey;intermediary method_5991Lnet/minecraft/class_1308;method_5991()Lnet/minecraft/class_5321;official TLbts;T()Lale;
-
getLootTableSeed
public long getLootTableSeed()- Overrides:
getLootTableSeedin classLivingEntity- Mappings:
Namespace Name Mixin selector named getLootTableSeedLnet/minecraft/entity/LivingEntity;getLootTableSeed()Jintermediary method_51851Lnet/minecraft/class_1309;method_51851()Jofficial eGLbtq;eG()J
-
setForwardSpeed
public void setForwardSpeed(float forwardSpeed) - Mappings:
Namespace Name Mixin selector named setForwardSpeedLnet/minecraft/entity/mob/MobEntity;setForwardSpeed(F)Vintermediary method_5930Lnet/minecraft/class_1308;method_5930(F)Vofficial CLbts;C(F)V
-
setUpwardSpeed
public void setUpwardSpeed(float upwardSpeed) - Mappings:
Namespace Name Mixin selector named setUpwardSpeedLnet/minecraft/entity/mob/MobEntity;setUpwardSpeed(F)Vintermediary method_5976Lnet/minecraft/class_1308;method_5976(F)Vofficial DLbts;D(F)V
-
setSidewaysSpeed
public void setSidewaysSpeed(float sidewaysSpeed) - Mappings:
Namespace Name Mixin selector named setSidewaysSpeedLnet/minecraft/entity/mob/MobEntity;setSidewaysSpeed(F)Vintermediary method_5938Lnet/minecraft/class_1308;method_5938(F)Vofficial ELbts;E(F)V
-
setMovementSpeed
public void setMovementSpeed(float movementSpeed) - Overrides:
setMovementSpeedin classLivingEntity- Mappings:
Namespace Name Mixin selector named setMovementSpeedLnet/minecraft/entity/LivingEntity;setMovementSpeed(F)Vintermediary method_6125Lnet/minecraft/class_1309;method_6125(F)Vofficial yLbtq;y(F)V
-
stopMovement
public void stopMovement()- Mappings:
Namespace Name Mixin selector named stopMovementLnet/minecraft/entity/mob/MobEntity;stopMovement()Vintermediary method_55695Lnet/minecraft/class_1308;method_55695()Vofficial ULbts;U()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classLivingEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial n_Lbtq;n_()V
-
getItemPickUpRangeExpander
- Mappings:
Namespace Name Mixin selector named getItemPickUpRangeExpanderLnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;intermediary method_42646Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;official VLbts;V()Lkd;
-
loot
- Mappings:
Namespace Name Mixin selector named lootLnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/entity/ItemEntity;)Vintermediary method_5949Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_1542;)Vofficial bLbts;b(Lcji;)V
-
tryEquip
- Mappings:
Namespace Name Mixin selector named tryEquipLnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_24523Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official iLbts;i(Lcuq;)Lcuq;
-
equipLootStack
- Mappings:
Namespace Name Mixin selector named equipLootStackLnet/minecraft/entity/mob/MobEntity;equipLootStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)Vintermediary method_24834Lnet/minecraft/class_1308;method_24834(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vofficial bLbts;b(Lbtc;Lcuq;)V
-
updateDropChances
- Mappings:
Namespace Name Mixin selector named updateDropChancesLnet/minecraft/entity/mob/MobEntity;updateDropChances(Lnet/minecraft/entity/EquipmentSlot;)Vintermediary method_25939Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)Vofficial fLbts;f(Lbtc;)V
-
prefersNewEquipment
- Mappings:
Namespace Name Mixin selector named prefersNewEquipmentLnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_5955Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial bLbts;b(Lcuq;Lcuq;)Z
-
getAttackDamageWith
- Mappings:
Namespace Name Mixin selector named getAttackDamageWithLnet/minecraft/entity/mob/MobEntity;getAttackDamageWith(Lnet/minecraft/item/ItemStack;)Dintermediary method_57295Lnet/minecraft/class_1308;method_57295(Lnet/minecraft/class_1799;)Dofficial oLbts;o(Lcuq;)D
-
prefersNewDamageableItem
- Mappings:
Namespace Name Mixin selector named prefersNewDamageableItemLnet/minecraft/entity/mob/MobEntity;prefersNewDamageableItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_26320Lnet/minecraft/class_1308;method_26320(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial cLbts;c(Lcuq;Lcuq;)Z
-
hasComponentsOtherThanDamage
- Mappings:
Namespace Name Mixin selector named hasComponentsOtherThanDamageLnet/minecraft/entity/mob/MobEntity;hasComponentsOtherThanDamage(Lnet/minecraft/item/ItemStack;)Zintermediary method_57296Lnet/minecraft/class_1308;method_57296(Lnet/minecraft/class_1799;)Zofficial pLbts;p(Lcuq;)Z
-
canPickupItem
- Mappings:
Namespace Name Mixin selector named canPickupItemLnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_5939Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Zofficial jLbts;j(Lcuq;)Z
-
canGather
- Mappings:
Namespace Name Mixin selector named canGatherLnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Zintermediary method_20820Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Zofficial kLbts;k(Lcuq;)Z
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Mappings:
Namespace Name Mixin selector named canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Zofficial hLbts;h(D)Z
-
cannotDespawn
public boolean cannotDespawn()- Mappings:
Namespace Name Mixin selector named cannotDespawnLnet/minecraft/entity/mob/MobEntity;cannotDespawn()Zintermediary method_17326Lnet/minecraft/class_1308;method_17326()Zofficial WLbts;W()Z
-
isDisallowedInPeaceful
protected boolean isDisallowedInPeaceful()- Mappings:
Namespace Name Mixin selector named isDisallowedInPeacefulLnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Zintermediary method_23734Lnet/minecraft/class_1308;method_23734()Zofficial XLbts;X()Z
-
checkDespawn
public void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call
Entity.discard().- Overrides:
checkDespawnin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named checkDespawnLnet/minecraft/entity/Entity;checkDespawn()Vintermediary method_5982Lnet/minecraft/class_1297;method_5982()Vofficial dBLbsv;dB()V
-
tickNewAi
protected final void tickNewAi()- Overrides:
tickNewAiin classLivingEntity- Mappings:
Namespace Name Mixin selector named tickNewAiLnet/minecraft/entity/LivingEntity;tickNewAi()Vintermediary method_6023Lnet/minecraft/class_1309;method_6023()Vofficial fqLbtq;fq()V
-
sendAiDebugData
protected void sendAiDebugData()- Mappings:
Namespace Name Mixin selector named sendAiDebugDataLnet/minecraft/entity/mob/MobEntity;sendAiDebugData()Vintermediary method_18409Lnet/minecraft/class_1308;method_18409()Vofficial YLbts;Y()V
-
mobTick
protected void mobTick()- Mappings:
Namespace Name Mixin selector named mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()Vintermediary method_5958Lnet/minecraft/class_1308;method_5958()Vofficial ZLbts;Z()V
-
getMaxLookPitchChange
public 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 named getMaxLookPitchChangeLnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()Iintermediary method_5978Lnet/minecraft/class_1308;method_5978()Iofficial aaLbts;aa()I
-
getMaxHeadRotation
public 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 named getMaxHeadRotationLnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()Iintermediary method_5986Lnet/minecraft/class_1308;method_5986()Iofficial abLbts;ab()I
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector named clampHeadYawLnet/minecraft/entity/mob/MobEntity;clampHeadYaw()Vintermediary method_56080Lnet/minecraft/class_1308;method_56080()Vofficial adLbts;ad()V
-
getMaxLookYawChange
public 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 named getMaxLookYawChangeLnet/minecraft/entity/mob/MobEntity;getMaxLookYawChange()Iintermediary method_20240Lnet/minecraft/class_1308;method_20240()Iofficial aeLbts;ae()I
-
lookAtEntity
- Mappings:
Namespace Name Mixin selector named lookAtEntityLnet/minecraft/entity/mob/MobEntity;lookAtEntity(Lnet/minecraft/entity/Entity;FF)Vintermediary method_5951Lnet/minecraft/class_1308;method_5951(Lnet/minecraft/class_1297;FF)Vofficial aLbts;a(Lbsv;FF)V
-
changeAngle
private 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 named changeAngleLnet/minecraft/entity/mob/MobEntity;changeAngle(FFF)Fintermediary method_5960Lnet/minecraft/class_1308;method_5960(FFF)Fofficial aLbts;a(FFF)F
-
canMobSpawn
public static boolean canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canMobSpawnLnet/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;)Zintermediary method_20636Lnet/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;)Zofficial aLbts;a(Lbtb;Ldca;Lbtu;Liz;Lazh;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector named canSpawnLnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;)Zintermediary method_5979Lnet/minecraft/class_1308;method_5979(Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;)Zofficial aLbts;a(Ldca;Lbtu;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector named canSpawnLnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Zintermediary method_5957Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Zofficial aLbts;a(Ldcc;)Z
-
getLimitPerChunk
public int getLimitPerChunk()- Mappings:
Namespace Name Mixin selector named getLimitPerChunkLnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()Iintermediary method_5945Lnet/minecraft/class_1308;method_5945()Iofficial fQLbts;fQ()I
-
spawnsTooManyForEachTry
public boolean spawnsTooManyForEachTry(int count) - Mappings:
Namespace Name Mixin selector named spawnsTooManyForEachTryLnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(I)Zintermediary method_5969Lnet/minecraft/class_1308;method_5969(I)Zofficial dLbts;d(I)Z
-
getSafeFallDistance
public int getSafeFallDistance()Returns the maximum height of a fall the entity takes during pathfinding.- Overrides:
getSafeFallDistancein classLivingEntity- Returns:
- the maximum height of a fall the entity takes during pathfinding
- Mappings:
Namespace Name Mixin selector named getSafeFallDistanceLnet/minecraft/entity/Entity;getSafeFallDistance()Iintermediary method_5850Lnet/minecraft/class_1297;method_5850()Iofficial cxLbsv;cx()I
-
getHandItems
- Overrides:
getHandItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector named getHandItemsLnet/minecraft/entity/LivingEntity;getHandItems()Ljava/lang/Iterable;intermediary method_5877Lnet/minecraft/class_1309;method_5877()Ljava/lang/Iterable;official faLbtq;fa()Ljava/lang/Iterable;
-
getArmorItems
- Specified by:
getArmorItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector named getArmorItemsLnet/minecraft/entity/LivingEntity;getArmorItems()Ljava/lang/Iterable;intermediary method_5661Lnet/minecraft/class_1309;method_5661()Ljava/lang/Iterable;official eZLbtq;eZ()Ljava/lang/Iterable;
-
getBodyArmor
- Mappings:
Namespace Name Mixin selector named getBodyArmorLnet/minecraft/entity/mob/MobEntity;getBodyArmor()Lnet/minecraft/item/ItemStack;intermediary method_56676Lnet/minecraft/class_1308;method_56676()Lnet/minecraft/class_1799;official fRLbts;fR()Lcuq;
-
hasArmorSlot
public boolean hasArmorSlot()- Mappings:
Namespace Name Mixin selector named hasArmorSlotLnet/minecraft/entity/mob/MobEntity;hasArmorSlot()Zintermediary method_6735Lnet/minecraft/class_1308;method_6735()Zofficial fSLbts;fS()Z
-
canUseSlot
- Overrides:
canUseSlotin classLivingEntity- Mappings:
Namespace Name Mixin selector named canUseSlotLnet/minecraft/entity/LivingEntity;canUseSlot(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_56991Lnet/minecraft/class_1309;method_56991(Lnet/minecraft/class_1304;)Zofficial dLbtq;d(Lbtc;)Z
-
isWearingBodyArmor
public boolean isWearingBodyArmor()- Mappings:
Namespace Name Mixin selector named isWearingBodyArmorLnet/minecraft/entity/mob/MobEntity;isWearingBodyArmor()Zintermediary method_56677Lnet/minecraft/class_1308;method_56677()Zofficial fTLbts;fT()Z
-
isHorseArmor
- Mappings:
Namespace Name Mixin selector named isHorseArmorLnet/minecraft/entity/mob/MobEntity;isHorseArmor(Lnet/minecraft/item/ItemStack;)Zintermediary method_6773Lnet/minecraft/class_1308;method_6773(Lnet/minecraft/class_1799;)Zofficial lLbts;l(Lcuq;)Z
-
equipBodyArmor
- Mappings:
Namespace Name Mixin selector named equipBodyArmorLnet/minecraft/entity/mob/MobEntity;equipBodyArmor(Lnet/minecraft/item/ItemStack;)Vintermediary method_56678Lnet/minecraft/class_1308;method_56678(Lnet/minecraft/class_1799;)Vofficial mLbts;m(Lcuq;)V
-
getAllArmorItems
- Overrides:
getAllArmorItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector named getAllArmorItemsLnet/minecraft/entity/LivingEntity;getAllArmorItems()Ljava/lang/Iterable;intermediary method_56674Lnet/minecraft/class_1309;method_56674()Ljava/lang/Iterable;official fbLbtq;fb()Ljava/lang/Iterable;
-
getEquippedStack
- Specified by:
getEquippedStackin interfaceEquipmentHolder- Specified by:
getEquippedStackin classLivingEntity- Mappings:
Namespace Name Mixin selector named getEquippedStackLnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;intermediary method_6118Lnet/minecraft/class_1309;method_6118(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;official aLbtq;a(Lbtc;)Lcuq;
-
equipStack
- Specified by:
equipStackin interfaceEquipmentHolder- Specified by:
equipStackin classLivingEntity- Mappings:
Namespace Name Mixin selector named equipStackLnet/minecraft/entity/LivingEntity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)Vintermediary method_5673Lnet/minecraft/class_1309;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vofficial aLbtq;a(Lbtc;Lcuq;)V
-
dropEquipment
- Overrides:
dropEquipmentin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)Vofficial aLbtq;a(Lbro;IZ)V
-
getDropChance
- Mappings:
Namespace Name Mixin selector named getDropChanceLnet/minecraft/entity/mob/MobEntity;getDropChance(Lnet/minecraft/entity/EquipmentSlot;)Fintermediary method_5929Lnet/minecraft/class_1308;method_5929(Lnet/minecraft/class_1304;)Fofficial gLbts;g(Lbtc;)F
-
createEquipmentLootParameters
- Mappings:
Namespace Name Mixin selector named createEquipmentLootParametersLnet/minecraft/entity/mob/MobEntity;createEquipmentLootParameters(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/loot/context/LootContextParameterSet;intermediary method_58635Lnet/minecraft/class_1308;method_58635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8567;official cLbts;c(Larf;)Leqm;
-
setEquipmentFromTable
- Mappings:
Namespace Name Mixin selector named setEquipmentFromTableLnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/entity/EquipmentTable;)Vintermediary method_58634Lnet/minecraft/class_1308;method_58634(Lnet/minecraft/class_9652;)Vofficial aLbts;a(Lbte;)V
-
setEquipmentFromTable
public void setEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) - Mappings:
Namespace Name Mixin selector named setEquipmentFromTableLnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/registry/RegistryKey;Ljava/util/Map;)Vintermediary method_59665Lnet/minecraft/class_1308;method_59665(Lnet/minecraft/class_5321;Ljava/util/Map;)Vofficial aLbts;a(Lale;Ljava/util/Map;)V
-
initEquipment
- Mappings:
Namespace Name Mixin selector named initEquipmentLnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)Vintermediary method_5964Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vofficial aLbts;a(Lazh;Lbqt;)V
-
getEquipmentForSlot
@Nullable public static @Nullable Item getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) - Mappings:
Namespace Name Mixin selector named getEquipmentForSlotLnet/minecraft/entity/mob/MobEntity;getEquipmentForSlot(Lnet/minecraft/entity/EquipmentSlot;I)Lnet/minecraft/item/Item;intermediary method_5948Lnet/minecraft/class_1308;method_5948(Lnet/minecraft/class_1304;I)Lnet/minecraft/class_1792;official aLbts;a(Lbtc;I)Lcul;
-
updateEnchantments
- Mappings:
Namespace Name Mixin selector named updateEnchantmentsLnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)Vintermediary method_5984Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vofficial bLbts;b(Lazh;Lbqt;)V
-
enchantMainHandItem
- Mappings:
Namespace Name Mixin selector named enchantMainHandItemLnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/util/math/random/Random;F)Vintermediary method_30759Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5819;F)Vofficial aLbts;a(Lazh;F)V
-
enchantEquipment
- Mappings:
Namespace Name Mixin selector named enchantEquipmentLnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/util/math/random/Random;FLnet/minecraft/entity/EquipmentSlot;)Vintermediary method_30758Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5819;FLnet/minecraft/class_1304;)Vofficial aLbts;a(Lazh;FLbtc;)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Mappings:
Namespace Name Mixin selector named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;official aLbts;a(Ldco;Lbqt;Lbtu;Lbuj;)Lbuj;
-
setPersistent
public void setPersistent()- Mappings:
Namespace Name Mixin selector named setPersistentLnet/minecraft/entity/mob/MobEntity;setPersistent()Vintermediary method_5971Lnet/minecraft/class_1308;method_5971()Vofficial fULbts;fU()V
-
setEquipmentDropChance
- Specified by:
setEquipmentDropChancein interfaceEquipmentHolder- Mappings:
Namespace Name Mixin selector named setEquipmentDropChanceLnet/minecraft/entity/EquipmentHolder;setEquipmentDropChance(Lnet/minecraft/entity/EquipmentSlot;F)Vintermediary method_5946Lnet/minecraft/class_9460;method_5946(Lnet/minecraft/class_1304;F)Vofficial aLbtf;a(Lbtc;F)V
-
canPickUpLoot
public boolean canPickUpLoot()- Mappings:
Namespace Name Mixin selector named canPickUpLootLnet/minecraft/entity/mob/MobEntity;canPickUpLoot()Zintermediary method_5936Lnet/minecraft/class_1308;method_5936()Zofficial fVLbts;fV()Z
-
setCanPickUpLoot
public void setCanPickUpLoot(boolean canPickUpLoot) - Mappings:
Namespace Name Mixin selector named setCanPickUpLootLnet/minecraft/entity/mob/MobEntity;setCanPickUpLoot(Z)Vintermediary method_5952Lnet/minecraft/class_1308;method_5952(Z)Vofficial a_Lbts;a_(Z)V
-
canEquip
- Overrides:
canEquipin classLivingEntity- Mappings:
Namespace Name Mixin selector named canEquipLnet/minecraft/entity/LivingEntity;canEquip(Lnet/minecraft/item/ItemStack;)Zintermediary method_18397Lnet/minecraft/class_1309;method_18397(Lnet/minecraft/class_1799;)Zofficial fLbtq;f(Lcuq;)Z
-
isPersistent
public boolean isPersistent()- Mappings:
Namespace Name Mixin selector named isPersistentLnet/minecraft/entity/mob/MobEntity;isPersistent()Zintermediary method_5947Lnet/minecraft/class_1308;method_5947()Zofficial fWLbts;fW()Z
-
interact
Called when a player interacts with this entity.- Overrides:
interactin classEntity- Parameters:
player- the playerhand- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLbsv;a(Lcmy;Lbqu;)Lbqv;
-
interactWithItem
- Mappings:
Namespace Name Mixin selector named interactWithItemLnet/minecraft/entity/mob/MobEntity;interactWithItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_29506Lnet/minecraft/class_1308;method_29506(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official cLbts;c(Lcmy;Lbqu;)Lbqv;
-
onPlayerSpawnedChild
- Mappings:
Namespace Name Mixin selector named onPlayerSpawnedChildLnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)Vintermediary method_18249Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)Vofficial aLbts;a(Lcmy;Lbts;)V
-
interactMob
- Mappings:
Namespace Name Mixin selector named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official bLbts;b(Lcmy;Lbqu;)Lbqv;
-
isInWalkTargetRange
public boolean isInWalkTargetRange()- Mappings:
Namespace Name Mixin selector named isInWalkTargetRangeLnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange()Zintermediary method_18411Lnet/minecraft/class_1308;method_18411()Zofficial fXLbts;fX()Z
-
isInWalkTargetRange
- Mappings:
Namespace Name Mixin selector named isInWalkTargetRangeLnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_18407Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Zofficial aLbts;a(Liz;)Z
-
setPositionTarget
- Mappings:
Namespace Name Mixin selector named setPositionTargetLnet/minecraft/entity/mob/MobEntity;setPositionTarget(Lnet/minecraft/util/math/BlockPos;I)Vintermediary method_18408Lnet/minecraft/class_1308;method_18408(Lnet/minecraft/class_2338;I)Vofficial aLbts;a(Liz;I)V
-
getPositionTarget
- Mappings:
Namespace Name Mixin selector named getPositionTargetLnet/minecraft/entity/mob/MobEntity;getPositionTarget()Lnet/minecraft/util/math/BlockPos;intermediary method_18412Lnet/minecraft/class_1308;method_18412()Lnet/minecraft/class_2338;official fYLbts;fY()Liz;
-
getPositionTargetRange
public float getPositionTargetRange()- Mappings:
Namespace Name Mixin selector named getPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()Fintermediary method_18413Lnet/minecraft/class_1308;method_18413()Fofficial fZLbts;fZ()F
-
clearPositionTarget
public void clearPositionTarget()- Mappings:
Namespace Name Mixin selector named clearPositionTargetLnet/minecraft/entity/mob/MobEntity;clearPositionTarget()Vintermediary method_35055Lnet/minecraft/class_1308;method_35055()Vofficial gaLbts;ga()V
-
hasPositionTarget
public boolean hasPositionTarget()- Mappings:
Namespace Name Mixin selector named hasPositionTargetLnet/minecraft/entity/mob/MobEntity;hasPositionTarget()Zintermediary method_18410Lnet/minecraft/class_1308;method_18410()Zofficial gbLbts;gb()Z
-
convertTo
Converts 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 tokeepEquipment- whether the equipment of this entity should be kept- Mappings:
Namespace Name Mixin selector named convertToLnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Z)Lnet/minecraft/entity/mob/MobEntity;intermediary method_29243Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Z)Lnet/minecraft/class_1308;official aLbts;a(Lbtb;Z)Lbts;
-
updateLeash
protected void updateLeash()- Mappings:
Namespace Name Mixin selector named updateLeashLnet/minecraft/entity/mob/MobEntity;updateLeash()Vintermediary method_5995Lnet/minecraft/class_1308;method_5995()Vofficial gcLbts;gc()V
-
detachLeash
public void detachLeash(boolean sendPacket, boolean dropItem) - Mappings:
Namespace Name Mixin selector named detachLeashLnet/minecraft/entity/mob/MobEntity;detachLeash(ZZ)Vintermediary method_5932Lnet/minecraft/class_1308;method_5932(ZZ)Vofficial aLbts;a(ZZ)V
-
canBeLeashedBy
- Mappings:
Namespace Name Mixin selector named canBeLeashedByLnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_5931Lnet/minecraft/class_1308;method_5931(Lnet/minecraft/class_1657;)Zofficial aLbts;a(Lcmy;)Z
-
isLeashed
public boolean isLeashed()- Mappings:
Namespace Name Mixin selector named isLeashedLnet/minecraft/entity/mob/MobEntity;isLeashed()Zintermediary method_5934Lnet/minecraft/class_1308;method_5934()Zofficial gdLbts;gd()Z
-
mightBeLeashed
public boolean mightBeLeashed()- Mappings:
Namespace Name Mixin selector named mightBeLeashedLnet/minecraft/entity/mob/MobEntity;mightBeLeashed()Zintermediary method_58151Lnet/minecraft/class_1308;method_58151()Zofficial geLbts;ge()Z
-
getHoldingEntity
- Mappings:
Namespace Name Mixin selector named getHoldingEntityLnet/minecraft/entity/mob/MobEntity;getHoldingEntity()Lnet/minecraft/entity/Entity;intermediary method_5933Lnet/minecraft/class_1308;method_5933()Lnet/minecraft/class_1297;official gfLbts;gf()Lbsv;
-
attachLeash
- Mappings:
Namespace Name Mixin selector named attachLeashLnet/minecraft/entity/mob/MobEntity;attachLeash(Lnet/minecraft/entity/Entity;Z)Vintermediary method_5954Lnet/minecraft/class_1308;method_5954(Lnet/minecraft/class_1297;Z)Vofficial bLbts;b(Lbsv;Z)V
-
setHoldingEntityId
public void setHoldingEntityId(int id) - Mappings:
Namespace Name Mixin selector named setHoldingEntityIdLnet/minecraft/entity/mob/MobEntity;setHoldingEntityId(I)Vintermediary method_18810Lnet/minecraft/class_1308;method_18810(I)Vofficial sLbts;s(I)V
-
startRiding
Starts 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 classEntity- Parameters:
force- whether to bypass the entity's rideability check- Returns:
- whether this entity successfully started riding
- See Also:
- Mappings:
Namespace Name Mixin selector named startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Zofficial aLbsv;a(Lbsv;Z)Z
-
readLeashNbt
private void readLeashNbt()- Mappings:
Namespace Name Mixin selector named readLeashNbtLnet/minecraft/entity/mob/MobEntity;readLeashNbt()Vintermediary method_5940Lnet/minecraft/class_1308;method_5940()Vofficial gmLbts;gm()V
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Overrides:
canMoveVoluntarilyin classEntity- Mappings:
Namespace Name Mixin selector named canMoveVoluntarilyLnet/minecraft/entity/Entity;canMoveVoluntarily()Zintermediary method_6034Lnet/minecraft/class_1297;method_6034()Zofficial dbLbsv;db()Z
-
setAiDisabled
public void setAiDisabled(boolean aiDisabled) - Mappings:
Namespace Name Mixin selector named setAiDisabledLnet/minecraft/entity/mob/MobEntity;setAiDisabled(Z)Vintermediary method_5977Lnet/minecraft/class_1308;method_5977(Z)Vofficial tLbts;t(Z)V
-
setLeftHanded
public void setLeftHanded(boolean leftHanded) - Mappings:
Namespace Name Mixin selector named setLeftHandedLnet/minecraft/entity/mob/MobEntity;setLeftHanded(Z)Vintermediary method_5937Lnet/minecraft/class_1308;method_5937(Z)Vofficial uLbts;u(Z)V
-
setAttacking
public void setAttacking(boolean attacking) - Mappings:
Namespace Name Mixin selector named setAttackingLnet/minecraft/entity/mob/MobEntity;setAttacking(Z)Vintermediary method_19540Lnet/minecraft/class_1308;method_19540(Z)Vofficial vLbts;v(Z)V
-
isAiDisabled
public boolean isAiDisabled()- Mappings:
Namespace Name Mixin selector named isAiDisabledLnet/minecraft/entity/mob/MobEntity;isAiDisabled()Zintermediary method_5987Lnet/minecraft/class_1308;method_5987()Zofficial ggLbts;gg()Z
-
isLeftHanded
public boolean isLeftHanded()- Mappings:
Namespace Name Mixin selector named isLeftHandedLnet/minecraft/entity/mob/MobEntity;isLeftHanded()Zintermediary method_5961Lnet/minecraft/class_1308;method_5961()Zofficial ghLbts;gh()Z
-
isAttacking
public boolean isAttacking()- Mappings:
Namespace Name Mixin selector named isAttackingLnet/minecraft/entity/mob/MobEntity;isAttacking()Zintermediary method_6510Lnet/minecraft/class_1308;method_6510()Zofficial giLbts;gi()Z
-
setBaby
public void setBaby(boolean baby) - Mappings:
Namespace Name Mixin selector named setBabyLnet/minecraft/entity/mob/MobEntity;setBaby(Z)Vintermediary method_7217Lnet/minecraft/class_1308;method_7217(Z)Vofficial aLbts;a(Z)V
-
getMainArm
- Specified by:
getMainArmin classLivingEntity- Mappings:
Namespace Name Mixin selector named getMainArmLnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;intermediary method_6068Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;official fuLbtq;fu()Lbtk;
-
isInAttackRange
- Mappings:
Namespace Name Mixin selector named isInAttackRangeLnet/minecraft/entity/mob/MobEntity;isInAttackRange(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_42150Lnet/minecraft/class_1308;method_42150(Lnet/minecraft/class_1309;)Zofficial iLbts;i(Lbtq;)Z
-
getAttackBox
Gets the area in which this mob can attack entities whose hitbox intersects it.- See Also:
- Mappings:
Namespace Name Mixin selector named getAttackBoxLnet/minecraft/entity/mob/MobEntity;getAttackBox()Lnet/minecraft/util/math/Box;intermediary method_53511Lnet/minecraft/class_1308;method_53511()Lnet/minecraft/class_238;official gjLbts;gj()Levn;
-
tryAttack
- Overrides:
tryAttackin classLivingEntity- Mappings:
Namespace Name Mixin selector named tryAttackLnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Zintermediary method_6121Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Zofficial CLbtq;C(Lbsv;)Z
-
isAffectedByDaylight
protected boolean isAffectedByDaylight()- Mappings:
Namespace Name Mixin selector named isAffectedByDaylightLnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Zintermediary method_5972Lnet/minecraft/class_1308;method_5972()Zofficial gkLbts;gk()Z
-
swimUpward
- Overrides:
swimUpwardin classLivingEntity- Mappings:
Namespace Name Mixin selector named swimUpwardLnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)Vintermediary method_6010Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)Vofficial cLbtq;c(Laxf;)V
-
clearGoalsAndTasks
public void clearGoalsAndTasks()- Mappings:
Namespace Name Mixin selector named clearGoalsAndTasksLnet/minecraft/entity/mob/MobEntity;clearGoalsAndTasks()Vintermediary method_35056Lnet/minecraft/class_1308;method_35056()Vofficial glLbts;gl()V
-
clearGoals
- Mappings:
Namespace Name Mixin selector named clearGoalsLnet/minecraft/entity/mob/MobEntity;clearGoals(Ljava/util/function/Predicate;)Vintermediary method_47825Lnet/minecraft/class_1308;method_47825(Ljava/util/function/Predicate;)Vofficial cLbts;c(Ljava/util/function/Predicate;)V
-
removeFromDimension
protected 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 classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named removeFromDimensionLnet/minecraft/entity/Entity;removeFromDimension()Vintermediary method_30076Lnet/minecraft/class_1297;method_30076()Vofficial cvLbsv;cv()V
-
getPickBlockStack
Returns 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 classEntity- Returns:
- the stack for creative "pick block" functionality, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dCLbsv;dC()Lcuq;
-