Class MobEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,Leashable,Targeter,StackReferenceGetter,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable,ServerWaypoint,Waypoint
- Direct Known Subclasses:
AmbientEntity,EnderDragonEntity,GhastEntity,PathAwareEntity,PhantomEntity,SlimeEntity
- Mappings:
Namespace Name named net/minecraft/entity/mob/MobEntityintermediary net/minecraft/class_1308official cho
-
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.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.OffsetNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTrackerNested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intintstatic final floatstatic final floatprivate 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 final BodyControlstatic final Stringprivate booleanprivate static final booleanstatic final floatUsed by Zombies to control the chance that they spawn with the ability to pick up loot.private static final booleanprivate static final booleanprivate static final booleanstatic final Stringprivate static final List<EquipmentSlot> private EquipmentDropChancesprotected intstatic final intprotected final GoalSelectorContains actions the entity can perform.private static final Vec3iprotected JumpControlprivate Leashable.LeashDataprivate static final intstatic final Stringprotected LookControlprivate Optional<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 EntityNavigationstatic final Stringprivate final Map<PathNodeType, Float> private booleanprivate BlockPosprivate intprotected static final Identifierprivate LivingEntityprotected final GoalSelectorContains goals used to select this entity's target.private final MobVisibilityCacheFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, BRAIN_KEY, dead, DEATH_TICKS, DEATH_TIME_KEY, deathTime, despawnCounter, elytraFlightController, equipment, EQUIPMENT_KEY, EQUIPMENT_SLOT_ID, FALL_FLYING_KEY, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, field_63293, field_63294, forwardSpeed, glidingTicks, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, piercingCooldowns, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, ticksSinceHandEquipping, ticksSinceLastAttack, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.Leashable
DEFAULT_ELASTIC_DISTANCE, DEFAULT_SNAPPING_DISTANCE, ELASTICITY_MULTIPLIER, field_59997, field_59998, field_59999, field_60003, HELD_ENTITY_ATTACHMENT_POINT, LEASH_HOLDER_ATTACHMENT_POINT, LEASH_NBT_KEY, QUAD_LEASH_ATTACHMENT_POINTSFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLDFields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMobEntity(EntityType<? extends MobEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoidbaseTick()booleanbooleanprotected booleanbooleancanGather(ServerWorld world, ItemStack stack) booleancanImmediatelyDespawn(double distanceSquared) static booleancanMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) booleanbooleancanPickupItem(ItemStack stack) booleanprotected booleancanRemoveSaddle(PlayerEntity player) booleancanSpawn(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.protected voidvoidclearGoals(Predicate<Goal> predicate) voidvoid<T extends MobEntity>
@Nullable TconvertTo(EntityType<T> entityType, EntityConversionContext context, EntityConversionContext.Finalizer<T> finalizer) Converts this entity to the providedentityType.<T extends MobEntity>
@Nullable TconvertTo(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext.Finalizer<T> finalizer) protected BodyControlprivate LootWorldContextprotected EntityNavigationcreateNavigation(World world) voidprotected voiddropEquipment(ServerWorld world, DamageSource source, boolean causedByPlayer) dropForeignEquipment(ServerWorld world, Predicate<ItemStack> dropPredicate) Drops all foreign equipment (equipment which this entity picked up from the world and should be always dropped undamaged).protected voiddropLoot(ServerWorld world, DamageSource damageSource, boolean causedByPlayer) protected voideat(PlayerEntity player, Hand hand, ItemStack stack) private voidenchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) protected voidenchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) protected voidenchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) voidequipBodyArmor(ItemStack stack) protected voidequipLootStack(EquipmentSlot slot, ItemStack stack) protected @Nullable SoundEventprotected BoxGets the area in which this mob can attack entities whose hitbox intersects it.private doublegetAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) @Nullable LivingEntityReturns the passenger in control of this entity, ornullif there is none.protected EquipmentSlotstatic @Nullable ItemgetEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) protected intgetExperienceToDrop(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected Vec3i@Nullable Leashable.LeashDataintfinal Optional<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) @Nullable ItemStackReturns the stack for creative "pick block" functionality, ornullif there is none.intfloatintReturns the maximum height of a fall the entity takes during pathfinding.@Nullable LivingEntityprotected final @Nullable LivingEntityvoidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.booleanbooleanprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected voidinitEquipment(Random random, LocalDifficulty localDifficulty) protected void@Nullable EntityDatainitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResultinteractMob(PlayerEntity player, Hand hand) private ActionResultinteractWithItem(PlayerEntity player, Hand hand) private booleanbooleanbooleanbooleanisInAttackRange(LivingEntity entity) booleanbooleanbooleanbooleanbooleanprivate booleanisWearing(EquipmentSlot slot) booleanvoidlookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange) protected voidloot(ServerWorld world, ItemEntity itemEntity) protected voidmobTick(ServerWorld world) protected booleanWhen true, causes this entity to take over pathfinding for its controlling passenger.voidvoidvoidprotected voidonPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidvoidprotected voidplayHurtSound(DamageSource damageSource) voidprivate booleanprefersNewArmor(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) booleanprefersNewDamageableItem(ItemStack newStack, ItemStack oldStack) protected booleanprefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) private booleanprefersNewWeapon(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected voidreadCustomData(ReadView view) voidregisterTracking(ServerWorld world, DebugTrackable.Tracker tracker) protected voidRemoves this entity from the current dimension.private voidprivate voidvoidsetAiDisabled(boolean aiDisabled) voidsetAttacking(boolean attacking) voidsetBaby(boolean baby) voidsetCanPickUpLoot(boolean canPickUpLoot) voidvoidsetEquipmentDropChance(EquipmentSlot slot, float dropChance) voidsetEquipmentFromTable(EquipmentTable equipmentTable) voidsetEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) voidsetForwardSpeed(float forwardSpeed) voidsetLeashData(@Nullable Leashable.LeashData leashData) 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) voidbooleanspawnsTooManyForEachTry(int count) booleanstartRiding(Entity entity, boolean force, boolean emitEvent) Starts ridingentity.voidprotected voidswimUpward(TagKey<Fluid> fluid) voidtick()Ticks this entity.private voidvoidprotected final voidbooleantryAttack(ServerWorld world, Entity target) tryEquip(ServerWorld world, ItemStack stack) protected voidturnHead(float bodyRotation) protected voidupdateAttribute(RegistryEntry<EntityAttribute> attribute) protected voidupdateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) protected voidprotected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, beforePacketsSent, beforePlayerAttack, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, createTracker, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, dropLoot, endCombat, enterCombat, equipStack, fall, forEachBrushedItem, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, generateLoot, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEntity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getInterpolator, getItemUseTime, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPiercedEntityCount, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getTimeSinceLastKineticAttack, getVelocityMultiplier, getWaypointConfig, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, hasWaypoint, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInPiercingCooldown, isInsideWall, isInSwimmingPose, isInvulnerableTo, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTravellingInFluid, isUsingItem, isUsingRiptide, jump, kill, knockback, knockbackTarget, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, pierce, playAttackSound, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldDrown, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, startPiercingCooldown, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, travelFlying, travelFlying, travelInWater, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, useAttackEnchantmentEffects, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadRotationVector, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getKineticAttackMovement, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickLastPos, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyElasticity, attachLeash, beforeLeashTick, canBeLeashedTo, canUseQuadLeashAttachmentPoint, detachLeash, detachLeashWithoutDrop, getDistanceToCenter, getElasticLeashDistance, getLeashHolder, getLeashOffset, getLeashOffset, getLeashSnappingDistance, getQuadLeashOffsets, isLeashed, mightBeLeashed, onLongLeashTick, onShortLeashTick, readLeashData, setUnresolvedLeashHolderId, writeLeashDataMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.inventory.StackReferenceGetter
getStackReferences
-
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 aLcho;a:Lalw;
-
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 bLcho;b: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 cLcho;c: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 dLcho;d:I
-
MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT
protected static final int MINIMUM_DROPPED_EXPERIENCE_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_EXPERIENCE_PER_EQUIPMENTLnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT:Iintermediary field_30087Lnet/minecraft/class_1308;field_30087:Iofficial rLcho;r: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 eLcho;e:Ljy;
-
EQUIPMENT_INIT_ORDER
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_INIT_ORDERLnet/minecraft/entity/mob/MobEntity;EQUIPMENT_INIT_ORDER:Ljava/util/List;intermediary field_52448Lnet/minecraft/class_1308;field_52448:Ljava/util/List;official cuLcho;cu:Ljava/util/List;
-
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 sLcho;s:F
-
ARMOR_UPGRADE_CHANCE
public static final float ARMOR_UPGRADE_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named ARMOR_UPGRADE_CHANCELnet/minecraft/entity/mob/MobEntity;ARMOR_UPGRADE_CHANCE:Fintermediary field_62909Lnet/minecraft/class_1308;field_62909:Fofficial tLcho;t:F
-
ARMOR_UPGRADE_ROLLS
public static final float ARMOR_UPGRADE_ROLLS- See Also:
- Mappings:
Namespace Name Mixin selector named ARMOR_UPGRADE_ROLLSLnet/minecraft/entity/mob/MobEntity;ARMOR_UPGRADE_ROLLS:Fintermediary field_62910Lnet/minecraft/class_1308;field_62910:Fofficial ccLcho;cc: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 cdLcho;cd: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 ceLcho;ce: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 cfLcho;cf:F
-
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 cgLcho;cg: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 cvLcho;cv:D
-
DEFAULT_CAN_PICK_UP_LOOT
private static final boolean DEFAULT_CAN_PICK_UP_LOOT- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CAN_PICK_UP_LOOTLnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICK_UP_LOOT:Zintermediary field_57591Lnet/minecraft/class_1308;field_57591:Zofficial cwLcho;cw:Z
-
DEFAULT_PERSISTENCE_REQUIRED
private static final boolean DEFAULT_PERSISTENCE_REQUIRED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_PERSISTENCE_REQUIREDLnet/minecraft/entity/mob/MobEntity;DEFAULT_PERSISTENCE_REQUIRED:Zintermediary field_57592Lnet/minecraft/class_1308;field_57592:Zofficial cxLcho;cx:Z
-
DEFAULT_LEFT_HANDED
private static final boolean DEFAULT_LEFT_HANDED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_LEFT_HANDEDLnet/minecraft/entity/mob/MobEntity;DEFAULT_LEFT_HANDED:Zintermediary field_57593Lnet/minecraft/class_1308;field_57593:Zofficial cyLcho;cy:Z
-
DEFAULT_NO_AI
private static final boolean DEFAULT_NO_AI- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NO_AILnet/minecraft/entity/mob/MobEntity;DEFAULT_NO_AI:Zintermediary field_57594Lnet/minecraft/class_1308;field_57594:Zofficial czLcho;cz:Z
-
RANDOM_SPAWN_BONUS_MODIFIER_ID
- Mappings:
Namespace Name Mixin selector named RANDOM_SPAWN_BONUS_MODIFIER_IDLnet/minecraft/entity/mob/MobEntity;RANDOM_SPAWN_BONUS_MODIFIER_ID:Lnet/minecraft/util/Identifier;intermediary field_51997Lnet/minecraft/class_1308;field_51997:Lnet/minecraft/class_2960;official chLcho;ch:Lamo;
-
DROP_CHANCES_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DROP_CHANCES_KEYLnet/minecraft/entity/mob/MobEntity;DROP_CHANCES_KEY:Ljava/lang/String;intermediary field_60545Lnet/minecraft/class_1308;field_60545:Ljava/lang/String;official ciLcho;ci:Ljava/lang/String;
-
LEFT_HANDED_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_HANDED_KEYLnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_KEY:Ljava/lang/String;intermediary field_60546Lnet/minecraft/class_1308;field_60546:Ljava/lang/String;official cjLcho;cj:Ljava/lang/String;
-
CAN_PICK_UP_LOOT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CAN_PICK_UP_LOOT_KEYLnet/minecraft/entity/mob/MobEntity;CAN_PICK_UP_LOOT_KEY:Ljava/lang/String;intermediary field_60547Lnet/minecraft/class_1308;field_60547:Ljava/lang/String;official ckLcho;ck:Ljava/lang/String;
-
NO_AI_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named NO_AI_KEYLnet/minecraft/entity/mob/MobEntity;NO_AI_KEY:Ljava/lang/String;intermediary field_60548Lnet/minecraft/class_1308;field_60548:Ljava/lang/String;official clLcho;cl:Ljava/lang/String;
-
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 cmLcho;cm: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 cnLcho;cn: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 coLcho;co:Lcnn;
-
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 cpLcho;cp:Lcno;
-
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 cqLcho;cq:Lcnm;
-
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 cALcho;cA:Lcnj;
-
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 csLcho;cs:Lcoo;
-
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 ctLcho;ct:Lcoo;
-
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 cBLcho;cB:Lchm;
-
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 cCLcho;cC:Lcsa;
-
equipmentDropChances
- Mappings:
Namespace Name Mixin selector named equipmentDropChancesLnet/minecraft/entity/mob/MobEntity;equipmentDropChances:Lnet/minecraft/entity/EquipmentDropChances;intermediary field_55677Lnet/minecraft/class_1308;field_55677:Lnet/minecraft/class_10582;official cDLcho;cD:Lcgi;
-
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 cELcho;cE: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 cFLcho;cF: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 cGLcho;cG:Ljava/util/Map;
-
lootTable
- Mappings:
Namespace Name Mixin selector named lootTableLnet/minecraft/entity/mob/MobEntity;lootTable:Ljava/util/Optional;intermediary field_6198Lnet/minecraft/class_1308;field_6198:Ljava/util/Optional;official cHLcho;cH:Ljava/util/Optional;
-
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 cILcho;cI:J
-
leashData
- Mappings:
Namespace Name Mixin selector named leashDataLnet/minecraft/entity/mob/MobEntity;leashData:Lnet/minecraft/entity/Leashable$LeashData;intermediary field_52221Lnet/minecraft/class_1308;field_52221:Lnet/minecraft/class_9817$class_9818;official cJLcho;cJ:Lchk$a;
-
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 cKLcho;cK:Lis;
-
positionTargetRange
private int positionTargetRange- Mappings:
Namespace Name Mixin selector named positionTargetRangeLnet/minecraft/entity/mob/MobEntity;positionTargetRange:Iintermediary field_18075Lnet/minecraft/class_1308;field_18075:Iofficial cLLcho;cL:I
-
-
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>Lcgk;<init>(Lcgu;Ldvk;)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 HLcho;H()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 ILcho;I()Lcis$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 JLcho;J()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 aLcho;a(Lfko;)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 aLcho;a(Lfko;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 KLcho;K()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 LLcho;L()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 NLcho;N()Lcnj;
-
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 PLcho;P()Lcnn;
-
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 QLcho;Q()Lcno;
-
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 RLcho;R()Lcnm;
-
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 dkLcgk;dk()Lchm;
-
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 TLcho;T()Lcsa;
-
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 ULcho;U()Lchm;
-
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 gLcho;g(Lchm;)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 aLchm;a(Lcgu;)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 aLcho;a(Ldll;)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 VLcho;V()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 aLcgk;a(Lama$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 WLcho;W()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 XLcho;X()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 aJLcgk;aJ()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 hLchm;h(Lcex;)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 kLcho;k()V
-
getExperienceToDrop
Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getExperienceToDropin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named getExperienceToDropLnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)Iintermediary method_6110Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)Iofficial fLchm;f(Laxf;)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 YLcho;Y()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 bLcgk;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 gLcgk;g()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 ZLcho;Z()V
-
turnHead
protected void turnHead(float bodyRotation) - Overrides:
turnHeadin classLivingEntity- Mappings:
Namespace Name Mixin selector named turnHeadLnet/minecraft/entity/LivingEntity;turnHead(F)Vintermediary method_6031Lnet/minecraft/class_1309;method_6031(F)Vofficial DLchm;D(F)V
-
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 pLcho;p()Lbcz;
-
writeCustomData
- Overrides:
writeCustomDatain classLivingEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcgk;a(Lfmo;)V
-
readCustomData
- Overrides:
readCustomDatain classLivingEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcgk;a(Lfmm;)V
-
dropLoot
- Overrides:
dropLootin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropLootLnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)Vintermediary method_16077Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)Vofficial bLchm;b(Laxf;Lcex;Z)V
-
getLootTableKey
- Overrides:
getLootTableKeyin classEntity- Mappings:
Namespace Name Mixin selector named getLootTableKeyLnet/minecraft/entity/Entity;getLootTableKey()Ljava/util/Optional;intermediary method_5991Lnet/minecraft/class_1297;method_5991()Ljava/util/Optional;official eqLcgk;eq()Ljava/util/Optional;
-
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 fbLchm;fb()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 ILcho;I(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 JLcho;J(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 KLcho;K(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 CLchm;C(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 aaLcho;aa()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 d_Lchm;d_()V
-
getDaylightProtectionSlot
- Mappings:
Namespace Name Mixin selector named getDaylightProtectionSlotLnet/minecraft/entity/mob/MobEntity;getDaylightProtectionSlot()Lnet/minecraft/entity/EquipmentSlot;intermediary method_75127Lnet/minecraft/class_1308;method_75127()Lnet/minecraft/class_1304;official abLcho;ab()Lcgv;
-
tickBurnInDaylight
private void tickBurnInDaylight()- Mappings:
Namespace Name Mixin selector named tickBurnInDaylightLnet/minecraft/entity/mob/MobEntity;tickBurnInDaylight()Vintermediary method_75128Lnet/minecraft/class_1308;method_75128()Vofficial gMLcho;gM()V
-
isAffectedByDaylight
private boolean isAffectedByDaylight()- Mappings:
Namespace Name Mixin selector named isAffectedByDaylightLnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Zintermediary method_5972Lnet/minecraft/class_1308;method_5972()Zofficial gNLcho;gN()Z
-
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 acLcho;ac()Ljy;
-
loot
- Mappings:
Namespace Name Mixin selector named lootLnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)Vintermediary method_5949Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)Vofficial aLcho;a(Laxf;Lcyt;)V
-
tryEquip
- Mappings:
Namespace Name Mixin selector named tryEquipLnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_24523Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official bLcho;b(Laxf;Ldkq;)Ldkq;
-
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 bLcho;b(Lcgv;Ldkq;)V
-
canRemoveSaddle
- Mappings:
Namespace Name Mixin selector named canRemoveSaddleLnet/minecraft/entity/mob/MobEntity;canRemoveSaddle(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_71768Lnet/minecraft/class_1308;method_71768(Lnet/minecraft/class_1657;)Zofficial aLcho;a(Ldco;)Z
-
setDropGuaranteed
- Mappings:
Namespace Name Mixin selector named setDropGuaranteedLnet/minecraft/entity/mob/MobEntity;setDropGuaranteed(Lnet/minecraft/entity/EquipmentSlot;)Vintermediary method_25939Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)Vofficial gLcho;g(Lcgv;)V
-
prefersNewEquipment
protected boolean prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) - Mappings:
Namespace Name Mixin selector named prefersNewEquipmentLnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_5955Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Zofficial aLcho;a(Ldkq;Ldkq;Lcgv;)Z
-
prefersNewArmor
- Mappings:
Namespace Name Mixin selector named prefersNewArmorLnet/minecraft/entity/mob/MobEntity;prefersNewArmor(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_65346Lnet/minecraft/class_1308;method_65346(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Zofficial bLcho;b(Ldkq;Ldkq;Lcgv;)Z
-
prefersNewWeapon
- Mappings:
Namespace Name Mixin selector named prefersNewWeaponLnet/minecraft/entity/mob/MobEntity;prefersNewWeapon(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_65347Lnet/minecraft/class_1308;method_65347(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Zofficial cLcho;c(Ldkq;Ldkq;Lcgv;)Z
-
getAttributeValueWithStack
private double getAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) - Mappings:
Namespace Name Mixin selector named getAttributeValueWithStackLnet/minecraft/entity/mob/MobEntity;getAttributeValueWithStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/EquipmentSlot;)Dintermediary method_63632Lnet/minecraft/class_1308;method_63632(Lnet/minecraft/class_1799;Lnet/minecraft/class_6880;Lnet/minecraft/class_1304;)Dofficial aLcho;a(Ldkq;Ljd;Lcgv;)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 bLcho;b(Ldkq;Ldkq;)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 gLcho;g(Ldkq;)Z
-
canGather
- Mappings:
Namespace Name Mixin selector named canGatherLnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Zintermediary method_20820Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Zofficial cLcho;c(Laxf;Ldkq;)Z
-
getPreferredWeapons
- Mappings:
Namespace Name Mixin selector named getPreferredWeaponsLnet/minecraft/entity/mob/MobEntity;getPreferredWeapons()Lnet/minecraft/registry/tag/TagKey;intermediary method_65345Lnet/minecraft/class_1308;method_65345()Lnet/minecraft/class_6862;official aeLcho;ae()Lbef;
-
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 iLcho;i(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 afLcho;af()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 dVLcgk;dV()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 fSLchm;fS()V
-
mobTick
- Mappings:
Namespace Name Mixin selector named mobTickLnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_5958Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)Vofficial aLcho;a(Laxf;)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 aiLcho;ai()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 ajLcho;aj()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 akLcho;ak()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 alLcho;al()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 aLcho;a(Lcgk;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
Control.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 aLcho;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 aLcho;a(Lcgu;Ldvl;Lcgt;Lis;Lbgr;)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 aLcho;a(Ldvl;Lcgt;)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 aLcho;a(Ldvn;)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 amLcho;am()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 qLcho;q(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 cVLcgk;cV()I
-
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 anLcho;an()Ldkq;
-
hasSaddleEquipped
public boolean hasSaddleEquipped()- Mappings:
Namespace Name Mixin selector named hasSaddleEquippedLnet/minecraft/entity/mob/MobEntity;hasSaddleEquipped()Zintermediary method_66672Lnet/minecraft/class_1308;method_66672()Zofficial gwLcho;gw()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 gxLcho;gx()Z
-
isWearing
- Mappings:
Namespace Name Mixin selector named isWearingLnet/minecraft/entity/mob/MobEntity;isWearing(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_71148Lnet/minecraft/class_1308;method_71148(Lnet/minecraft/class_1304;)Zofficial iLcho;i(Lcgv;)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 hLcho;h(Ldkq;)V
-
createEquipmentInventory
- Mappings:
Namespace Name Mixin selector named createEquipmentInventoryLnet/minecraft/entity/mob/MobEntity;createEquipmentInventory(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/inventory/Inventory;intermediary method_66674Lnet/minecraft/class_1308;method_66674(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1263;official hLcho;h(Lcgv;)Lccv;
-
dropEquipment
- Overrides:
dropEquipmentin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)Vofficial aLchm;a(Laxf;Lcex;Z)V
-
getEquipmentDropChances
- Mappings:
Namespace Name Mixin selector named getEquipmentDropChancesLnet/minecraft/entity/mob/MobEntity;getEquipmentDropChances()Lnet/minecraft/entity/EquipmentDropChances;intermediary method_66286Lnet/minecraft/class_1308;method_66286()Lnet/minecraft/class_10582;official gyLcho;gy()Lcgi;
-
dropAllForeignEquipment
- Mappings:
Namespace Name Mixin selector named dropAllForeignEquipmentLnet/minecraft/entity/mob/MobEntity;dropAllForeignEquipment(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_60973Lnet/minecraft/class_1308;method_60973(Lnet/minecraft/class_3218;)Vofficial bLcho;b(Laxf;)V
-
dropForeignEquipment
public Set<EquipmentSlot> dropForeignEquipment(ServerWorld world, Predicate<ItemStack> dropPredicate) Drops all foreign equipment (equipment which this entity picked up from the world and should be always dropped undamaged).- Returns:
- a set of
EquipmentSlots where each slot is being occupied by an item which did not pass the predicate - Mappings:
Namespace Name Mixin selector named dropForeignEquipmentLnet/minecraft/entity/mob/MobEntity;dropForeignEquipment(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Predicate;)Ljava/util/Set;intermediary method_60972Lnet/minecraft/class_1308;method_60972(Lnet/minecraft/class_3218;Ljava/util/function/Predicate;)Ljava/util/Set;official aLcho;a(Laxf;Ljava/util/function/Predicate;)Ljava/util/Set;
-
createEquipmentLootParameters
- Mappings:
Namespace Name Mixin selector named createEquipmentLootParametersLnet/minecraft/entity/mob/MobEntity;createEquipmentLootParameters(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/loot/context/LootWorldContext;intermediary method_58635Lnet/minecraft/class_1308;method_58635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8567;official hLcho;h(Laxf;)Lfmz;
-
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 aLcho;a(Lcgx;)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 aLcho;a(Lamt;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 aLcho;a(Lbgr;Lcda;)V
-
getEquipmentForSlot
- 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 aLcho;a(Lcgv;I)Ldkm;
-
updateEnchantments
protected void updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named updateEnchantmentsLnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)Vintermediary method_5984Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vofficial aLcho;a(Ldwb;Lbgr;Lcda;)V
-
enchantMainHandItem
protected void enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantMainHandItemLnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)Vintermediary method_30759Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vofficial bLcho;b(Ldwb;Lbgr;Lcda;)V
-
enchantEquipment
protected void enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantEquipmentLnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/world/LocalDifficulty;)Vintermediary method_30758Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1304;Lnet/minecraft/class_1266;)Vofficial aLcho;a(Ldwb;Lbgr;Lcgv;Lcda;)V
-
enchantEquipment
private void enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantEquipmentLnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/util/math/random/Random;FLnet/minecraft/world/LocalDifficulty;)Vintermediary method_59927Lnet/minecraft/class_1308;method_59927(Lnet/minecraft/class_5425;Lnet/minecraft/class_1304;Lnet/minecraft/class_5819;FLnet/minecraft/class_1266;)Vofficial aLcho;a(Ldwb;Lcgv;Lbgr;FLcda;)V
-
initialize
public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @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 aLcho;a(Ldwb;Lcda;Lcgt;Lcif;)Lcif;
-
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 gzLcho;gz()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 aLcgy;a(Lcgv;F)V
-
canPickUpLoot
public boolean canPickUpLoot()- Overrides:
canPickUpLootin classLivingEntity- Mappings:
Namespace Name Mixin selector named canPickUpLootLnet/minecraft/entity/LivingEntity;canPickUpLoot()Zintermediary method_5936Lnet/minecraft/class_1309;method_5936()Zofficial gkLchm;gk()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_Lcho;a_(Z)V
-
canDispenserEquipSlot
- Overrides:
canDispenserEquipSlotin classLivingEntity- Mappings:
Namespace Name Mixin selector named canDispenserEquipSlotLnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_63626Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Zofficial fLchm;f(Lcgv;)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 gALcho;gA()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 aLcgk;a(Ldco;Lcdb;)Lcdc;
-
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 cLcho;c(Ldco;Lcdb;)Lcdc;
-
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 aLcho;a(Ldco;Lcho;)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 bLcho;b(Ldco;Lcdb;)Lcdc;
-
eat
- Mappings:
Namespace Name Mixin selector named eatLnet/minecraft/entity/mob/MobEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)Vintermediary method_6475Lnet/minecraft/class_1308;method_6475(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Vofficial aLcho;a(Ldco;Lcdb;Ldkq;)V
-
isInPositionTargetRange
public boolean isInPositionTargetRange()- Mappings:
Namespace Name Mixin selector named isInPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;isInPositionTargetRange()Zintermediary method_18411Lnet/minecraft/class_1308;method_18411()Zofficial gBLcho;gB()Z
-
isInPositionTargetRange
- Mappings:
Namespace Name Mixin selector named isInPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;isInPositionTargetRange(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_18407Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Zofficial aLcho;a(Lis;)Z
-
isInPositionTargetRange
- Mappings:
Namespace Name Mixin selector named isInPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;isInPositionTargetRange(Lnet/minecraft/util/math/Vec3d;)Zintermediary method_70676Lnet/minecraft/class_1308;method_70676(Lnet/minecraft/class_243;)Zofficial aLcho;a(Lfsi;)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 aLcho;a(Lis;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 gCLcho;gC()Lis;
-
getPositionTargetRange
public int getPositionTargetRange()- Mappings:
Namespace Name Mixin selector named getPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()Iintermediary method_18413Lnet/minecraft/class_1308;method_18413()Iofficial gDLcho;gD()I
-
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 gELcho;gE()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 gFLcho;gF()Z
-
convertTo
public <T extends MobEntity> @Nullable T convertTo(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext.Finalizer<T> finalizer) - Mappings:
Namespace Name Mixin selector named convertToLnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/conversion/EntityConversionContext;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/conversion/EntityConversionContext$Finalizer;)Lnet/minecraft/entity/mob/MobEntity;intermediary method_63631Lnet/minecraft/class_1308;method_63631(Lnet/minecraft/class_1299;Lnet/minecraft/class_10179;Lnet/minecraft/class_3730;Lnet/minecraft/class_10179$class_10180;)Lnet/minecraft/class_1308;official aLcho;a(Lcgu;Lcge;Lcgt;Lcge$a;)Lcho;
-
convertTo
public <T extends MobEntity> @Nullable T convertTo(EntityType<T> entityType, EntityConversionContext context, EntityConversionContext.Finalizer<T> finalizer) 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 to- Mappings:
Namespace Name Mixin selector named convertToLnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/conversion/EntityConversionContext;Lnet/minecraft/entity/conversion/EntityConversionContext$Finalizer;)Lnet/minecraft/entity/mob/MobEntity;intermediary method_29243Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Lnet/minecraft/class_10179;Lnet/minecraft/class_10179$class_10180;)Lnet/minecraft/class_1308;official aLcho;a(Lcgu;Lcge;Lcge$a;)Lcho;
-
getLeashData
- Specified by:
getLeashDatain interfaceLeashable- Mappings:
Namespace Name Mixin selector named getLeashDataLnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;intermediary method_60955Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;official U_Lchk;U_()Lchk$a;
-
resetLeashMomentum
private void resetLeashMomentum()- Mappings:
Namespace Name Mixin selector named resetLeashMomentumLnet/minecraft/entity/mob/MobEntity;resetLeashMomentum()Vintermediary method_71614Lnet/minecraft/class_1308;method_71614()Vofficial gOLcho;gO()V
-
setLeashData
- Specified by:
setLeashDatain interfaceLeashable- Mappings:
Namespace Name Mixin selector named setLeashDataLnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)Vintermediary method_60960Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)Vofficial aLchk;a(Lchk$a;)V
-
onLeashRemoved
public void onLeashRemoved()- Specified by:
onLeashRemovedin interfaceLeashable- Mappings:
Namespace Name Mixin selector named onLeashRemovedLnet/minecraft/entity/Leashable;onLeashRemoved()Vintermediary method_65895Lnet/minecraft/class_9817;method_65895()Vofficial yLchk;y()V
-
snapLongLeash
public void snapLongLeash()- Specified by:
snapLongLeashin interfaceLeashable- Mappings:
Namespace Name Mixin selector named snapLongLeashLnet/minecraft/entity/Leashable;snapLongLeash()Vintermediary method_60970Lnet/minecraft/class_9817;method_60970()Vofficial CLchk;C()V
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfaceLeashable- Mappings:
Namespace Name Mixin selector named canBeLeashedLnet/minecraft/entity/Leashable;canBeLeashed()Zintermediary method_5931Lnet/minecraft/class_9817;method_5931()Zofficial vLchk;v()Z
-
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;ZZ)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;ZZ)Zofficial aLcgk;a(Lcgk;ZZ)Z
-
canActVoluntarily
public boolean canActVoluntarily()- Overrides:
canActVoluntarilyin classEntity- Mappings:
Namespace Name Mixin selector named canActVoluntarilyLnet/minecraft/entity/Entity;canActVoluntarily()Zintermediary method_6034Lnet/minecraft/class_1297;method_6034()Zofficial dxLcgk;dx()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 uLcho;u(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 vLcho;v(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 wLcho;w(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 gGLcho;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 gHLcho;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 gILcho;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 aLcho;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 atLchm;at()Lchc;
-
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 hLcho;h(Lchm;)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 gJLcho;gJ()Lfsd;
-
tryAttack
- Overrides:
tryAttackin classLivingEntity- Mappings:
Namespace Name Mixin selector named tryAttackLnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Zintermediary method_6121Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Zofficial cLchm;c(Laxf;Lcgk;)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 cLchm;c(Lbef;)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 gKLcho;gK()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 cLcho;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 ofto zero.invalid reference
equipped stacks
- 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 cULcgk;cU()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 dYLcgk;dY()Ldkq;
-
updateAttribute
- Overrides:
updateAttributein classLivingEntity- Mappings:
Namespace Name Mixin selector named updateAttributeLnet/minecraft/entity/LivingEntity;updateAttribute(Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_52540Lnet/minecraft/class_1309;method_52540(Lnet/minecraft/class_6880;)Vofficial aLchm;a(Ljd;)V
-
registerTracking
- Specified by:
registerTrackingin interfaceDebugTrackable- Overrides:
registerTrackingin classEntity- Mappings:
Namespace Name Mixin selector named registerTrackingLnet/minecraft/world/debug/DebugTrackable;registerTracking(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/debug/DebugTrackable$Tracker;)Vintermediary method_74589Lnet/minecraft/class_12023;method_74589(Lnet/minecraft/class_3218;Lnet/minecraft/class_12023$class_12024;)Vofficial aLbxh;a(Laxf;Lbxh$a;)V
-
getRiderChargingSpeedMultiplier
public float getRiderChargingSpeedMultiplier()- Mappings:
Namespace Name Mixin selector named getRiderChargingSpeedMultiplierLnet/minecraft/entity/mob/MobEntity;getRiderChargingSpeedMultiplier()Fintermediary method_76091Lnet/minecraft/class_1308;method_76091()Fofficial gLLcho;gL()F
-