Class MobEntity
- All Implemented Interfaces:
Attackable,DataTracked,Targeter,ScoreHolder,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
AmbientEntity,EnderDragonEntity,FlyingEntity,PathAwareEntity,SlimeEntity
- Mappings:
Namespace Name official bprintermediary net/minecraft/class_1308named net/minecraft/entity/mob/MobEntity
-
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 Identifierprivate longprotected static final intThe minimum additional experience a mob will drop per item of equipment they have.private static final TrackedData<Byte> protected MoveControlprotected EntityNavigationprivate final Map<PathNodeType, Float> private booleanprivate BlockPosprivate floatprivate @Nullable LivingEntityprotected final GoalSelectorContains goals used to select this entity's target.private final MobVisibilityCacheFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_47757, 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, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.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, 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 BodyControlprotected 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.Returns the passenger in control of this entity, ornullif there is none.protected floatgetDropChance(EquipmentSlot slot) getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) protected Vec3iintfinal Identifierprotected IdentifierlongintReturns the maximum degrees which the head yaw can differ from the body yaw.intReturns the maximum degrees which the pitch can change when looking.intReturns the maximum degrees which the yaw can change when looking.intfloatgetPathfindingPenalty(PathNodeType nodeType) Returns the stack for creative "pick block" functionality, ornullif there is none.floatintReturns the maximum height of a fall the entity takes during pathfinding.intCalled 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.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) protected voidmobTick()protected booleanWhen true, causes this entity to take over pathfinding for its controlling passenger.voidvoidprotected voidonPlayerSpawnedChild(PlayerEntity player, MobEntity child) voidvoidprotected voidplayHurtSound(DamageSource 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 chance) voidsetForwardSpeed(float forwardSpeed) voidsetHoldingEntityId(int id) voidsetLeftHanded(boolean leftHanded) voidsetMovementSpeed(float movementSpeed) voidsetPathfindingPenalty(PathNodeType nodeType, float penalty) voidvoidsetPositionTarget(BlockPos target, int range) voidsetSidewaysSpeed(float sidewaysSpeed) voidsetTarget(@Nullable LivingEntity target) voidsetUpwardSpeed(float upwardSpeed) booleanspawnsTooManyForEachTry(int count) 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, 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, 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, getRoll, 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, 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, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflector, 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.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
MOB_FLAGS
- Mappings:
Namespace Name Mixin selector official bLbpr;b:Laim;intermediary field_6193Lnet/minecraft/class_1308;field_6193:Lnet/minecraft/class_2940;named MOB_FLAGSLnet/minecraft/entity/mob/MobEntity;MOB_FLAGS:Lnet/minecraft/entity/data/TrackedData;
-
AI_DISABLED_FLAG
private static final int AI_DISABLED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector official cLbpr;c:Iintermediary field_30088Lnet/minecraft/class_1308;field_30088:Inamed AI_DISABLED_FLAGLnet/minecraft/entity/mob/MobEntity;AI_DISABLED_FLAG:I
-
LEFT_HANDED_FLAG
private static final int LEFT_HANDED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector official dLbpr;d:Iintermediary field_30089Lnet/minecraft/class_1308;field_30089:Inamed LEFT_HANDED_FLAGLnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_FLAG:I
-
ATTACKING_FLAG
private static final int ATTACKING_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector official eLbpr;e:Iintermediary field_30090Lnet/minecraft/class_1308;field_30090:Inamed ATTACKING_FLAGLnet/minecraft/entity/mob/MobEntity;ATTACKING_FLAG: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 official fLbpr;f:Iintermediary field_30087Lnet/minecraft/class_1308;field_30087:Inamed MINIMUM_DROPPED_XP_PER_EQUIPMENTLnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_XP_PER_EQUIPMENT:I
-
ITEM_PICK_UP_RANGE_EXPANDER
- Mappings:
Namespace Name Mixin selector official bWLbpr;bW:Ljg;intermediary field_38386Lnet/minecraft/class_1308;field_38386:Lnet/minecraft/class_2382;named ITEM_PICK_UP_RANGE_EXPANDERLnet/minecraft/entity/mob/MobEntity;ITEM_PICK_UP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
-
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 official gLbpr;g:Fintermediary field_30091Lnet/minecraft/class_1308;field_30091:Fnamed BASE_SPAWN_EQUIPMENT_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_SPAWN_EQUIPMENT_CHANCE: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 official bELbpr;bE:Fintermediary field_30083Lnet/minecraft/class_1308;field_30083:Fnamed DEFAULT_CAN_PICKUP_LOOT_CHANCELnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICKUP_LOOT_CHANCE: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 official bFLbpr;bF:Fintermediary field_30084Lnet/minecraft/class_1308;field_30084:Fnamed BASE_ENCHANTED_ARMOR_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_ARMOR_CHANCE: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 official bGLbpr;bG:Fintermediary field_30085Lnet/minecraft/class_1308;field_30085:Fnamed BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCELnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE:F
-
LEASH_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official bHLbpr;bH:Ljava/lang/String;intermediary field_30086Lnet/minecraft/class_1308;field_30086:Ljava/lang/String;named LEASH_KEYLnet/minecraft/entity/mob/MobEntity;LEASH_KEY:Ljava/lang/String;
-
DEFAULT_DROP_CHANCE
public static final float DEFAULT_DROP_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector official bILbpr;bI:Fintermediary field_34043Lnet/minecraft/class_1308;field_34043:Fnamed DEFAULT_DROP_CHANCELnet/minecraft/entity/mob/MobEntity;DEFAULT_DROP_CHANCE:F
-
field_38932
public static final int field_38932- See Also:
- Mappings:
Namespace Name Mixin selector official bJLbpr;bJ:Iintermediary field_38932Lnet/minecraft/class_1308;field_38932:Inamed field_38932Lnet/minecraft/entity/mob/MobEntity;field_38932:I
-
field_35039
public static final int field_35039- See Also:
- Mappings:
Namespace Name Mixin selector official bKLbpr;bK:Iintermediary field_35039Lnet/minecraft/class_1308;field_35039:Inamed field_35039Lnet/minecraft/entity/mob/MobEntity;field_35039:I
-
ATTACK_RANGE
private static final double ATTACK_RANGE- Mappings:
Namespace Name Mixin selector official bXLbpr;bX:Dintermediary field_45969Lnet/minecraft/class_1308;field_45969:Dnamed ATTACK_RANGELnet/minecraft/entity/mob/MobEntity;ATTACK_RANGE:D
-
ambientSoundChance
public int ambientSoundChance- Mappings:
Namespace Name Mixin selector official bLLbpr;bL:Iintermediary field_6191Lnet/minecraft/class_1308;field_6191:Inamed ambientSoundChanceLnet/minecraft/entity/mob/MobEntity;ambientSoundChance:I
-
experiencePoints
protected int experiencePoints- Mappings:
Namespace Name Mixin selector official bMLbpr;bM:Iintermediary field_6194Lnet/minecraft/class_1308;field_6194:Inamed experiencePointsLnet/minecraft/entity/mob/MobEntity;experiencePoints:I
-
lookControl
- Mappings:
Namespace Name Mixin selector official bNLbpr;bN:Lbvo;intermediary field_6206Lnet/minecraft/class_1308;field_6206:Lnet/minecraft/class_1333;named lookControlLnet/minecraft/entity/mob/MobEntity;lookControl:Lnet/minecraft/entity/ai/control/LookControl;
-
moveControl
- Mappings:
Namespace Name Mixin selector official bOLbpr;bO:Lbvp;intermediary field_6207Lnet/minecraft/class_1308;field_6207:Lnet/minecraft/class_1335;named moveControlLnet/minecraft/entity/mob/MobEntity;moveControl:Lnet/minecraft/entity/ai/control/MoveControl;
-
jumpControl
- Mappings:
Namespace Name Mixin selector official bPLbpr;bP:Lbvn;intermediary field_6204Lnet/minecraft/class_1308;field_6204:Lnet/minecraft/class_1334;named jumpControlLnet/minecraft/entity/mob/MobEntity;jumpControl:Lnet/minecraft/entity/ai/control/JumpControl;
-
bodyControl
- Mappings:
Namespace Name Mixin selector official bYLbpr;bY:Lbvk;intermediary field_6188Lnet/minecraft/class_1308;field_6188:Lnet/minecraft/class_1330;named bodyControlLnet/minecraft/entity/mob/MobEntity;bodyControl:Lnet/minecraft/entity/ai/control/BodyControl;
-
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 official bRLbpr;bR:Lbwn;intermediary field_6201Lnet/minecraft/class_1308;field_6201:Lnet/minecraft/class_1355;named goalSelectorLnet/minecraft/entity/mob/MobEntity;goalSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
-
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 official bSLbpr;bS:Lbwn;intermediary field_6185Lnet/minecraft/class_1308;field_6185:Lnet/minecraft/class_1355;named targetSelectorLnet/minecraft/entity/mob/MobEntity;targetSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
-
target
- Mappings:
Namespace Name Mixin selector official bZLbpr;bZ:Lbpp;intermediary field_6199Lnet/minecraft/class_1308;field_6199:Lnet/minecraft/class_1309;named targetLnet/minecraft/entity/mob/MobEntity;target:Lnet/minecraft/entity/LivingEntity;
-
visibilityCache
- Mappings:
Namespace Name Mixin selector official caLbpr;ca:Lbzx;intermediary field_6190Lnet/minecraft/class_1308;field_6190:Lnet/minecraft/class_1413;named visibilityCacheLnet/minecraft/entity/mob/MobEntity;visibilityCache:Lnet/minecraft/entity/mob/MobVisibilityCache;
-
handItems
- Mappings:
Namespace Name Mixin selector official cbLbpr;cb:Liu;intermediary field_6195Lnet/minecraft/class_1308;field_6195:Lnet/minecraft/class_2371;named handItemsLnet/minecraft/entity/mob/MobEntity;handItems:Lnet/minecraft/util/collection/DefaultedList;
-
handDropChances
protected final float[] handDropChances- Mappings:
Namespace Name Mixin selector official bTLbpr;bT:[Fintermediary field_6187Lnet/minecraft/class_1308;field_6187:[Fnamed handDropChancesLnet/minecraft/entity/mob/MobEntity;handDropChances:[F
-
armorItems
- Mappings:
Namespace Name Mixin selector official ccLbpr;cc:Liu;intermediary field_6205Lnet/minecraft/class_1308;field_6205:Lnet/minecraft/class_2371;named armorItemsLnet/minecraft/entity/mob/MobEntity;armorItems:Lnet/minecraft/util/collection/DefaultedList;
-
armorDropChances
protected final float[] armorDropChances- Mappings:
Namespace Name Mixin selector official bULbpr;bU:[Fintermediary field_6186Lnet/minecraft/class_1308;field_6186:[Fnamed armorDropChancesLnet/minecraft/entity/mob/MobEntity;armorDropChances:[F
-
bodyArmor
- Mappings:
Namespace Name Mixin selector official cdLbpr;cd:Lcqm;intermediary field_48829Lnet/minecraft/class_1308;field_48829:Lnet/minecraft/class_1799;named bodyArmorLnet/minecraft/entity/mob/MobEntity;bodyArmor:Lnet/minecraft/item/ItemStack;
-
bodyArmorDropChance
protected float bodyArmorDropChance- Mappings:
Namespace Name Mixin selector official bVLbpr;bV:Fintermediary field_48828Lnet/minecraft/class_1308;field_48828:Fnamed bodyArmorDropChanceLnet/minecraft/entity/mob/MobEntity;bodyArmorDropChance:F
-
canPickUpLoot
private boolean canPickUpLoot- Mappings:
Namespace Name Mixin selector official ceLbpr;ce:Zintermediary field_6203Lnet/minecraft/class_1308;field_6203:Znamed canPickUpLootLnet/minecraft/entity/mob/MobEntity;canPickUpLoot:Z
-
persistent
private boolean persistent- Mappings:
Namespace Name Mixin selector official cfLbpr;cf:Zintermediary field_6200Lnet/minecraft/class_1308;field_6200:Znamed persistentLnet/minecraft/entity/mob/MobEntity;persistent:Z
-
pathfindingPenalties
- Mappings:
Namespace Name Mixin selector official cgLbpr;cg:Ljava/util/Map;intermediary field_6196Lnet/minecraft/class_1308;field_6196:Ljava/util/Map;named pathfindingPenaltiesLnet/minecraft/entity/mob/MobEntity;pathfindingPenalties:Ljava/util/Map;
-
lootTable
- Mappings:
Namespace Name Mixin selector official chLbpr;ch:Lajh;intermediary field_6198Lnet/minecraft/class_1308;field_6198:Lnet/minecraft/class_2960;named lootTableLnet/minecraft/entity/mob/MobEntity;lootTable:Lnet/minecraft/util/Identifier;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector official ciLbpr;ci:Jintermediary field_6184Lnet/minecraft/class_1308;field_6184:Jnamed lootTableSeedLnet/minecraft/entity/mob/MobEntity;lootTableSeed:J
-
holdingEntity
- Mappings:
Namespace Name Mixin selector official cjLbpr;cj:Lbox;intermediary field_6202Lnet/minecraft/class_1308;field_6202:Lnet/minecraft/class_1297;named holdingEntityLnet/minecraft/entity/mob/MobEntity;holdingEntity:Lnet/minecraft/entity/Entity;
-
holdingEntityId
private int holdingEntityId- Mappings:
Namespace Name Mixin selector official ckLbpr;ck:Iintermediary field_18279Lnet/minecraft/class_1308;field_18279:Inamed holdingEntityIdLnet/minecraft/entity/mob/MobEntity;holdingEntityId:I
-
leashNbt
- Mappings:
Namespace Name Mixin selector official clLbpr;cl:Lcom/mojang/datafixers/util/Either;intermediary field_6192Lnet/minecraft/class_1308;field_6192:Lcom/mojang/datafixers/util/Either;named leashNbtLnet/minecraft/entity/mob/MobEntity;leashNbt:Lcom/mojang/datafixers/util/Either;
-
positionTarget
- Mappings:
Namespace Name Mixin selector official cmLbpr;cm:Lib;intermediary field_18074Lnet/minecraft/class_1308;field_18074:Lnet/minecraft/class_2338;named positionTargetLnet/minecraft/entity/mob/MobEntity;positionTarget:Lnet/minecraft/util/math/BlockPos;
-
positionTargetRange
private float positionTargetRange- Mappings:
Namespace Name Mixin selector official cnLbpr;cn:Fintermediary field_18075Lnet/minecraft/class_1308;field_18075:Fnamed positionTargetRangeLnet/minecraft/entity/mob/MobEntity;positionTargetRange:F
-
-
Constructor Details
-
MobEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbox;<init>(Lbpd;Lcxb;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
initGoals
protected void initGoals()- Mappings:
Namespace Name Mixin selector official zLbpr;z()Vintermediary method_5959Lnet/minecraft/class_1308;method_5959()Vnamed initGoalsLnet/minecraft/entity/mob/MobEntity;initGoals()V
-
createMobAttributes
- Mappings:
Namespace Name Mixin selector official ALbpr;A()Lbqv$a;intermediary method_26828Lnet/minecraft/class_1308;method_26828()Lnet/minecraft/class_5132$class_5133;named createMobAttributesLnet/minecraft/entity/mob/MobEntity;createMobAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
movesIndependently
protected boolean movesIndependently()When true, causes this entity to take over pathfinding for its controlling passenger.- Mappings:
Namespace Name Mixin selector official BLbpr;B()Zintermediary method_26323Lnet/minecraft/class_1308;method_26323()Znamed movesIndependentlyLnet/minecraft/entity/mob/MobEntity;movesIndependently()Z
-
getPathfindingPenalty
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lejg;)Fintermediary method_5944Lnet/minecraft/class_1308;method_5944(Lnet/minecraft/class_7;)Fnamed getPathfindingPenaltyLnet/minecraft/entity/mob/MobEntity;getPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;)F
-
setPathfindingPenalty
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lejg;F)Vintermediary method_5941Lnet/minecraft/class_1308;method_5941(Lnet/minecraft/class_7;F)Vnamed setPathfindingPenaltyLnet/minecraft/entity/mob/MobEntity;setPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;F)V
-
onStartPathfinding
public void onStartPathfinding()- Mappings:
Namespace Name Mixin selector official CLbpr;C()Vintermediary method_51504Lnet/minecraft/class_1308;method_51504()Vnamed onStartPathfindingLnet/minecraft/entity/mob/MobEntity;onStartPathfinding()V
-
onFinishPathfinding
public void onFinishPathfinding()- Mappings:
Namespace Name Mixin selector official DLbpr;D()Vintermediary method_51503Lnet/minecraft/class_1308;method_51503()Vnamed onFinishPathfindingLnet/minecraft/entity/mob/MobEntity;onFinishPathfinding()V
-
createBodyControl
- Mappings:
Namespace Name Mixin selector official ELbpr;E()Lbvk;intermediary method_5963Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;named createBodyControlLnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
-
getLookControl
- Mappings:
Namespace Name Mixin selector official GLbpr;G()Lbvo;intermediary method_5988Lnet/minecraft/class_1308;method_5988()Lnet/minecraft/class_1333;named getLookControlLnet/minecraft/entity/mob/MobEntity;getLookControl()Lnet/minecraft/entity/ai/control/LookControl;
-
getMoveControl
- Mappings:
Namespace Name Mixin selector official HLbpr;H()Lbvp;intermediary method_5962Lnet/minecraft/class_1308;method_5962()Lnet/minecraft/class_1335;named getMoveControlLnet/minecraft/entity/mob/MobEntity;getMoveControl()Lnet/minecraft/entity/ai/control/MoveControl;
-
getJumpControl
- Mappings:
Namespace Name Mixin selector official ILbpr;I()Lbvn;intermediary method_5993Lnet/minecraft/class_1308;method_5993()Lnet/minecraft/class_1334;named getJumpControlLnet/minecraft/entity/mob/MobEntity;getJumpControl()Lnet/minecraft/entity/ai/control/JumpControl;
-
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 official cNLbox;cN()Lbpp;intermediary method_5642Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;named getControllingPassengerLnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
-
getVisibilityCache
- Mappings:
Namespace Name Mixin selector official MLbpr;M()Lbzx;intermediary method_5985Lnet/minecraft/class_1308;method_5985()Lnet/minecraft/class_1413;named getVisibilityCacheLnet/minecraft/entity/mob/MobEntity;getVisibilityCache()Lnet/minecraft/entity/mob/MobVisibilityCache;
-
getTarget
-
setTarget
- Mappings:
Namespace Name Mixin selector official hLbpr;h(Lbpp;)Vintermediary method_5980Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)Vnamed setTargetLnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)V
-
canTarget
- Overrides:
canTargetin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbpp;a(Lbpd;)Zintermediary method_5973Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Znamed canTargetLnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Z
-
canUseRangedWeapon
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lcrc;)Zintermediary method_25938Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Znamed canUseRangedWeaponLnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
-
onEatingGrass
public void onEatingGrass()- Mappings:
Namespace Name Mixin selector official NLbpr;N()Vintermediary method_5983Lnet/minecraft/class_1308;method_5983()Vnamed onEatingGrassLnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbox;a(Laiq$a;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Mappings:
Namespace Name Mixin selector official OLbpr;O()Iintermediary method_5970Lnet/minecraft/class_1308;method_5970()Inamed getMinAmbientSoundDelayLnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
-
playAmbientSound
public void playAmbientSound()- Mappings:
Namespace Name Mixin selector official PLbpr;P()Vintermediary method_5966Lnet/minecraft/class_1308;method_5966()Vnamed playAmbientSoundLnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
-
baseTick
public void baseTick()- Overrides:
baseTickin classLivingEntity- Mappings:
Namespace Name Mixin selector official asLbox;as()Vintermediary method_5670Lnet/minecraft/class_1297;method_5670()Vnamed baseTickLnet/minecraft/entity/Entity;baseTick()V
-
playHurtSound
- Overrides:
playHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector official eLbpp;e(Lbnw;)Vintermediary method_6013Lnet/minecraft/class_1309;method_6013(Lnet/minecraft/class_1282;)Vnamed playHurtSoundLnet/minecraft/entity/LivingEntity;playHurtSound(Lnet/minecraft/entity/damage/DamageSource;)V
-
resetSoundDelay
private void resetSoundDelay()- Mappings:
Namespace Name Mixin selector official rLbpr;r()Vintermediary method_5975Lnet/minecraft/class_1308;method_5975()Vnamed resetSoundDelayLnet/minecraft/entity/mob/MobEntity;resetSoundDelay()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 official egLbpp;eg()Iintermediary method_6110Lnet/minecraft/class_1309;method_6110()Inamed getXpToDropLnet/minecraft/entity/LivingEntity;getXpToDrop()I
-
playSpawnEffects
public void playSpawnEffects()- Mappings:
Namespace Name Mixin selector official QLbpr;Q()Vintermediary method_5990Lnet/minecraft/class_1308;method_5990()Vnamed playSpawnEffectsLnet/minecraft/entity/mob/MobEntity;playSpawnEffects()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:
- Mappings:
Namespace Name Mixin selector official bLbox;b(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(B)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector official lLbox;l()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vnamed tickLnet/minecraft/entity/Entity;tick()V
-
updateGoalControls
protected void updateGoalControls()- Mappings:
Namespace Name Mixin selector official RLbpr;R()Vintermediary method_20417Lnet/minecraft/class_1308;method_20417()Vnamed updateGoalControlsLnet/minecraft/entity/mob/MobEntity;updateGoalControls()V
-
turnHead
protected float turnHead(float bodyRotation, float headRotation) - Overrides:
turnHeadin classLivingEntity- Mappings:
Namespace Name Mixin selector official eLbpp;e(FF)Fintermediary method_6031Lnet/minecraft/class_1309;method_6031(FF)Fnamed turnHeadLnet/minecraft/entity/LivingEntity;turnHead(FF)F
-
getAmbientSound
- Mappings:
Namespace Name Mixin selector official vLbpr;v()Latx;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
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 official bLbox;b(Lta;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)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 official aLbox;a(Lta;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
dropLoot
- Overrides:
dropLootin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbpp;a(Lbnw;Z)Vintermediary method_16077Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_1282;Z)Vnamed dropLootLnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/entity/damage/DamageSource;Z)V
-
getLootTable
- Overrides:
getLootTablein classLivingEntity- Mappings:
Namespace Name Mixin selector official eCLbpp;eC()Lajh;intermediary method_5989Lnet/minecraft/class_1309;method_5989()Lnet/minecraft/class_2960;named getLootTableLnet/minecraft/entity/LivingEntity;getLootTable()Lnet/minecraft/util/Identifier;
-
getLootTableId
- Mappings:
Namespace Name Mixin selector official SLbpr;S()Lajh;intermediary method_5991Lnet/minecraft/class_1308;method_5991()Lnet/minecraft/class_2960;named getLootTableIdLnet/minecraft/entity/mob/MobEntity;getLootTableId()Lnet/minecraft/util/Identifier;
-
getLootTableSeed
public long getLootTableSeed()- Overrides:
getLootTableSeedin classLivingEntity- Mappings:
Namespace Name Mixin selector official eDLbpp;eD()Jintermediary method_51851Lnet/minecraft/class_1309;method_51851()Jnamed getLootTableSeedLnet/minecraft/entity/LivingEntity;getLootTableSeed()J
-
setForwardSpeed
public void setForwardSpeed(float forwardSpeed) - Mappings:
Namespace Name Mixin selector official CLbpr;C(F)Vintermediary method_5930Lnet/minecraft/class_1308;method_5930(F)Vnamed setForwardSpeedLnet/minecraft/entity/mob/MobEntity;setForwardSpeed(F)V
-
setUpwardSpeed
public void setUpwardSpeed(float upwardSpeed) - Mappings:
Namespace Name Mixin selector official DLbpr;D(F)Vintermediary method_5976Lnet/minecraft/class_1308;method_5976(F)Vnamed setUpwardSpeedLnet/minecraft/entity/mob/MobEntity;setUpwardSpeed(F)V
-
setSidewaysSpeed
public void setSidewaysSpeed(float sidewaysSpeed) - Mappings:
Namespace Name Mixin selector official ELbpr;E(F)Vintermediary method_5938Lnet/minecraft/class_1308;method_5938(F)Vnamed setSidewaysSpeedLnet/minecraft/entity/mob/MobEntity;setSidewaysSpeed(F)V
-
setMovementSpeed
public void setMovementSpeed(float movementSpeed) - Overrides:
setMovementSpeedin classLivingEntity- Mappings:
Namespace Name Mixin selector official yLbpp;y(F)Vintermediary method_6125Lnet/minecraft/class_1309;method_6125(F)Vnamed setMovementSpeedLnet/minecraft/entity/LivingEntity;setMovementSpeed(F)V
-
stopMovement
public void stopMovement()- Mappings:
Namespace Name Mixin selector official TLbpr;T()Vintermediary method_55695Lnet/minecraft/class_1308;method_55695()Vnamed stopMovementLnet/minecraft/entity/mob/MobEntity;stopMovement()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classLivingEntity- Mappings:
Namespace Name Mixin selector official m_Lbpp;m_()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
getItemPickUpRangeExpander
- Mappings:
Namespace Name Mixin selector official ULbpr;U()Ljg;intermediary method_42646Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;named getItemPickUpRangeExpanderLnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;
-
loot
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Lcfe;)Vintermediary method_5949Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_1542;)Vnamed lootLnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/entity/ItemEntity;)V
-
tryEquip
- Mappings:
Namespace Name Mixin selector official iLbpr;i(Lcqm;)Lcqm;intermediary method_24523Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named tryEquipLnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
equipLootStack
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Lbpe;Lcqm;)Vintermediary method_24834Lnet/minecraft/class_1308;method_24834(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vnamed equipLootStackLnet/minecraft/entity/mob/MobEntity;equipLootStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
-
updateDropChances
- Mappings:
Namespace Name Mixin selector official fLbpr;f(Lbpe;)Vintermediary method_25939Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)Vnamed updateDropChancesLnet/minecraft/entity/mob/MobEntity;updateDropChances(Lnet/minecraft/entity/EquipmentSlot;)V
-
prefersNewEquipment
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Lcqm;Lcqm;)Zintermediary method_5955Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Znamed prefersNewEquipmentLnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
prefersNewDamageableItem
- Mappings:
Namespace Name Mixin selector official cLbpr;c(Lcqm;Lcqm;)Zintermediary method_26320Lnet/minecraft/class_1308;method_26320(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Znamed prefersNewDamageableItemLnet/minecraft/entity/mob/MobEntity;prefersNewDamageableItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
canPickupItem
- Mappings:
Namespace Name Mixin selector official jLbpr;j(Lcqm;)Zintermediary method_5939Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Znamed canPickupItemLnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Z
-
canGather
- Mappings:
Namespace Name Mixin selector official kLbpr;k(Lcqm;)Zintermediary method_20820Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Znamed canGatherLnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Z
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Mappings:
Namespace Name Mixin selector official hLbpr;h(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Znamed canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
-
cannotDespawn
public boolean cannotDespawn()- Mappings:
Namespace Name Mixin selector official VLbpr;V()Zintermediary method_17326Lnet/minecraft/class_1308;method_17326()Znamed cannotDespawnLnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
-
isDisallowedInPeaceful
protected boolean isDisallowedInPeaceful()- Mappings:
Namespace Name Mixin selector official WLbpr;W()Zintermediary method_23734Lnet/minecraft/class_1308;method_23734()Znamed isDisallowedInPeacefulLnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()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 official dyLbox;dy()Vintermediary method_5982Lnet/minecraft/class_1297;method_5982()Vnamed checkDespawnLnet/minecraft/entity/Entity;checkDespawn()V
-
tickNewAi
protected final void tickNewAi()- Overrides:
tickNewAiin classLivingEntity- Mappings:
Namespace Name Mixin selector official fnLbpp;fn()Vintermediary method_6023Lnet/minecraft/class_1309;method_6023()Vnamed tickNewAiLnet/minecraft/entity/LivingEntity;tickNewAi()V
-
sendAiDebugData
protected void sendAiDebugData()- Mappings:
Namespace Name Mixin selector official XLbpr;X()Vintermediary method_18409Lnet/minecraft/class_1308;method_18409()Vnamed sendAiDebugDataLnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
-
mobTick
protected void mobTick()- Mappings:
Namespace Name Mixin selector official YLbpr;Y()Vintermediary method_5958Lnet/minecraft/class_1308;method_5958()Vnamed mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()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 official ZLbpr;Z()Iintermediary method_5978Lnet/minecraft/class_1308;method_5978()Inamed getMaxLookPitchChangeLnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()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 official aaLbpr;aa()Iintermediary method_5986Lnet/minecraft/class_1308;method_5986()Inamed getMaxHeadRotationLnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()I
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector official abLbpr;ab()Vintermediary method_56080Lnet/minecraft/class_1308;method_56080()Vnamed clampHeadYawLnet/minecraft/entity/mob/MobEntity;clampHeadYaw()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 official fNLbpr;fN()Iintermediary method_20240Lnet/minecraft/class_1308;method_20240()Inamed getMaxLookYawChangeLnet/minecraft/entity/mob/MobEntity;getMaxLookYawChange()I
-
lookAtEntity
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lbox;FF)Vintermediary method_5951Lnet/minecraft/class_1308;method_5951(Lnet/minecraft/class_1297;FF)Vnamed lookAtEntityLnet/minecraft/entity/mob/MobEntity;lookAtEntity(Lnet/minecraft/entity/Entity;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 official aLbpr;a(FFF)Fintermediary method_5960Lnet/minecraft/class_1308;method_5960(FFF)Fnamed changeAngleLnet/minecraft/entity/mob/MobEntity;changeAngle(FFF)F
-
canMobSpawn
public static boolean canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector official aLbpr;a(Lbpd;Lcxc;Lbpt;Lib;Laxd;)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;)Znamed 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;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lcxc;Lbpt;)Zintermediary method_5979Lnet/minecraft/class_1308;method_5979(Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;)Znamed canSpawnLnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lcxe;)Zintermediary method_5957Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Znamed canSpawnLnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
-
getLimitPerChunk
public int getLimitPerChunk()- Mappings:
Namespace Name Mixin selector official fOLbpr;fO()Iintermediary method_5945Lnet/minecraft/class_1308;method_5945()Inamed getLimitPerChunkLnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
-
spawnsTooManyForEachTry
public boolean spawnsTooManyForEachTry(int count) - Mappings:
Namespace Name Mixin selector official dLbpr;d(I)Zintermediary method_5969Lnet/minecraft/class_1308;method_5969(I)Znamed spawnsTooManyForEachTryLnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(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 official cuLbox;cu()Iintermediary method_5850Lnet/minecraft/class_1297;method_5850()Inamed getSafeFallDistanceLnet/minecraft/entity/Entity;getSafeFallDistance()I
-
getHandItems
- Overrides:
getHandItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector official eXLbpp;eX()Ljava/lang/Iterable;intermediary method_5877Lnet/minecraft/class_1309;method_5877()Ljava/lang/Iterable;named getHandItemsLnet/minecraft/entity/LivingEntity;getHandItems()Ljava/lang/Iterable;
-
getArmorItems
- Specified by:
getArmorItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector official eWLbpp;eW()Ljava/lang/Iterable;intermediary method_5661Lnet/minecraft/class_1309;method_5661()Ljava/lang/Iterable;named getArmorItemsLnet/minecraft/entity/LivingEntity;getArmorItems()Ljava/lang/Iterable;
-
getBodyArmor
- Mappings:
Namespace Name Mixin selector official fPLbpr;fP()Lcqm;intermediary method_56676Lnet/minecraft/class_1308;method_56676()Lnet/minecraft/class_1799;named getBodyArmorLnet/minecraft/entity/mob/MobEntity;getBodyArmor()Lnet/minecraft/item/ItemStack;
-
hasArmorSlot
public boolean hasArmorSlot()- Mappings:
Namespace Name Mixin selector official fQLbpr;fQ()Zintermediary method_6735Lnet/minecraft/class_1308;method_6735()Znamed hasArmorSlotLnet/minecraft/entity/mob/MobEntity;hasArmorSlot()Z
-
canUseSlot
- Overrides:
canUseSlotin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLbpp;c(Lbpe;)Zintermediary method_56991Lnet/minecraft/class_1309;method_56991(Lnet/minecraft/class_1304;)Znamed canUseSlotLnet/minecraft/entity/LivingEntity;canUseSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
-
isWearingBodyArmor
public boolean isWearingBodyArmor()- Mappings:
Namespace Name Mixin selector official fRLbpr;fR()Zintermediary method_56677Lnet/minecraft/class_1308;method_56677()Znamed isWearingBodyArmorLnet/minecraft/entity/mob/MobEntity;isWearingBodyArmor()Z
-
isHorseArmor
- Mappings:
Namespace Name Mixin selector official lLbpr;l(Lcqm;)Zintermediary method_6773Lnet/minecraft/class_1308;method_6773(Lnet/minecraft/class_1799;)Znamed isHorseArmorLnet/minecraft/entity/mob/MobEntity;isHorseArmor(Lnet/minecraft/item/ItemStack;)Z
-
equipBodyArmor
- Mappings:
Namespace Name Mixin selector official mLbpr;m(Lcqm;)Vintermediary method_56678Lnet/minecraft/class_1308;method_56678(Lnet/minecraft/class_1799;)Vnamed equipBodyArmorLnet/minecraft/entity/mob/MobEntity;equipBodyArmor(Lnet/minecraft/item/ItemStack;)V
-
getAllArmorItems
- Overrides:
getAllArmorItemsin classLivingEntity- Mappings:
Namespace Name Mixin selector official eYLbpp;eY()Ljava/lang/Iterable;intermediary method_56674Lnet/minecraft/class_1309;method_56674()Ljava/lang/Iterable;named getAllArmorItemsLnet/minecraft/entity/LivingEntity;getAllArmorItems()Ljava/lang/Iterable;
-
getEquippedStack
- Specified by:
getEquippedStackin classLivingEntity- Mappings:
Namespace Name Mixin selector official dLbpp;d(Lbpe;)Lcqm;intermediary method_6118Lnet/minecraft/class_1309;method_6118(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;named getEquippedStackLnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;
-
equipStack
- Specified by:
equipStackin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbpp;a(Lbpe;Lcqm;)Vintermediary method_5673Lnet/minecraft/class_1309;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vnamed equipStackLnet/minecraft/entity/LivingEntity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
-
dropEquipment
- Overrides:
dropEquipmentin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbpp;a(Lbnw;IZ)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)Vnamed dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
-
getDropChance
- Mappings:
Namespace Name Mixin selector official gLbpr;g(Lbpe;)Fintermediary method_5929Lnet/minecraft/class_1308;method_5929(Lnet/minecraft/class_1304;)Fnamed getDropChanceLnet/minecraft/entity/mob/MobEntity;getDropChance(Lnet/minecraft/entity/EquipmentSlot;)F
-
initEquipment
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Laxd;Lbnb;)Vintermediary method_5964Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vnamed initEquipmentLnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
-
getEquipmentForSlot
@Nullable public static @Nullable Item getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) - Mappings:
Namespace Name Mixin selector official aLbpr;a(Lbpe;I)Lcqh;intermediary method_5948Lnet/minecraft/class_1308;method_5948(Lnet/minecraft/class_1304;I)Lnet/minecraft/class_1792;named getEquipmentForSlotLnet/minecraft/entity/mob/MobEntity;getEquipmentForSlot(Lnet/minecraft/entity/EquipmentSlot;I)Lnet/minecraft/item/Item;
-
updateEnchantments
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Laxd;Lbnb;)Vintermediary method_5984Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)Vnamed updateEnchantmentsLnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
-
enchantMainHandItem
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Laxd;F)Vintermediary method_30759Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5819;F)Vnamed enchantMainHandItemLnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/util/math/random/Random;F)V
-
enchantEquipment
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Laxd;FLbpe;)Vintermediary method_30758Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5819;FLnet/minecraft/class_1304;)Vnamed enchantEquipmentLnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/util/math/random/Random;FLnet/minecraft/entity/EquipmentSlot;)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Mappings:
Namespace Name Mixin selector official aLbpr;a(Lcxq;Lbnb;Lbpt;Lbqh;)Lbqh;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;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;
-
setPersistent
public void setPersistent()- Mappings:
Namespace Name Mixin selector official fSLbpr;fS()Vintermediary method_5971Lnet/minecraft/class_1308;method_5971()Vnamed setPersistentLnet/minecraft/entity/mob/MobEntity;setPersistent()V
-
setEquipmentDropChance
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lbpe;F)Vintermediary method_5946Lnet/minecraft/class_1308;method_5946(Lnet/minecraft/class_1304;F)Vnamed setEquipmentDropChanceLnet/minecraft/entity/mob/MobEntity;setEquipmentDropChance(Lnet/minecraft/entity/EquipmentSlot;F)V
-
canPickUpLoot
public boolean canPickUpLoot()- Mappings:
Namespace Name Mixin selector official fTLbpr;fT()Zintermediary method_5936Lnet/minecraft/class_1308;method_5936()Znamed canPickUpLootLnet/minecraft/entity/mob/MobEntity;canPickUpLoot()Z
-
setCanPickUpLoot
public void setCanPickUpLoot(boolean canPickUpLoot) - Mappings:
Namespace Name Mixin selector official sLbpr;s(Z)Vintermediary method_5952Lnet/minecraft/class_1308;method_5952(Z)Vnamed setCanPickUpLootLnet/minecraft/entity/mob/MobEntity;setCanPickUpLoot(Z)V
-
canEquip
- Overrides:
canEquipin classLivingEntity- Mappings:
Namespace Name Mixin selector official fLbpp;f(Lcqm;)Zintermediary method_18397Lnet/minecraft/class_1309;method_18397(Lnet/minecraft/class_1799;)Znamed canEquipLnet/minecraft/entity/LivingEntity;canEquip(Lnet/minecraft/item/ItemStack;)Z
-
isPersistent
public boolean isPersistent()- Mappings:
Namespace Name Mixin selector official fULbpr;fU()Zintermediary method_5947Lnet/minecraft/class_1308;method_5947()Znamed isPersistentLnet/minecraft/entity/mob/MobEntity;isPersistent()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 official aLbox;a(Lciu;Lbnc;)Lbnd;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
interactWithItem
- Mappings:
Namespace Name Mixin selector official cLbpr;c(Lciu;Lbnc;)Lbnd;intermediary method_29506Lnet/minecraft/class_1308;method_29506(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactWithItemLnet/minecraft/entity/mob/MobEntity;interactWithItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
onPlayerSpawnedChild
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lciu;Lbpr;)Vintermediary method_18249Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)Vnamed onPlayerSpawnedChildLnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)V
-
interactMob
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Lciu;Lbnc;)Lbnd;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
isInWalkTargetRange
public boolean isInWalkTargetRange()- Mappings:
Namespace Name Mixin selector official fVLbpr;fV()Zintermediary method_18411Lnet/minecraft/class_1308;method_18411()Znamed isInWalkTargetRangeLnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange()Z
-
isInWalkTargetRange
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lib;)Zintermediary method_18407Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Znamed isInWalkTargetRangeLnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange(Lnet/minecraft/util/math/BlockPos;)Z
-
setPositionTarget
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lib;I)Vintermediary method_18408Lnet/minecraft/class_1308;method_18408(Lnet/minecraft/class_2338;I)Vnamed setPositionTargetLnet/minecraft/entity/mob/MobEntity;setPositionTarget(Lnet/minecraft/util/math/BlockPos;I)V
-
getPositionTarget
- Mappings:
Namespace Name Mixin selector official fWLbpr;fW()Lib;intermediary method_18412Lnet/minecraft/class_1308;method_18412()Lnet/minecraft/class_2338;named getPositionTargetLnet/minecraft/entity/mob/MobEntity;getPositionTarget()Lnet/minecraft/util/math/BlockPos;
-
getPositionTargetRange
public float getPositionTargetRange()- Mappings:
Namespace Name Mixin selector official fXLbpr;fX()Fintermediary method_18413Lnet/minecraft/class_1308;method_18413()Fnamed getPositionTargetRangeLnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()F
-
clearPositionTarget
public void clearPositionTarget()- Mappings:
Namespace Name Mixin selector official fYLbpr;fY()Vintermediary method_35055Lnet/minecraft/class_1308;method_35055()Vnamed clearPositionTargetLnet/minecraft/entity/mob/MobEntity;clearPositionTarget()V
-
hasPositionTarget
public boolean hasPositionTarget()- Mappings:
Namespace Name Mixin selector official fZLbpr;fZ()Zintermediary method_18410Lnet/minecraft/class_1308;method_18410()Znamed hasPositionTargetLnet/minecraft/entity/mob/MobEntity;hasPositionTarget()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 official aLbpr;a(Lbpd;Z)Lbpr;intermediary method_29243Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Z)Lnet/minecraft/class_1308;named convertToLnet/minecraft/entity/mob/MobEntity;convertTo(Lnet/minecraft/entity/EntityType;Z)Lnet/minecraft/entity/mob/MobEntity;
-
updateLeash
protected void updateLeash()- Mappings:
Namespace Name Mixin selector official gaLbpr;ga()Vintermediary method_5995Lnet/minecraft/class_1308;method_5995()Vnamed updateLeashLnet/minecraft/entity/mob/MobEntity;updateLeash()V
-
detachLeash
public void detachLeash(boolean sendPacket, boolean dropItem) - Mappings:
Namespace Name Mixin selector official aLbpr;a(ZZ)Vintermediary method_5932Lnet/minecraft/class_1308;method_5932(ZZ)Vnamed detachLeashLnet/minecraft/entity/mob/MobEntity;detachLeash(ZZ)V
-
canBeLeashedBy
- Mappings:
Namespace Name Mixin selector official aLbpr;a(Lciu;)Zintermediary method_5931Lnet/minecraft/class_1308;method_5931(Lnet/minecraft/class_1657;)Znamed canBeLeashedByLnet/minecraft/entity/mob/MobEntity;canBeLeashedBy(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
isLeashed
public boolean isLeashed()- Mappings:
Namespace Name Mixin selector official gbLbpr;gb()Zintermediary method_5934Lnet/minecraft/class_1308;method_5934()Znamed isLeashedLnet/minecraft/entity/mob/MobEntity;isLeashed()Z
-
getHoldingEntity
- Mappings:
Namespace Name Mixin selector official gcLbpr;gc()Lbox;intermediary method_5933Lnet/minecraft/class_1308;method_5933()Lnet/minecraft/class_1297;named getHoldingEntityLnet/minecraft/entity/mob/MobEntity;getHoldingEntity()Lnet/minecraft/entity/Entity;
-
attachLeash
- Mappings:
Namespace Name Mixin selector official bLbpr;b(Lbox;Z)Vintermediary method_5954Lnet/minecraft/class_1308;method_5954(Lnet/minecraft/class_1297;Z)Vnamed attachLeashLnet/minecraft/entity/mob/MobEntity;attachLeash(Lnet/minecraft/entity/Entity;Z)V
-
setHoldingEntityId
public void setHoldingEntityId(int id) - Mappings:
Namespace Name Mixin selector official sLbpr;s(I)Vintermediary method_18810Lnet/minecraft/class_1308;method_18810(I)Vnamed setHoldingEntityIdLnet/minecraft/entity/mob/MobEntity;setHoldingEntityId(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 official aLbox;a(Lbox;Z)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Znamed startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
-
readLeashNbt
private void readLeashNbt()- Mappings:
Namespace Name Mixin selector official gjLbpr;gj()Vintermediary method_5940Lnet/minecraft/class_1308;method_5940()Vnamed readLeashNbtLnet/minecraft/entity/mob/MobEntity;readLeashNbt()V
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Overrides:
canMoveVoluntarilyin classEntity- Mappings:
Namespace Name Mixin selector official cYLbox;cY()Zintermediary method_6034Lnet/minecraft/class_1297;method_6034()Znamed canMoveVoluntarilyLnet/minecraft/entity/Entity;canMoveVoluntarily()Z
-
setAiDisabled
public void setAiDisabled(boolean aiDisabled) - Mappings:
Namespace Name Mixin selector official tLbpr;t(Z)Vintermediary method_5977Lnet/minecraft/class_1308;method_5977(Z)Vnamed setAiDisabledLnet/minecraft/entity/mob/MobEntity;setAiDisabled(Z)V
-
setLeftHanded
public void setLeftHanded(boolean leftHanded) - Mappings:
Namespace Name Mixin selector official uLbpr;u(Z)Vintermediary method_5937Lnet/minecraft/class_1308;method_5937(Z)Vnamed setLeftHandedLnet/minecraft/entity/mob/MobEntity;setLeftHanded(Z)V
-
setAttacking
public void setAttacking(boolean attacking) - Mappings:
Namespace Name Mixin selector official vLbpr;v(Z)Vintermediary method_19540Lnet/minecraft/class_1308;method_19540(Z)Vnamed setAttackingLnet/minecraft/entity/mob/MobEntity;setAttacking(Z)V
-
isAiDisabled
public boolean isAiDisabled()- Mappings:
Namespace Name Mixin selector official gdLbpr;gd()Zintermediary method_5987Lnet/minecraft/class_1308;method_5987()Znamed isAiDisabledLnet/minecraft/entity/mob/MobEntity;isAiDisabled()Z
-
isLeftHanded
public boolean isLeftHanded()- Mappings:
Namespace Name Mixin selector official geLbpr;ge()Zintermediary method_5961Lnet/minecraft/class_1308;method_5961()Znamed isLeftHandedLnet/minecraft/entity/mob/MobEntity;isLeftHanded()Z
-
isAttacking
public boolean isAttacking()- Mappings:
Namespace Name Mixin selector official gfLbpr;gf()Zintermediary method_6510Lnet/minecraft/class_1308;method_6510()Znamed isAttackingLnet/minecraft/entity/mob/MobEntity;isAttacking()Z
-
setBaby
public void setBaby(boolean baby) - Mappings:
Namespace Name Mixin selector official aLbpr;a(Z)Vintermediary method_7217Lnet/minecraft/class_1308;method_7217(Z)Vnamed setBabyLnet/minecraft/entity/mob/MobEntity;setBaby(Z)V
-
getMainArm
- Specified by:
getMainArmin classLivingEntity- Mappings:
Namespace Name Mixin selector official frLbpp;fr()Lbpj;intermediary method_6068Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;named getMainArmLnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;
-
isInAttackRange
- Mappings:
Namespace Name Mixin selector official iLbpr;i(Lbpp;)Zintermediary method_42150Lnet/minecraft/class_1308;method_42150(Lnet/minecraft/class_1309;)Znamed isInAttackRangeLnet/minecraft/entity/mob/MobEntity;isInAttackRange(Lnet/minecraft/entity/LivingEntity;)Z
-
getAttackBox
Gets the area in which this mob can attack entities whose hitbox intersects it.- See Also:
- Mappings:
Namespace Name Mixin selector official ggLbpr;gg()Lepo;intermediary method_53511Lnet/minecraft/class_1308;method_53511()Lnet/minecraft/class_238;named getAttackBoxLnet/minecraft/entity/mob/MobEntity;getAttackBox()Lnet/minecraft/util/math/Box;
-
tryAttack
- Overrides:
tryAttackin classLivingEntity- Mappings:
Namespace Name Mixin selector official CLbpp;C(Lbox;)Zintermediary method_6121Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Znamed tryAttackLnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
-
isAffectedByDaylight
protected boolean isAffectedByDaylight()- Mappings:
Namespace Name Mixin selector official ghLbpr;gh()Zintermediary method_5972Lnet/minecraft/class_1308;method_5972()Znamed isAffectedByDaylightLnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Z
-
swimUpward
- Overrides:
swimUpwardin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLbpp;c(Lavd;)Vintermediary method_6010Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)Vnamed swimUpwardLnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
-
clearGoalsAndTasks
public void clearGoalsAndTasks()- Mappings:
Namespace Name Mixin selector official giLbpr;gi()Vintermediary method_35056Lnet/minecraft/class_1308;method_35056()Vnamed clearGoalsAndTasksLnet/minecraft/entity/mob/MobEntity;clearGoalsAndTasks()V
-
clearGoals
- Mappings:
Namespace Name Mixin selector official cLbpr;c(Ljava/util/function/Predicate;)Vintermediary method_47825Lnet/minecraft/class_1308;method_47825(Ljava/util/function/Predicate;)Vnamed clearGoalsLnet/minecraft/entity/mob/MobEntity;clearGoals(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 official csLbox;cs()Vintermediary method_30076Lnet/minecraft/class_1297;method_30076()Vnamed removeFromDimensionLnet/minecraft/entity/Entity;removeFromDimension()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 official dzLbox;dz()Lcqm;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
-