Class MobEntity
- All Implemented Interfaces:
ComponentsAccess
,Attackable
,DataTracked
,EquipmentHolder
,Leashable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Direct Known Subclasses:
AmbientEntity
,EnderDragonEntity
,FlyingEntity
,PathAwareEntity
,SlimeEntity
- Mappings:
Namespace Name named net/minecraft/entity/mob/MobEntity
intermediary net/minecraft/class_1308
official byh
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
int
private static final double
private static final int
static final float
The base chance (before applying difficulty) that a mob's equipped armor can become enchanted.static final float
The base chance (before applying difficulty) that a mob's equipped item can become enchanted.static final float
The base chance (before applying local difficulty) that this mob will spawn with equipment.private final BodyControl
private boolean
private static final boolean
static final float
Used by Zombies to control the chance that they spawn with the ability to pick up loot.private static final boolean
private static final boolean
private static final boolean
private static final List
<EquipmentSlot> private EquipmentDropChances
protected int
static final int
protected final GoalSelector
Contains actions the entity can perform.private static final Vec3i
protected JumpControl
private Leashable.LeashData
private static final int
protected LookControl
private Optional
<RegistryKey<LootTable>> private long
protected static final int
The minimum additional experience a mob will drop per item of equipment they have.private static final TrackedData
<Byte> protected MoveControl
protected EntityNavigation
private final Map
<PathNodeType, Float> private boolean
private BlockPos
private float
protected static final Identifier
private @Nullable LivingEntity
protected final GoalSelector
Contains goals used to select this entity's target.private final MobVisibilityCache
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MobEntity
(EntityType<? extends MobEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoid
baseTick()
void
boolean
boolean
protected boolean
boolean
canGather
(ServerWorld world, ItemStack stack) boolean
canImmediatelyDespawn
(double distanceSquared) static boolean
canMobSpawn
(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) boolean
boolean
boolean
canPickupItem
(ItemStack stack) boolean
boolean
canSpawn
(WorldAccess world, SpawnReason spawnReason) boolean
boolean
canTarget
(EntityType<?> type) boolean
canUseRangedWeapon
(RangedWeaponItem weapon) private float
changeAngle
(float from, float to, float max) Changes the angle fromfrom
toto
, or bymax
degrees ifto
is too big a change.void
Checks whether the entity should be despawned.protected void
void
clearGoals
(Predicate<Goal> predicate) void
void
<T extends MobEntity>
TconvertTo
(EntityType<T> entityType, EntityConversionContext context, EntityConversionContext.Finalizer<T> finalizer) Converts this entity to the providedentityType
.<T extends MobEntity>
TconvertTo
(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext.Finalizer<T> finalizer) protected BodyControl
private LootWorldContext
protected EntityNavigation
createNavigation
(World world) void
protected void
dropEquipment
(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 void
dropLoot
(ServerWorld world, DamageSource damageSource, boolean causedByPlayer) private void
enchantEquipment
(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) protected void
enchantEquipment
(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) protected void
enchantMainHandItem
(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) void
equipBodyArmor
(ItemStack stack) protected void
equipLootStack
(EquipmentSlot slot, ItemStack stack) protected @Nullable SoundEvent
protected Box
Gets the area in which this mob can attack entities whose hitbox intersects it.private double
getAttributeValueWithStack
(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) Returns the passenger in control of this entity, ornull
if there is none.getEquipmentForSlot
(EquipmentSlot equipmentSlot, int equipmentLevel) protected int
getExperienceToDrop
(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.protected Vec3i
int
final Optional
<RegistryKey<LootTable>> long
int
Returns the maximum degrees which the head yaw can differ from the body yaw.int
Returns the maximum degrees which the pitch can change when looking.int
Returns the maximum degrees which the yaw can change when looking.int
float
getPathfindingPenalty
(PathNodeType nodeType) Returns the stack for creative "pick block" functionality, ornull
if there is none.float
int
Returns the maximum height of a fall the entity takes during pathfinding.protected final @Nullable LivingEntity
void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.boolean
boolean
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
initEquipment
(Random random, LocalDifficulty localDifficulty) protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) final ActionResult
interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResult
interactMob
(PlayerEntity player, Hand hand) private ActionResult
interactWithItem
(PlayerEntity player, Hand hand) protected boolean
boolean
boolean
protected boolean
boolean
isInAttackRange
(LivingEntity entity) boolean
boolean
boolean
boolean
boolean
void
lookAtEntity
(Entity targetEntity, float maxYawChange, float maxPitchChange) protected void
loot
(ServerWorld world, ItemEntity itemEntity) protected void
mobTick
(ServerWorld world) protected boolean
When true, causes this entity to take over pathfinding for its controlling passenger.void
void
void
protected void
onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) void
void
protected void
protected void
playHurtSound
(DamageSource damageSource) void
private boolean
prefersNewArmor
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) boolean
prefersNewDamageableItem
(ItemStack newStack, ItemStack oldStack) protected boolean
prefersNewEquipment
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) private boolean
prefersNewWeapon
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) void
Reads custom data fromnbt
.protected void
Removes this entity from the current dimension.private void
protected void
void
setAiDisabled
(boolean aiDisabled) void
setAttacking
(boolean attacking) void
setBaby
(boolean baby) void
setCanPickUpLoot
(boolean canPickUpLoot) void
void
setEquipmentDropChance
(EquipmentSlot slot, float dropChance) void
setEquipmentFromTable
(EquipmentTable equipmentTable) void
setEquipmentFromTable
(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) void
setForwardSpeed
(float forwardSpeed) void
setLeashData
(Leashable.LeashData leashData) void
setLeftHanded
(boolean leftHanded) void
setMovementSpeed
(float movementSpeed) void
setPathfindingPenalty
(PathNodeType nodeType, float penalty) void
void
setPositionTarget
(BlockPos target, int range) void
setSidewaysSpeed
(float sidewaysSpeed) void
setTarget
(@Nullable LivingEntity target) void
setUpwardSpeed
(float upwardSpeed) boolean
spawnsTooManyForEachTry
(int count) boolean
startRiding
(Entity entity, boolean force) Starts ridingentity
.void
protected void
swimUpward
(TagKey<Fluid> fluid) void
tick()
Ticks this entity.void
protected final void
boolean
tryAttack
(ServerWorld world, Entity target) tryEquip
(ServerWorld world, ItemStack stack) protected void
turnHead
(float bodyRotation) protected void
updateAttribute
(RegistryEntry<EntityAttribute> attribute) protected void
updateEnchantments
(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) protected void
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, 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, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, 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, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, 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, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPose
Methods 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, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, 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, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, 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, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, 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, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, 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, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, beforeLeashTick, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, onShortLeashTick, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
MOB_FLAGS
- Mappings:
Namespace Name Mixin selector named MOB_FLAGS
Lnet/minecraft/entity/mob/MobEntity;MOB_FLAGS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6193
Lnet/minecraft/class_1308;field_6193:Lnet/minecraft/class_2940;
official a
Lbyh;a:Laku;
-
AI_DISABLED_FLAG
private static final int AI_DISABLED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named AI_DISABLED_FLAG
Lnet/minecraft/entity/mob/MobEntity;AI_DISABLED_FLAG:I
intermediary field_30088
Lnet/minecraft/class_1308;field_30088:I
official b
Lbyh;b:I
-
LEFT_HANDED_FLAG
private static final int LEFT_HANDED_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_HANDED_FLAG
Lnet/minecraft/entity/mob/MobEntity;LEFT_HANDED_FLAG:I
intermediary field_30089
Lnet/minecraft/class_1308;field_30089:I
official c
Lbyh;c:I
-
ATTACKING_FLAG
private static final int ATTACKING_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named ATTACKING_FLAG
Lnet/minecraft/entity/mob/MobEntity;ATTACKING_FLAG:I
intermediary field_30090
Lnet/minecraft/class_1308;field_30090:I
official d
Lbyh;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_EQUIPMENT
Lnet/minecraft/entity/mob/MobEntity;MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT:I
intermediary field_30087
Lnet/minecraft/class_1308;field_30087:I
official j
Lbyh;j:I
-
ITEM_PICK_UP_RANGE_EXPANDER
- Mappings:
Namespace Name Mixin selector named ITEM_PICK_UP_RANGE_EXPANDER
Lnet/minecraft/entity/mob/MobEntity;ITEM_PICK_UP_RANGE_EXPANDER:Lnet/minecraft/util/math/Vec3i;
intermediary field_38386
Lnet/minecraft/class_1308;field_38386:Lnet/minecraft/class_2382;
official e
Lbyh;e:Lkb;
-
EQUIPMENT_INIT_ORDER
- Mappings:
Namespace Name Mixin selector named EQUIPMENT_INIT_ORDER
Lnet/minecraft/entity/mob/MobEntity;EQUIPMENT_INIT_ORDER:Ljava/util/List;
intermediary field_52448
Lnet/minecraft/class_1308;field_52448:Ljava/util/List;
official bH
Lbyh;bH: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_CHANCE
Lnet/minecraft/entity/mob/MobEntity;BASE_SPAWN_EQUIPMENT_CHANCE:F
intermediary field_30091
Lnet/minecraft/class_1308;field_30091:F
official k
Lbyh;k: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_CHANCE
Lnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICKUP_LOOT_CHANCE:F
intermediary field_30083
Lnet/minecraft/class_1308;field_30083:F
official bu
Lbyh;bu: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_CHANCE
Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_ARMOR_CHANCE:F
intermediary field_30084
Lnet/minecraft/class_1308;field_30084:F
official bv
Lbyh;bv: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_CHANCE
Lnet/minecraft/entity/mob/MobEntity;BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE:F
intermediary field_30085
Lnet/minecraft/class_1308;field_30085:F
official bw
Lbyh;bw:F
-
field_35039
public static final int field_35039- See Also:
- Mappings:
Namespace Name Mixin selector named field_35039
Lnet/minecraft/entity/mob/MobEntity;field_35039:I
intermediary field_35039
Lnet/minecraft/class_1308;field_35039:I
official bx
Lbyh;bx:I
-
ATTACK_RANGE
private static final double ATTACK_RANGE- Mappings:
Namespace Name Mixin selector named ATTACK_RANGE
Lnet/minecraft/entity/mob/MobEntity;ATTACK_RANGE:D
intermediary field_45969
Lnet/minecraft/class_1308;field_45969:D
official bI
Lbyh;bI: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_LOOT
Lnet/minecraft/entity/mob/MobEntity;DEFAULT_CAN_PICK_UP_LOOT:Z
intermediary field_57591
Lnet/minecraft/class_1308;field_57591:Z
official bJ
Lbyh;bJ:Z
-
DEFAULT_PERSISTENCE_REQUIRED
private static final boolean DEFAULT_PERSISTENCE_REQUIRED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_PERSISTENCE_REQUIRED
Lnet/minecraft/entity/mob/MobEntity;DEFAULT_PERSISTENCE_REQUIRED:Z
intermediary field_57592
Lnet/minecraft/class_1308;field_57592:Z
official bK
Lbyh;bK:Z
-
DEFAULT_LEFT_HANDED
private static final boolean DEFAULT_LEFT_HANDED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_LEFT_HANDED
Lnet/minecraft/entity/mob/MobEntity;DEFAULT_LEFT_HANDED:Z
intermediary field_57593
Lnet/minecraft/class_1308;field_57593:Z
official bL
Lbyh;bL:Z
-
DEFAULT_NO_AI
private static final boolean DEFAULT_NO_AI- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NO_AI
Lnet/minecraft/entity/mob/MobEntity;DEFAULT_NO_AI:Z
intermediary field_57594
Lnet/minecraft/class_1308;field_57594:Z
official bM
Lbyh;bM:Z
-
RANDOM_SPAWN_BONUS_MODIFIER_ID
- Mappings:
Namespace Name Mixin selector named RANDOM_SPAWN_BONUS_MODIFIER_ID
Lnet/minecraft/entity/mob/MobEntity;RANDOM_SPAWN_BONUS_MODIFIER_ID:Lnet/minecraft/util/Identifier;
intermediary field_51997
Lnet/minecraft/class_1308;field_51997:Lnet/minecraft/class_2960;
official by
Lbyh;by:Lalr;
-
ambientSoundChance
public int ambientSoundChance- Mappings:
Namespace Name Mixin selector named ambientSoundChance
Lnet/minecraft/entity/mob/MobEntity;ambientSoundChance:I
intermediary field_6191
Lnet/minecraft/class_1308;field_6191:I
official bz
Lbyh;bz:I
-
experiencePoints
protected int experiencePoints- Mappings:
Namespace Name Mixin selector named experiencePoints
Lnet/minecraft/entity/mob/MobEntity;experiencePoints:I
intermediary field_6194
Lnet/minecraft/class_1308;field_6194:I
official bA
Lbyh;bA:I
-
lookControl
- Mappings:
Namespace Name Mixin selector named lookControl
Lnet/minecraft/entity/mob/MobEntity;lookControl:Lnet/minecraft/entity/ai/control/LookControl;
intermediary field_6206
Lnet/minecraft/class_1308;field_6206:Lnet/minecraft/class_1333;
official bB
Lbyh;bB:Lced;
-
moveControl
- Mappings:
Namespace Name Mixin selector named moveControl
Lnet/minecraft/entity/mob/MobEntity;moveControl:Lnet/minecraft/entity/ai/control/MoveControl;
intermediary field_6207
Lnet/minecraft/class_1308;field_6207:Lnet/minecraft/class_1335;
official bC
Lbyh;bC:Lcee;
-
jumpControl
- Mappings:
Namespace Name Mixin selector named jumpControl
Lnet/minecraft/entity/mob/MobEntity;jumpControl:Lnet/minecraft/entity/ai/control/JumpControl;
intermediary field_6204
Lnet/minecraft/class_1308;field_6204:Lnet/minecraft/class_1334;
official bD
Lbyh;bD:Lcec;
-
bodyControl
- Mappings:
Namespace Name Mixin selector named bodyControl
Lnet/minecraft/entity/mob/MobEntity;bodyControl:Lnet/minecraft/entity/ai/control/BodyControl;
intermediary field_6188
Lnet/minecraft/class_1308;field_6188:Lnet/minecraft/class_1330;
official bN
Lbyh;bN:Lcdz;
-
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 goalSelector
Lnet/minecraft/entity/mob/MobEntity;goalSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
intermediary field_6201
Lnet/minecraft/class_1308;field_6201:Lnet/minecraft/class_1355;
official bF
Lbyh;bF:Lcfc;
-
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 targetSelector
Lnet/minecraft/entity/mob/MobEntity;targetSelector:Lnet/minecraft/entity/ai/goal/GoalSelector;
intermediary field_6185
Lnet/minecraft/class_1308;field_6185:Lnet/minecraft/class_1355;
official bG
Lbyh;bG:Lcfc;
-
target
- Mappings:
Namespace Name Mixin selector named target
Lnet/minecraft/entity/mob/MobEntity;target:Lnet/minecraft/entity/LivingEntity;
intermediary field_6199
Lnet/minecraft/class_1308;field_6199:Lnet/minecraft/class_1309;
official bO
Lbyh;bO:Lbyf;
-
visibilityCache
- Mappings:
Namespace Name Mixin selector named visibilityCache
Lnet/minecraft/entity/mob/MobEntity;visibilityCache:Lnet/minecraft/entity/mob/MobVisibilityCache;
intermediary field_6190
Lnet/minecraft/class_1308;field_6190:Lnet/minecraft/class_1413;
official bP
Lbyh;bP:Lcim;
-
equipmentDropChances
- Mappings:
Namespace Name Mixin selector named equipmentDropChances
Lnet/minecraft/entity/mob/MobEntity;equipmentDropChances:Lnet/minecraft/entity/EquipmentDropChances;
intermediary field_55677
Lnet/minecraft/class_1308;field_55677:Lnet/minecraft/class_10582;
official bQ
Lbyh;bQ:Lbxc;
-
canPickUpLoot
private boolean canPickUpLoot- Mappings:
Namespace Name Mixin selector named canPickUpLoot
Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot:Z
intermediary field_6203
Lnet/minecraft/class_1308;field_6203:Z
official bR
Lbyh;bR:Z
-
persistent
private boolean persistent- Mappings:
Namespace Name Mixin selector named persistent
Lnet/minecraft/entity/mob/MobEntity;persistent:Z
intermediary field_6200
Lnet/minecraft/class_1308;field_6200:Z
official bS
Lbyh;bS:Z
-
pathfindingPenalties
- Mappings:
Namespace Name Mixin selector named pathfindingPenalties
Lnet/minecraft/entity/mob/MobEntity;pathfindingPenalties:Ljava/util/Map;
intermediary field_6196
Lnet/minecraft/class_1308;field_6196:Ljava/util/Map;
official bT
Lbyh;bT:Ljava/util/Map;
-
lootTable
- Mappings:
Namespace Name Mixin selector named lootTable
Lnet/minecraft/entity/mob/MobEntity;lootTable:Ljava/util/Optional;
intermediary field_6198
Lnet/minecraft/class_1308;field_6198:Ljava/util/Optional;
official bU
Lbyh;bU:Ljava/util/Optional;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector named lootTableSeed
Lnet/minecraft/entity/mob/MobEntity;lootTableSeed:J
intermediary field_6184
Lnet/minecraft/class_1308;field_6184:J
official bV
Lbyh;bV:J
-
leashData
- Mappings:
Namespace Name Mixin selector named leashData
Lnet/minecraft/entity/mob/MobEntity;leashData:Lnet/minecraft/entity/Leashable$LeashData;
intermediary field_52221
Lnet/minecraft/class_1308;field_52221:Lnet/minecraft/class_9817$class_9818;
official bW
Lbyh;bW:Lbyd$a;
-
positionTarget
- Mappings:
Namespace Name Mixin selector named positionTarget
Lnet/minecraft/entity/mob/MobEntity;positionTarget:Lnet/minecraft/util/math/BlockPos;
intermediary field_18074
Lnet/minecraft/class_1308;field_18074:Lnet/minecraft/class_2338;
official bX
Lbyh;bX:Liw;
-
positionTargetRange
private float positionTargetRange- Mappings:
Namespace Name Mixin selector named positionTargetRange
Lnet/minecraft/entity/mob/MobEntity;positionTargetRange:F
intermediary field_18075
Lnet/minecraft/class_1308;field_18075:F
official bY
Lbyh;bY:F
-
-
Constructor Details
-
MobEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
initGoals
protected void initGoals()- Mappings:
Namespace Name Mixin selector named initGoals
Lnet/minecraft/entity/mob/MobEntity;initGoals()V
intermediary method_5959
Lnet/minecraft/class_1308;method_5959()V
official C
Lbyh;C()V
-
createMobAttributes
- Mappings:
Namespace Name Mixin selector named createMobAttributes
Lnet/minecraft/entity/mob/MobEntity;createMobAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26828
Lnet/minecraft/class_1308;method_26828()Lnet/minecraft/class_5132$class_5133;
official D
Lbyh;D()Lbzk$a;
-
movesIndependently
protected boolean movesIndependently()When true, causes this entity to take over pathfinding for its controlling passenger.- Mappings:
Namespace Name Mixin selector named movesIndependently
Lnet/minecraft/entity/mob/MobEntity;movesIndependently()Z
intermediary method_26323
Lnet/minecraft/class_1308;method_26323()Z
official E
Lbyh;E()Z
-
getPathfindingPenalty
- Mappings:
Namespace Name Mixin selector named getPathfindingPenalty
Lnet/minecraft/entity/mob/MobEntity;getPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;)F
intermediary method_5944
Lnet/minecraft/class_1308;method_5944(Lnet/minecraft/class_7;)F
official a
Lbyh;a(Leyr;)F
-
setPathfindingPenalty
- Mappings:
Namespace Name Mixin selector named setPathfindingPenalty
Lnet/minecraft/entity/mob/MobEntity;setPathfindingPenalty(Lnet/minecraft/entity/ai/pathing/PathNodeType;F)V
intermediary method_5941
Lnet/minecraft/class_1308;method_5941(Lnet/minecraft/class_7;F)V
official a
Lbyh;a(Leyr;F)V
-
onStartPathfinding
public void onStartPathfinding()- Mappings:
Namespace Name Mixin selector named onStartPathfinding
Lnet/minecraft/entity/mob/MobEntity;onStartPathfinding()V
intermediary method_51504
Lnet/minecraft/class_1308;method_51504()V
official F
Lbyh;F()V
-
onFinishPathfinding
public void onFinishPathfinding()- Mappings:
Namespace Name Mixin selector named onFinishPathfinding
Lnet/minecraft/entity/mob/MobEntity;onFinishPathfinding()V
intermediary method_51503
Lnet/minecraft/class_1308;method_51503()V
official G
Lbyh;G()V
-
createBodyControl
- Mappings:
Namespace Name Mixin selector named createBodyControl
Lnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
intermediary method_5963
Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;
official H
Lbyh;H()Lcdz;
-
getLookControl
- Mappings:
Namespace Name Mixin selector named getLookControl
Lnet/minecraft/entity/mob/MobEntity;getLookControl()Lnet/minecraft/entity/ai/control/LookControl;
intermediary method_5988
Lnet/minecraft/class_1308;method_5988()Lnet/minecraft/class_1333;
official I
Lbyh;I()Lced;
-
getMoveControl
- Mappings:
Namespace Name Mixin selector named getMoveControl
Lnet/minecraft/entity/mob/MobEntity;getMoveControl()Lnet/minecraft/entity/ai/control/MoveControl;
intermediary method_5962
Lnet/minecraft/class_1308;method_5962()Lnet/minecraft/class_1335;
official K
Lbyh;K()Lcee;
-
getJumpControl
- Mappings:
Namespace Name Mixin selector named getJumpControl
Lnet/minecraft/entity/mob/MobEntity;getJumpControl()Lnet/minecraft/entity/ai/control/JumpControl;
intermediary method_5993
Lnet/minecraft/class_1308;method_5993()Lnet/minecraft/class_1334;
official M
Lbyh;M()Lcec;
-
getControllingPassenger
Returns the passenger in control of this entity, ornull
if there is none.Rideable entities should override this to return the entity. This is usually
#getFirstPassenger
.- Overrides:
getControllingPassenger
in classEntity
- Returns:
- the passenger in control of this entity, or
null
if there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingPassenger
Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
intermediary method_5642
Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
official cW
Lbxe;cW()Lbyf;
-
getVisibilityCache
- Mappings:
Namespace Name Mixin selector named getVisibilityCache
Lnet/minecraft/entity/mob/MobEntity;getVisibilityCache()Lnet/minecraft/entity/mob/MobVisibilityCache;
intermediary method_5985
Lnet/minecraft/class_1308;method_5985()Lnet/minecraft/class_1413;
official O
Lbyh;O()Lcim;
-
getTarget
-
getTargetInBrain
- Mappings:
Namespace Name Mixin selector named getTargetInBrain
Lnet/minecraft/entity/mob/MobEntity;getTargetInBrain()Lnet/minecraft/entity/LivingEntity;
intermediary method_59664
Lnet/minecraft/class_1308;method_59664()Lnet/minecraft/class_1309;
official P
Lbyh;P()Lbyf;
-
setTarget
- Mappings:
Namespace Name Mixin selector named setTarget
Lnet/minecraft/entity/mob/MobEntity;setTarget(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_5980
Lnet/minecraft/class_1308;method_5980(Lnet/minecraft/class_1309;)V
official g
Lbyh;g(Lbyf;)V
-
canTarget
- Overrides:
canTarget
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canTarget
Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Z
intermediary method_5973
Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Z
official a
Lbyf;a(Lbxn;)Z
-
canUseRangedWeapon
- Mappings:
Namespace Name Mixin selector named canUseRangedWeapon
Lnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
intermediary method_25938
Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Z
official a
Lbyh;a(Ldbf;)Z
-
onEatingGrass
public void onEatingGrass()- Mappings:
Namespace Name Mixin selector named onEatingGrass
Lnet/minecraft/entity/mob/MobEntity;onEatingGrass()V
intermediary method_5983
Lnet/minecraft/class_1308;method_5983()V
official Q
Lbyh;Q()V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in 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 initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbxe;a(Laky$a;)V
-
getMinAmbientSoundDelay
public int getMinAmbientSoundDelay()- Mappings:
Namespace Name Mixin selector named getMinAmbientSoundDelay
Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
intermediary method_5970
Lnet/minecraft/class_1308;method_5970()I
official R
Lbyh;R()I
-
playAmbientSound
public void playAmbientSound()- Mappings:
Namespace Name Mixin selector named playAmbientSound
Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
intermediary method_5966
Lnet/minecraft/class_1308;method_5966()V
official S
Lbyh;S()V
-
baseTick
public void baseTick()- Overrides:
baseTick
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named baseTick
Lnet/minecraft/entity/Entity;baseTick()V
intermediary method_5670
Lnet/minecraft/class_1297;method_5670()V
official aw
Lbxe;aw()V
-
playHurtSound
- Overrides:
playHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named playHurtSound
Lnet/minecraft/entity/LivingEntity;playHurtSound(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6013
Lnet/minecraft/class_1309;method_6013(Lnet/minecraft/class_1282;)V
official h
Lbyf;h(Lbvt;)V
-
resetSoundDelay
private void resetSoundDelay()- Mappings:
Namespace Name Mixin selector named resetSoundDelay
Lnet/minecraft/entity/mob/MobEntity;resetSoundDelay()V
intermediary method_5975
Lnet/minecraft/class_1308;method_5975()V
official m
Lbyh;m()V
-
getExperienceToDrop
Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getExperienceToDrop
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named getExperienceToDrop
Lnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)I
intermediary method_6110
Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)I
official e
Lbyf;e(Lasb;)I
-
playSpawnEffects
public void playSpawnEffects()- Mappings:
Namespace Name Mixin selector named playSpawnEffects
Lnet/minecraft/entity/mob/MobEntity;playSpawnEffects()V
intermediary method_5990
Lnet/minecraft/class_1308;method_5990()V
official T
Lbyh;T()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:
handleStatus
in classLivingEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbxe;b(B)V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in 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 tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official g
Lbxe;g()V
-
updateGoalControls
protected void updateGoalControls()- Mappings:
Namespace Name Mixin selector named updateGoalControls
Lnet/minecraft/entity/mob/MobEntity;updateGoalControls()V
intermediary method_20417
Lnet/minecraft/class_1308;method_20417()V
official U
Lbyh;U()V
-
turnHead
protected void turnHead(float bodyRotation) - Overrides:
turnHead
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named turnHead
Lnet/minecraft/entity/LivingEntity;turnHead(F)V
intermediary method_6031
Lnet/minecraft/class_1309;method_6031(F)V
official C
Lbyf;C(F)V
-
getAmbientSound
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official s
Lbyh;s()Lawx;
-
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:
writeCustomDataToNbt
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbxe;b(Lua;)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.
nbt
might 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:
readCustomDataFromNbt
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbxe;a(Lua;)V
-
dropLoot
- Overrides:
dropLoot
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named dropLoot
Lnet/minecraft/entity/LivingEntity;dropLoot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)V
intermediary method_16077
Lnet/minecraft/class_1309;method_16077(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)V
official b
Lbyf;b(Lasb;Lbvt;Z)V
-
getLootTableKey
- Overrides:
getLootTableKey
in classEntity
- Mappings:
Namespace Name Mixin selector named getLootTableKey
Lnet/minecraft/entity/Entity;getLootTableKey()Ljava/util/Optional;
intermediary method_5991
Lnet/minecraft/class_1297;method_5991()Ljava/util/Optional;
official ea
Lbxe;ea()Ljava/util/Optional;
-
getLootTableSeed
public long getLootTableSeed()- Overrides:
getLootTableSeed
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getLootTableSeed
Lnet/minecraft/entity/LivingEntity;getLootTableSeed()J
intermediary method_51851
Lnet/minecraft/class_1309;method_51851()J
official eJ
Lbyf;eJ()J
-
setForwardSpeed
public void setForwardSpeed(float forwardSpeed) - Mappings:
Namespace Name Mixin selector named setForwardSpeed
Lnet/minecraft/entity/mob/MobEntity;setForwardSpeed(F)V
intermediary method_5930
Lnet/minecraft/class_1308;method_5930(F)V
official G
Lbyh;G(F)V
-
setUpwardSpeed
public void setUpwardSpeed(float upwardSpeed) - Mappings:
Namespace Name Mixin selector named setUpwardSpeed
Lnet/minecraft/entity/mob/MobEntity;setUpwardSpeed(F)V
intermediary method_5976
Lnet/minecraft/class_1308;method_5976(F)V
official H
Lbyh;H(F)V
-
setSidewaysSpeed
public void setSidewaysSpeed(float sidewaysSpeed) - Mappings:
Namespace Name Mixin selector named setSidewaysSpeed
Lnet/minecraft/entity/mob/MobEntity;setSidewaysSpeed(F)V
intermediary method_5938
Lnet/minecraft/class_1308;method_5938(F)V
official I
Lbyh;I(F)V
-
setMovementSpeed
public void setMovementSpeed(float movementSpeed) - Overrides:
setMovementSpeed
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named setMovementSpeed
Lnet/minecraft/entity/LivingEntity;setMovementSpeed(F)V
intermediary method_6125
Lnet/minecraft/class_1309;method_6125(F)V
official B
Lbyf;B(F)V
-
stopMovement
public void stopMovement()- Mappings:
Namespace Name Mixin selector named stopMovement
Lnet/minecraft/entity/mob/MobEntity;stopMovement()V
intermediary method_55695
Lnet/minecraft/class_1308;method_55695()V
official V
Lbyh;V()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official d_
Lbyf;d_()V
-
getItemPickUpRangeExpander
- Mappings:
Namespace Name Mixin selector named getItemPickUpRangeExpander
Lnet/minecraft/entity/mob/MobEntity;getItemPickUpRangeExpander()Lnet/minecraft/util/math/Vec3i;
intermediary method_42646
Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;
official W
Lbyh;W()Lkb;
-
loot
- Mappings:
Namespace Name Mixin selector named loot
Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/ItemEntity;)V
intermediary method_5949
Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_3218;Lnet/minecraft/class_1542;)V
official a
Lbyh;a(Lasb;Lcoo;)V
-
tryEquip
- Mappings:
Namespace Name Mixin selector named tryEquip
Lnet/minecraft/entity/mob/MobEntity;tryEquip(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
intermediary method_24523
Lnet/minecraft/class_1308;method_24523(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
official b
Lbyh;b(Lasb;Ldak;)Ldak;
-
equipLootStack
- Mappings:
Namespace Name Mixin selector named equipLootStack
Lnet/minecraft/entity/mob/MobEntity;equipLootStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
intermediary method_24834
Lnet/minecraft/class_1308;method_24834(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
official b
Lbyh;b(Lbxo;Ldak;)V
-
setDropGuaranteed
- Mappings:
Namespace Name Mixin selector named setDropGuaranteed
Lnet/minecraft/entity/mob/MobEntity;setDropGuaranteed(Lnet/minecraft/entity/EquipmentSlot;)V
intermediary method_25939
Lnet/minecraft/class_1308;method_25939(Lnet/minecraft/class_1304;)V
official g
Lbyh;g(Lbxo;)V
-
prefersNewEquipment
protected boolean prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) - Mappings:
Namespace Name Mixin selector named prefersNewEquipment
Lnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_5955
Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Z
official a
Lbyh;a(Ldak;Ldak;Lbxo;)Z
-
prefersNewArmor
- Mappings:
Namespace Name Mixin selector named prefersNewArmor
Lnet/minecraft/entity/mob/MobEntity;prefersNewArmor(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_65346
Lnet/minecraft/class_1308;method_65346(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Z
official b
Lbyh;b(Ldak;Ldak;Lbxo;)Z
-
prefersNewWeapon
- Mappings:
Namespace Name Mixin selector named prefersNewWeapon
Lnet/minecraft/entity/mob/MobEntity;prefersNewWeapon(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_65347
Lnet/minecraft/class_1308;method_65347(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1304;)Z
official c
Lbyh;c(Ldak;Ldak;Lbxo;)Z
-
getAttributeValueWithStack
private double getAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) - Mappings:
Namespace Name Mixin selector named getAttributeValueWithStack
Lnet/minecraft/entity/mob/MobEntity;getAttributeValueWithStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/EquipmentSlot;)D
intermediary method_63632
Lnet/minecraft/class_1308;method_63632(Lnet/minecraft/class_1799;Lnet/minecraft/class_6880;Lnet/minecraft/class_1304;)D
official a
Lbyh;a(Ldak;Ljg;Lbxo;)D
-
prefersNewDamageableItem
- Mappings:
Namespace Name Mixin selector named prefersNewDamageableItem
Lnet/minecraft/entity/mob/MobEntity;prefersNewDamageableItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
intermediary method_26320
Lnet/minecraft/class_1308;method_26320(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
official b
Lbyh;b(Ldak;Ldak;)Z
-
canPickupItem
- Mappings:
Namespace Name Mixin selector named canPickupItem
Lnet/minecraft/entity/mob/MobEntity;canPickupItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_5939
Lnet/minecraft/class_1308;method_5939(Lnet/minecraft/class_1799;)Z
official g
Lbyh;g(Ldak;)Z
-
canGather
- Mappings:
Namespace Name Mixin selector named canGather
Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
intermediary method_20820
Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
official c
Lbyh;c(Lasb;Ldak;)Z
-
getPreferredWeapons
- Mappings:
Namespace Name Mixin selector named getPreferredWeapons
Lnet/minecraft/entity/mob/MobEntity;getPreferredWeapons()Lnet/minecraft/registry/tag/TagKey;
intermediary method_65345
Lnet/minecraft/class_1308;method_65345()Lnet/minecraft/class_6862;
official X
Lbyh;X()Layc;
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Mappings:
Namespace Name Mixin selector named canImmediatelyDespawn
Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
intermediary method_5974
Lnet/minecraft/class_1308;method_5974(D)Z
official h
Lbyh;h(D)Z
-
cannotDespawn
public boolean cannotDespawn()- Mappings:
Namespace Name Mixin selector named cannotDespawn
Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
intermediary method_17326
Lnet/minecraft/class_1308;method_17326()Z
official Y
Lbyh;Y()Z
-
isDisallowedInPeaceful
protected boolean isDisallowedInPeaceful()- Mappings:
Namespace Name Mixin selector named isDisallowedInPeaceful
Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
intermediary method_23734
Lnet/minecraft/class_1308;method_23734()Z
official Z
Lbyh;Z()Z
-
checkDespawn
public void checkDespawn()Checks whether the entity should be despawned.To despawn this entity, call
Entity.discard()
.- Overrides:
checkDespawn
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named checkDespawn
Lnet/minecraft/entity/Entity;checkDespawn()V
intermediary method_5982
Lnet/minecraft/class_1297;method_5982()V
official dH
Lbxe;dH()V
-
tickNewAi
protected final void tickNewAi()- Overrides:
tickNewAi
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickNewAi
Lnet/minecraft/entity/LivingEntity;tickNewAi()V
intermediary method_6023
Lnet/minecraft/class_1309;method_6023()V
official fu
Lbyf;fu()V
-
sendAiDebugData
protected void sendAiDebugData()- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official ab
Lbyh;ab()V
-
mobTick
- Mappings:
Namespace Name Mixin selector named mobTick
Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_5958
Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
official a
Lbyh;a(Lasb;)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
1
for entities that can hardly raise their head, like axolotls or dolphins, or180
for 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 getMaxLookPitchChange
Lnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()I
intermediary method_5978
Lnet/minecraft/class_1308;method_5978()I
official ac
Lbyh;ac()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
1
for entities that can hardly rotate their head, like axolotls or dolphins, or180
for 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 getMaxHeadRotation
Lnet/minecraft/entity/mob/MobEntity;getMaxHeadRotation()I
intermediary method_5986
Lnet/minecraft/class_1308;method_5986()I
official ae
Lbyh;ae()I
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector named clampHeadYaw
Lnet/minecraft/entity/mob/MobEntity;clampHeadYaw()V
intermediary method_56080
Lnet/minecraft/class_1308;method_56080()V
official af
Lbyh;af()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 getMaxLookYawChange
Lnet/minecraft/entity/mob/MobEntity;getMaxLookYawChange()I
intermediary method_20240
Lnet/minecraft/class_1308;method_20240()I
official ag
Lbyh;ag()I
-
lookAtEntity
- Mappings:
Namespace Name Mixin selector named lookAtEntity
Lnet/minecraft/entity/mob/MobEntity;lookAtEntity(Lnet/minecraft/entity/Entity;FF)V
intermediary method_5951
Lnet/minecraft/class_1308;method_5951(Lnet/minecraft/class_1297;FF)V
official a
Lbyh;a(Lbxe;FF)V
-
changeAngle
private float changeAngle(float from, float to, float max) Changes the angle fromfrom
toto
, or bymax
degrees ifto
is too big a change.This is the same as
Control.changeAngle(float, float, float)
.- Mappings:
Namespace Name Mixin selector named changeAngle
Lnet/minecraft/entity/mob/MobEntity;changeAngle(FFF)F
intermediary method_5960
Lnet/minecraft/class_1308;method_5960(FFF)F
official a
Lbyh;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 canMobSpawn
Lnet/minecraft/entity/mob/MobEntity;canMobSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
intermediary method_20636
Lnet/minecraft/class_1308;method_20636(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
official a
Lbyh;a(Lbxn;Ldkk;Lbxm;Liw;Lbai;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector named canSpawn
Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;)Z
intermediary method_5979
Lnet/minecraft/class_1308;method_5979(Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;)Z
official a
Lbyh;a(Ldkk;Lbxm;)Z
-
canSpawn
- Mappings:
Namespace Name Mixin selector named canSpawn
Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
intermediary method_5957
Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
official a
Lbyh;a(Ldkm;)Z
-
getLimitPerChunk
public int getLimitPerChunk()- Mappings:
Namespace Name Mixin selector named getLimitPerChunk
Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
intermediary method_5945
Lnet/minecraft/class_1308;method_5945()I
official fX
Lbyh;fX()I
-
spawnsTooManyForEachTry
public boolean spawnsTooManyForEachTry(int count) - Mappings:
Namespace Name Mixin selector named spawnsTooManyForEachTry
Lnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(I)Z
intermediary method_5969
Lnet/minecraft/class_1308;method_5969(I)Z
official q
Lbyh;q(I)Z
-
getSafeFallDistance
public int getSafeFallDistance()Returns the maximum height of a fall the entity takes during pathfinding.- Overrides:
getSafeFallDistance
in classLivingEntity
- Returns:
- the maximum height of a fall the entity takes during pathfinding
- Mappings:
Namespace Name Mixin selector named getSafeFallDistance
Lnet/minecraft/entity/Entity;getSafeFallDistance()I
intermediary method_5850
Lnet/minecraft/class_1297;method_5850()I
official cE
Lbxe;cE()I
-
getBodyArmor
- Mappings:
Namespace Name Mixin selector named getBodyArmor
Lnet/minecraft/entity/mob/MobEntity;getBodyArmor()Lnet/minecraft/item/ItemStack;
intermediary method_56676
Lnet/minecraft/class_1308;method_56676()Lnet/minecraft/class_1799;
official fY
Lbyh;fY()Ldak;
-
hasSaddleEquipped
public boolean hasSaddleEquipped()- Mappings:
Namespace Name Mixin selector named hasSaddleEquipped
Lnet/minecraft/entity/mob/MobEntity;hasSaddleEquipped()Z
intermediary method_66672
Lnet/minecraft/class_1308;method_66672()Z
official fZ
Lbyh;fZ()Z
-
isWearingBodyArmor
public boolean isWearingBodyArmor()- Mappings:
Namespace Name Mixin selector named isWearingBodyArmor
Lnet/minecraft/entity/mob/MobEntity;isWearingBodyArmor()Z
intermediary method_56677
Lnet/minecraft/class_1308;method_56677()Z
official ga
Lbyh;ga()Z
-
equipBodyArmor
- Mappings:
Namespace Name Mixin selector named equipBodyArmor
Lnet/minecraft/entity/mob/MobEntity;equipBodyArmor(Lnet/minecraft/item/ItemStack;)V
intermediary method_56678
Lnet/minecraft/class_1308;method_56678(Lnet/minecraft/class_1799;)V
official h
Lbyh;h(Ldak;)V
-
createEquipmentInventory
- Mappings:
Namespace Name Mixin selector named createEquipmentInventory
Lnet/minecraft/entity/mob/MobEntity;createEquipmentInventory(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/inventory/Inventory;
intermediary method_66674
Lnet/minecraft/class_1308;method_66674(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1263;
official h
Lbyh;h(Lbxo;)Lbuv;
-
dropEquipment
- Overrides:
dropEquipment
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named dropEquipment
Lnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;Z)V
intermediary method_6099
Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;Z)V
official a
Lbyf;a(Lasb;Lbvt;Z)V
-
getEquipmentDropChances
- Mappings:
Namespace Name Mixin selector named getEquipmentDropChances
Lnet/minecraft/entity/mob/MobEntity;getEquipmentDropChances()Lnet/minecraft/entity/EquipmentDropChances;
intermediary method_66286
Lnet/minecraft/class_1308;method_66286()Lnet/minecraft/class_10582;
official gb
Lbyh;gb()Lbxc;
-
dropAllForeignEquipment
- Mappings:
Namespace Name Mixin selector named dropAllForeignEquipment
Lnet/minecraft/entity/mob/MobEntity;dropAllForeignEquipment(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_60973
Lnet/minecraft/class_1308;method_60973(Lnet/minecraft/class_3218;)V
official b
Lbyh;b(Lasb;)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
EquipmentSlot
s where each slot is being occupied by an item which did not pass the predicate - Mappings:
Namespace Name Mixin selector named dropForeignEquipment
Lnet/minecraft/entity/mob/MobEntity;dropForeignEquipment(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Predicate;)Ljava/util/Set;
intermediary method_60972
Lnet/minecraft/class_1308;method_60972(Lnet/minecraft/class_3218;Ljava/util/function/Predicate;)Ljava/util/Set;
official a
Lbyh;a(Lasb;Ljava/util/function/Predicate;)Ljava/util/Set;
-
createEquipmentLootParameters
- Mappings:
Namespace Name Mixin selector named createEquipmentLootParameters
Lnet/minecraft/entity/mob/MobEntity;createEquipmentLootParameters(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/loot/context/LootWorldContext;
intermediary method_58635
Lnet/minecraft/class_1308;method_58635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8567;
official g
Lbyh;g(Lasb;)Lfaw;
-
setEquipmentFromTable
- Mappings:
Namespace Name Mixin selector named setEquipmentFromTable
Lnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/entity/EquipmentTable;)V
intermediary method_58634
Lnet/minecraft/class_1308;method_58634(Lnet/minecraft/class_9652;)V
official a
Lbyh;a(Lbxq;)V
-
setEquipmentFromTable
public void setEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) - Mappings:
Namespace Name Mixin selector named setEquipmentFromTable
Lnet/minecraft/entity/mob/MobEntity;setEquipmentFromTable(Lnet/minecraft/registry/RegistryKey;Ljava/util/Map;)V
intermediary method_59665
Lnet/minecraft/class_1308;method_59665(Lnet/minecraft/class_5321;Ljava/util/Map;)V
official a
Lbyh;a(Lalq;Ljava/util/Map;)V
-
initEquipment
- Mappings:
Namespace Name Mixin selector named initEquipment
Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
intermediary method_5964
Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
official a
Lbyh;a(Lbai;Lbva;)V
-
getEquipmentForSlot
@Nullable public static @Nullable Item getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) - Mappings:
Namespace Name Mixin selector named getEquipmentForSlot
Lnet/minecraft/entity/mob/MobEntity;getEquipmentForSlot(Lnet/minecraft/entity/EquipmentSlot;I)Lnet/minecraft/item/Item;
intermediary method_5948
Lnet/minecraft/class_1308;method_5948(Lnet/minecraft/class_1304;I)Lnet/minecraft/class_1792;
official a
Lbyh;a(Lbxo;I)Ldag;
-
updateEnchantments
protected void updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named updateEnchantments
Lnet/minecraft/entity/mob/MobEntity;updateEnchantments(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
intermediary method_5984
Lnet/minecraft/class_1308;method_5984(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
official a
Lbyh;a(Ldla;Lbai;Lbva;)V
-
enchantMainHandItem
protected void enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantMainHandItem
Lnet/minecraft/entity/mob/MobEntity;enchantMainHandItem(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
intermediary method_30759
Lnet/minecraft/class_1308;method_30759(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
official b
Lbyh;b(Ldla;Lbai;Lbva;)V
-
enchantEquipment
protected void enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantEquipment
Lnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/world/LocalDifficulty;)V
intermediary method_30758
Lnet/minecraft/class_1308;method_30758(Lnet/minecraft/class_5425;Lnet/minecraft/class_5819;Lnet/minecraft/class_1304;Lnet/minecraft/class_1266;)V
official a
Lbyh;a(Ldla;Lbai;Lbxo;Lbva;)V
-
enchantEquipment
private void enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) - Mappings:
Namespace Name Mixin selector named enchantEquipment
Lnet/minecraft/entity/mob/MobEntity;enchantEquipment(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/util/math/random/Random;FLnet/minecraft/world/LocalDifficulty;)V
intermediary method_59927
Lnet/minecraft/class_1308;method_59927(Lnet/minecraft/class_5425;Lnet/minecraft/class_1304;Lnet/minecraft/class_5819;FLnet/minecraft/class_1266;)V
official a
Lbyh;a(Ldla;Lbxo;Lbai;FLbva;)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Mappings:
Namespace Name Mixin selector named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
official a
Lbyh;a(Ldla;Lbva;Lbxm;Lbyx;)Lbyx;
-
setPersistent
public void setPersistent()- Mappings:
Namespace Name Mixin selector named setPersistent
Lnet/minecraft/entity/mob/MobEntity;setPersistent()V
intermediary method_5971
Lnet/minecraft/class_1308;method_5971()V
official gc
Lbyh;gc()V
-
setEquipmentDropChance
- Specified by:
setEquipmentDropChance
in interfaceEquipmentHolder
- Mappings:
Namespace Name Mixin selector named setEquipmentDropChance
Lnet/minecraft/entity/EquipmentHolder;setEquipmentDropChance(Lnet/minecraft/entity/EquipmentSlot;F)V
intermediary method_5946
Lnet/minecraft/class_9460;method_5946(Lnet/minecraft/class_1304;F)V
official a
Lbxr;a(Lbxo;F)V
-
canPickUpLoot
public boolean canPickUpLoot()- Overrides:
canPickUpLoot
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canPickUpLoot
Lnet/minecraft/entity/LivingEntity;canPickUpLoot()Z
intermediary method_5936
Lnet/minecraft/class_1309;method_5936()Z
official fN
Lbyf;fN()Z
-
setCanPickUpLoot
public void setCanPickUpLoot(boolean canPickUpLoot) - Mappings:
Namespace Name Mixin selector named setCanPickUpLoot
Lnet/minecraft/entity/mob/MobEntity;setCanPickUpLoot(Z)V
intermediary method_5952
Lnet/minecraft/class_1308;method_5952(Z)V
official a_
Lbyh;a_(Z)V
-
canDispenserEquipSlot
- Overrides:
canDispenserEquipSlot
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canDispenserEquipSlot
Lnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_63626
Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Z
official f
Lbyf;f(Lbxo;)Z
-
isPersistent
public boolean isPersistent()- Mappings:
Namespace Name Mixin selector named isPersistent
Lnet/minecraft/entity/mob/MobEntity;isPersistent()Z
intermediary method_5947
Lnet/minecraft/class_1308;method_5947()Z
official gd
Lbyh;gd()Z
-
interact
Called when a player interacts with this entity.- Overrides:
interact
in classEntity
- Parameters:
player
- the playerhand
- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interact
Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5688
Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official a
Lbxe;a(Lcsi;Lbvb;)Lbvc;
-
interactWithItem
- Mappings:
Namespace Name Mixin selector named interactWithItem
Lnet/minecraft/entity/mob/MobEntity;interactWithItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_29506
Lnet/minecraft/class_1308;method_29506(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official c
Lbyh;c(Lcsi;Lbvb;)Lbvc;
-
onPlayerSpawnedChild
- Mappings:
Namespace Name Mixin selector named onPlayerSpawnedChild
Lnet/minecraft/entity/mob/MobEntity;onPlayerSpawnedChild(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/mob/MobEntity;)V
intermediary method_18249
Lnet/minecraft/class_1308;method_18249(Lnet/minecraft/class_1657;Lnet/minecraft/class_1308;)V
official a
Lbyh;a(Lcsi;Lbyh;)V
-
interactMob
- Mappings:
Namespace Name Mixin selector named interactMob
Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5992
Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official b
Lbyh;b(Lcsi;Lbvb;)Lbvc;
-
isInWalkTargetRange
public boolean isInWalkTargetRange()- Mappings:
Namespace Name Mixin selector named isInWalkTargetRange
Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange()Z
intermediary method_18411
Lnet/minecraft/class_1308;method_18411()Z
official ge
Lbyh;ge()Z
-
isInWalkTargetRange
- Mappings:
Namespace Name Mixin selector named isInWalkTargetRange
Lnet/minecraft/entity/mob/MobEntity;isInWalkTargetRange(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_18407
Lnet/minecraft/class_1308;method_18407(Lnet/minecraft/class_2338;)Z
official a
Lbyh;a(Liw;)Z
-
setPositionTarget
- Mappings:
Namespace Name Mixin selector named setPositionTarget
Lnet/minecraft/entity/mob/MobEntity;setPositionTarget(Lnet/minecraft/util/math/BlockPos;I)V
intermediary method_18408
Lnet/minecraft/class_1308;method_18408(Lnet/minecraft/class_2338;I)V
official a
Lbyh;a(Liw;I)V
-
getPositionTarget
- Mappings:
Namespace Name Mixin selector named getPositionTarget
Lnet/minecraft/entity/mob/MobEntity;getPositionTarget()Lnet/minecraft/util/math/BlockPos;
intermediary method_18412
Lnet/minecraft/class_1308;method_18412()Lnet/minecraft/class_2338;
official gf
Lbyh;gf()Liw;
-
getPositionTargetRange
public float getPositionTargetRange()- Mappings:
Namespace Name Mixin selector named getPositionTargetRange
Lnet/minecraft/entity/mob/MobEntity;getPositionTargetRange()F
intermediary method_18413
Lnet/minecraft/class_1308;method_18413()F
official gg
Lbyh;gg()F
-
clearPositionTarget
public void clearPositionTarget()- Mappings:
Namespace Name Mixin selector named clearPositionTarget
Lnet/minecraft/entity/mob/MobEntity;clearPositionTarget()V
intermediary method_35055
Lnet/minecraft/class_1308;method_35055()V
official gh
Lbyh;gh()V
-
hasPositionTarget
public boolean hasPositionTarget()- Mappings:
Namespace Name Mixin selector named hasPositionTarget
Lnet/minecraft/entity/mob/MobEntity;hasPositionTarget()Z
intermediary method_18410
Lnet/minecraft/class_1308;method_18410()Z
official gi
Lbyh;gi()Z
-
convertTo
@Nullable public <T extends MobEntity> T convertTo(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext.Finalizer<T> finalizer) - Mappings:
Namespace Name Mixin selector named convertTo
Lnet/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_63631
Lnet/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 a
Lbyh;a(Lbxn;Lbwy;Lbxm;Lbwy$a;)Lbyh;
-
convertTo
@Nullable public <T extends MobEntity> 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
keepEquipment
istrue
, it will also keep its equipment.- Parameters:
entityType
- the entity type to convert to- Mappings:
Namespace Name Mixin selector named convertTo
Lnet/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_29243
Lnet/minecraft/class_1308;method_29243(Lnet/minecraft/class_1299;Lnet/minecraft/class_10179;Lnet/minecraft/class_10179$class_10180;)Lnet/minecraft/class_1308;
official a
Lbyh;a(Lbxn;Lbwy;Lbwy$a;)Lbyh;
-
getLeashData
- Specified by:
getLeashData
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named getLeashData
Lnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;
intermediary method_60955
Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;
official S_
Lbyd;S_()Lbyd$a;
-
setLeashData
- Specified by:
setLeashData
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named setLeashData
Lnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)V
intermediary method_60960
Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)V
official a
Lbyd;a(Lbyd$a;)V
-
onLeashRemoved
public void onLeashRemoved()- Specified by:
onLeashRemoved
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named onLeashRemoved
Lnet/minecraft/entity/Leashable;onLeashRemoved()V
intermediary method_65895
Lnet/minecraft/class_9817;method_65895()V
official z
Lbyd;z()V
-
breakLongLeash
public void breakLongLeash()- Specified by:
breakLongLeash
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named breakLongLeash
Lnet/minecraft/entity/Leashable;breakLongLeash()V
intermediary method_60970
Lnet/minecraft/class_9817;method_60970()V
official A
Lbyd;A()V
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashed
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named canBeLeashed
Lnet/minecraft/entity/Leashable;canBeLeashed()Z
intermediary method_5931
Lnet/minecraft/class_9817;method_5931()Z
official w
Lbyd;w()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
force
istrue
. If this entity is already riding another entity, it will stop riding that entity first.- Overrides:
startRiding
in 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 startRiding
Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
intermediary method_5873
Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
official a
Lbxe;a(Lbxe;Z)Z
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Overrides:
canMoveVoluntarily
in classEntity
- Mappings:
Namespace Name Mixin selector named canMoveVoluntarily
Lnet/minecraft/entity/Entity;canMoveVoluntarily()Z
intermediary method_66249
Lnet/minecraft/class_1297;method_66249()Z
official di
Lbxe;di()Z
-
canActVoluntarily
public boolean canActVoluntarily()- Overrides:
canActVoluntarily
in classEntity
- Mappings:
Namespace Name Mixin selector named canActVoluntarily
Lnet/minecraft/entity/Entity;canActVoluntarily()Z
intermediary method_6034
Lnet/minecraft/class_1297;method_6034()Z
official dj
Lbxe;dj()Z
-
setAiDisabled
public void setAiDisabled(boolean aiDisabled) - Mappings:
Namespace Name Mixin selector named setAiDisabled
Lnet/minecraft/entity/mob/MobEntity;setAiDisabled(Z)V
intermediary method_5977
Lnet/minecraft/class_1308;method_5977(Z)V
official t
Lbyh;t(Z)V
-
setLeftHanded
public void setLeftHanded(boolean leftHanded) - Mappings:
Namespace Name Mixin selector named setLeftHanded
Lnet/minecraft/entity/mob/MobEntity;setLeftHanded(Z)V
intermediary method_5937
Lnet/minecraft/class_1308;method_5937(Z)V
official u
Lbyh;u(Z)V
-
setAttacking
public void setAttacking(boolean attacking) - Mappings:
Namespace Name Mixin selector named setAttacking
Lnet/minecraft/entity/mob/MobEntity;setAttacking(Z)V
intermediary method_19540
Lnet/minecraft/class_1308;method_19540(Z)V
official v
Lbyh;v(Z)V
-
isAiDisabled
public boolean isAiDisabled()- Mappings:
Namespace Name Mixin selector named isAiDisabled
Lnet/minecraft/entity/mob/MobEntity;isAiDisabled()Z
intermediary method_5987
Lnet/minecraft/class_1308;method_5987()Z
official gj
Lbyh;gj()Z
-
isLeftHanded
public boolean isLeftHanded()- Mappings:
Namespace Name Mixin selector named isLeftHanded
Lnet/minecraft/entity/mob/MobEntity;isLeftHanded()Z
intermediary method_5961
Lnet/minecraft/class_1308;method_5961()Z
official gk
Lbyh;gk()Z
-
isAttacking
public boolean isAttacking()- Mappings:
Namespace Name Mixin selector named isAttacking
Lnet/minecraft/entity/mob/MobEntity;isAttacking()Z
intermediary method_6510
Lnet/minecraft/class_1308;method_6510()Z
official gl
Lbyh;gl()Z
-
setBaby
public void setBaby(boolean baby) - Mappings:
Namespace Name Mixin selector named setBaby
Lnet/minecraft/entity/mob/MobEntity;setBaby(Z)V
intermediary method_7217
Lnet/minecraft/class_1308;method_7217(Z)V
official a
Lbyh;a(Z)V
-
getMainArm
- Specified by:
getMainArm
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getMainArm
Lnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;
intermediary method_6068
Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;
official fy
Lbyf;fy()Lbxw;
-
isInAttackRange
- Mappings:
Namespace Name Mixin selector named isInAttackRange
Lnet/minecraft/entity/mob/MobEntity;isInAttackRange(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_42150
Lnet/minecraft/class_1308;method_42150(Lnet/minecraft/class_1309;)Z
official h
Lbyh;h(Lbyf;)Z
-
getAttackBox
Gets the area in which this mob can attack entities whose hitbox intersects it.- See Also:
- Mappings:
Namespace Name Mixin selector named getAttackBox
Lnet/minecraft/entity/mob/MobEntity;getAttackBox()Lnet/minecraft/util/math/Box;
intermediary method_53511
Lnet/minecraft/class_1308;method_53511()Lnet/minecraft/class_238;
official gm
Lbyh;gm()Lffx;
-
tryAttack
- Overrides:
tryAttack
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tryAttack
Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Z
intermediary method_6121
Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Z
official c
Lbyf;c(Lasb;Lbxe;)Z
-
playAttackSound
protected void playAttackSound()- Mappings:
Namespace Name Mixin selector named playAttackSound
Lnet/minecraft/entity/mob/MobEntity;playAttackSound()V
intermediary method_59928
Lnet/minecraft/class_1308;method_59928()V
official gn
Lbyh;gn()V
-
isAffectedByDaylight
protected boolean isAffectedByDaylight()- Mappings:
Namespace Name Mixin selector named isAffectedByDaylight
Lnet/minecraft/entity/mob/MobEntity;isAffectedByDaylight()Z
intermediary method_5972
Lnet/minecraft/class_1308;method_5972()Z
official go
Lbyh;go()Z
-
swimUpward
- Overrides:
swimUpward
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named swimUpward
Lnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
intermediary method_6010
Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)V
official c
Lbyf;c(Layc;)V
-
clearGoalsAndTasks
public void clearGoalsAndTasks()- Mappings:
Namespace Name Mixin selector named clearGoalsAndTasks
Lnet/minecraft/entity/mob/MobEntity;clearGoalsAndTasks()V
intermediary method_35056
Lnet/minecraft/class_1308;method_35056()V
official gp
Lbyh;gp()V
-
clearGoals
- Mappings:
Namespace Name Mixin selector named clearGoals
Lnet/minecraft/entity/mob/MobEntity;clearGoals(Ljava/util/function/Predicate;)V
intermediary method_47825
Lnet/minecraft/class_1308;method_47825(Ljava/util/function/Predicate;)V
official c
Lbyh;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 ofinvalid reference
equipped stacks
- Overrides:
removeFromDimension
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named removeFromDimension
Lnet/minecraft/entity/Entity;removeFromDimension()V
intermediary method_30076
Lnet/minecraft/class_1297;method_30076()V
official cD
Lbxe;cD()V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornull
if 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
MobEntity
handles the spawn eggs.ItemFrameEntity
instead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStack
in classEntity
- Returns:
- the stack for creative "pick block" functionality, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
official dI
Lbxe;dI()Ldak;
-
updateAttribute
- Overrides:
updateAttribute
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named updateAttribute
Lnet/minecraft/entity/LivingEntity;updateAttribute(Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary method_52540
Lnet/minecraft/class_1309;method_52540(Lnet/minecraft/class_6880;)V
official f
Lbyf;f(Ljg;)V
-