Package net.minecraft.world.entity
Class Mob
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
- All Implemented Interfaces:
- CommandSource,- Attackable,- Targeting,- EntityAccess,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeEntity,- IForgeLivingEntity,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- AmbientCreature,- EnderDragon,- FlyingMob,- PathfinderMob,- Slime
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntityLivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintprotected final float[]private final NonNullList<ItemStack>private final BodyRotationControlprivate booleanprivate static final EntityDataAccessor<Byte>private static final doublestatic final floatprivate intfinal GoalSelectorprotected final float[]private final NonNullList<ItemStack>private static final Vec3iprotected JumpControlstatic final Stringprivate Entityprivate CompoundTagprotected LookControlprivate ResourceLocationprivate longstatic final floatstatic final floatstatic final floatstatic final floatprivate static final intprivate static final intprivate static final intprotected MoveControlprotected PathNavigationprivate final Map<BlockPathTypes,Float> private booleanprotected static final intstatic final intprivate BlockPosprivate floatprivate final Sensingprivate booleanprivate MobSpawnTypeprivate LivingEntityfinal GoalSelectorstatic final intprotected intFields inherited from class net.minecraft.world.entity.LivingEntityanimStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.EntityBASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag p_21484_) voidaiStep()voidate()voidbaseTick()booleancanAttackType(EntityType<?> p_21399_) booleancanBeLeashed(Player p_21418_) booleancanFireProjectileWeapon(ProjectileWeaponItem p_21430_) booleancanHoldItem(ItemStack p_21545_) booleanprotected booleancanReplaceCurrentItem(ItemStack p_21428_, ItemStack p_21429_) booleancanReplaceEqualItem(ItemStack p_21478_, ItemStack p_21479_) booleancanTakeItem(ItemStack p_21522_) private InteractionResultcheckAndHandleImportantInteractions(Player p_21500_, InteractionHand p_21501_) voidstatic booleancheckMobSpawnRules(EntityType<? extends Mob> p_217058_, LevelAccessor p_217059_, MobSpawnType p_217060_, BlockPos p_217061_, RandomSource p_217062_) booleancheckSpawnObstruction(LevelReader p_21433_) booleancheckSpawnRules(LevelAccessor p_21431_, MobSpawnType p_21432_) void<T extends Mob>
 TconvertTo(EntityType<T> p_21407_, boolean p_21408_) protected BodyRotationControlstatic AttributeSupplier.Builderprotected PathNavigationcreateNavigation(Level p_21480_) protected voidprotected voidbooleandoHurtTarget(Entity p_21372_) protected voiddropCustomDeathLoot(DamageSource p_21385_, int p_21386_, boolean p_21387_) protected voiddropFromLootTable(DamageSource p_21389_, boolean p_21390_) voiddropLeash(boolean p_21456_, boolean p_21457_) protected voidenchantSpawnedArmor(RandomSource p_217052_, float p_217053_, EquipmentSlot p_217054_) protected voidenchantSpawnedWeapon(RandomSource p_217049_, float p_217050_) equipItemIfPossible(ItemStack p_255842_) finalizeSpawn(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, MobSpawnType p_21436_, SpawnGroupData p_21437_, CompoundTag p_21438_) Deprecated.protected SoundEventintprotected AABBprotected ResourceLocationprotected floatgetEquipmentDropChance(EquipmentSlot p_21520_) static ItemgetEquipmentForSlot(EquipmentSlot p_21413_, int p_21414_) intintgetItemBySlot(EquipmentSlot p_21467_) final ResourceLocationlongintintintintfloatgetPathfindingMalus(BlockPathTypes p_21440_) protected Vec3ifloatfinal MobSpawnTypeReturns the type of spawn that created this mob, if applicable.voidhandleEntityEvent(byte p_21375_) booleanfinal InteractionResultinteract(Player p_21420_, InteractionHand p_21421_) booleanbooleanbooleanbooleanbooleanisMaxGroupSizeReached(int p_21489_) booleanisNoAi()booleanfinal booleanThis method exists so that spawns can be cancelled from theFinalizeSpawnEventwithout needing to hook up an additional handler for theEntityJoinLevelEvent.protected booleanbooleanisWithinMeleeAttackRange(LivingEntity p_217067_) booleanbooleanisWithinRestriction(BlockPos p_21445_) voidjumpInFluid(FluidType type) Performs what to do when an entity attempts to go up or "jump" in a fluid.protected voidjumpInLiquid(TagKey<Fluid> p_204045_) Deprecated.private voidjumpInLiquidInternal(Runnable onSuper) voidprivate voidmaybeDisableShield(Player p_21425_, ItemStack p_21426_, ItemStack p_21427_) protected InteractionResultmobInteract(Player p_21472_, InteractionHand p_21473_) protected voidonOffspringSpawnedFromEgg(Player p_21422_, Mob p_21423_) voidvoidprotected voidpickUpItem(ItemEntity p_21471_) voidprotected voidplayHurtSound(DamageSource p_21493_) protected voidpopulateDefaultEquipmentEnchantments(RandomSource p_217063_, DifficultyInstance p_217064_) protected voidpopulateDefaultEquipmentSlots(RandomSource p_217055_, DifficultyInstance p_217056_) voidreadAdditionalSaveData(CompoundTag p_21450_) protected voidprotected voidvoidremoveAllGoals(Predicate<Goal> p_262667_) voidbooleanremoveWhenFarAway(double p_21542_) booleanprivate voidprivate voidvoidrestrictTo(BlockPos p_21447_, int p_21448_) private floatrotlerp(float p_21377_, float p_21378_, float p_21379_) protected voidprotected final voidvoidsetAggressive(boolean p_21562_) voidsetBaby(boolean p_21451_) voidsetCanPickUpLoot(boolean p_21554_) voidsetDelayedLeashHolderId(int p_21507_) voidsetDropChance(EquipmentSlot p_21410_, float p_21411_) voidsetGuaranteedDrop(EquipmentSlot p_21509_) voidsetItemSlot(EquipmentSlot p_21416_, ItemStack p_21417_) protected voidsetItemSlotAndDropWhenKilled(EquipmentSlot p_21469_, ItemStack p_21470_) voidsetLeashedTo(Entity p_21464_, boolean p_21465_) voidsetLeftHanded(boolean p_21560_) voidsetNoAi(boolean p_21558_) voidsetPathfindingMalus(BlockPathTypes p_21442_, float p_21443_) voidfinal voidsetSpawnCancelled(boolean cancel) Marks this mob as being disallowed to spawn duringLevelWriter.addFreshEntity(Entity).voidsetSpeed(float p_21556_) voidsetTarget(LivingEntity p_21544_) voidsetXxa(float p_21571_) voidsetYya(float p_21568_) voidsetZza(float p_21565_) protected booleanprotected booleanvoidbooleanstartRiding(Entity p_21396_, boolean p_21397_) voidtick()protected floattickHeadTurn(float p_21538_, float p_21539_) protected voidprotected voidbooleanwantsToPickUp(ItemStack p_21546_) Methods inherited from class net.minecraft.world.entity.LivingEntityactuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getHurtSound, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, ridingOffset, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntitycanDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
- 
Field Details- 
DATA_MOB_FLAGS_ID
- 
MOB_FLAG_NO_AIprivate static final int MOB_FLAG_NO_AI- See Also:
 
- 
MOB_FLAG_LEFTHANDEDprivate static final int MOB_FLAG_LEFTHANDED- See Also:
 
- 
MOB_FLAG_AGGRESSIVEprivate static final int MOB_FLAG_AGGRESSIVE- See Also:
 
- 
PICKUP_REACHprotected static final int PICKUP_REACH- See Also:
 
- 
ITEM_PICKUP_REACH
- 
MAX_WEARING_ARMOR_CHANCEpublic static final float MAX_WEARING_ARMOR_CHANCE- See Also:
 
- 
MAX_PICKUP_LOOT_CHANCEpublic static final float MAX_PICKUP_LOOT_CHANCE- See Also:
 
- 
MAX_ENCHANTED_ARMOR_CHANCEpublic static final float MAX_ENCHANTED_ARMOR_CHANCE- See Also:
 
- 
MAX_ENCHANTED_WEAPON_CHANCEpublic static final float MAX_ENCHANTED_WEAPON_CHANCE- See Also:
 
- 
LEASH_TAG- See Also:
 
- 
DEFAULT_EQUIPMENT_DROP_CHANCEpublic static final float DEFAULT_EQUIPMENT_DROP_CHANCE- See Also:
 
- 
PRESERVE_ITEM_DROP_CHANCEpublic static final int PRESERVE_ITEM_DROP_CHANCE- See Also:
 
- 
UPDATE_GOAL_SELECTOR_EVERY_N_TICKSpublic static final int UPDATE_GOAL_SELECTOR_EVERY_N_TICKS- See Also:
 
- 
DEFAULT_ATTACK_REACHprivate static final double DEFAULT_ATTACK_REACH
- 
ambientSoundTimepublic int ambientSoundTime
- 
xpRewardprotected int xpReward
- 
lookControl
- 
moveControl
- 
jumpControl
- 
bodyRotationControl
- 
goalSelector
- 
targetSelector
- 
target
- 
sensing
- 
handItems
- 
handDropChancesprotected final float[] handDropChances
- 
armorItems
- 
armorDropChancesprotected final float[] armorDropChances
- 
canPickUpLootprivate boolean canPickUpLoot
- 
persistenceRequiredprivate boolean persistenceRequired
- 
pathfindingMalus
- 
lootTable
- 
lootTableSeedprivate long lootTableSeed
- 
leashHolder
- 
delayedLeashHolderIdprivate int delayedLeashHolderId
- 
leashInfoTag
- 
restrictCenter
- 
restrictRadiusprivate float restrictRadius
- 
spawnType
- 
spawnCancelledprivate boolean spawnCancelled
 
- 
- 
Constructor Details- 
Mob
 
- 
- 
Method Details- 
registerGoalsprotected void registerGoals()
- 
createMobAttributes
- 
shouldPassengersInheritMalusprotected boolean shouldPassengersInheritMalus()
- 
getPathfindingMalus
- 
setPathfindingMalus
- 
onPathfindingStartpublic void onPathfindingStart()
- 
onPathfindingDonepublic void onPathfindingDone()
- 
createBodyControl
- 
getLookControl
- 
getMoveControl
- 
getJumpControl
- 
getControllingPassenger- Overrides:
- getControllingPassengerin class- Entity
 
- 
getSensing
- 
getTarget
- 
setTarget
- 
canAttackType- Overrides:
- canAttackTypein class- LivingEntity
 
- 
canFireProjectileWeapon
- 
atepublic void ate()
- 
defineSynchedDataprotected void defineSynchedData()- Overrides:
- defineSynchedDatain class- LivingEntity
 
- 
getAmbientSoundIntervalpublic int getAmbientSoundInterval()
- 
playAmbientSoundpublic void playAmbientSound()
- 
baseTickpublic void baseTick()- Overrides:
- baseTickin class- LivingEntity
 
- 
playHurtSound- Overrides:
- playHurtSoundin class- LivingEntity
 
- 
resetAmbientSoundTimeprivate void resetAmbientSoundTime()
- 
getExperienceRewardpublic int getExperienceReward()- Overrides:
- getExperienceRewardin class- LivingEntity
 
- 
spawnAnimpublic void spawnAnim()
- 
handleEntityEventpublic void handleEntityEvent(byte p_21375_) - Overrides:
- handleEntityEventin class- LivingEntity
 
- 
tickpublic void tick()- Overrides:
- tickin class- LivingEntity
 
- 
updateControlFlagsprotected void updateControlFlags()
- 
tickHeadTurnprotected float tickHeadTurn(float p_21538_, float p_21539_) - Overrides:
- tickHeadTurnin class- LivingEntity
 
- 
getAmbientSound
- 
addAdditionalSaveData- Overrides:
- addAdditionalSaveDatain class- LivingEntity
 
- 
readAdditionalSaveData- Overrides:
- readAdditionalSaveDatain class- LivingEntity
 
- 
dropFromLootTable- Overrides:
- dropFromLootTablein class- LivingEntity
 
- 
getLootTable- Overrides:
- getLootTablein class- LivingEntity
 
- 
getDefaultLootTable
- 
getLootTableSeedpublic long getLootTableSeed()- Overrides:
- getLootTableSeedin class- LivingEntity
 
- 
setZzapublic void setZza(float p_21565_) 
- 
setYyapublic void setYya(float p_21568_) 
- 
setXxapublic void setXxa(float p_21571_) 
- 
setSpeedpublic void setSpeed(float p_21556_) - Overrides:
- setSpeedin class- LivingEntity
 
- 
aiSteppublic void aiStep()- Overrides:
- aiStepin class- LivingEntity
 
- 
getPickupReach
- 
pickUpItem
- 
equipItemIfPossible
- 
setItemSlotAndDropWhenKilled
- 
setGuaranteedDrop
- 
canReplaceCurrentItem
- 
canReplaceEqualItem
- 
canHoldItem
- 
wantsToPickUp
- 
removeWhenFarAwaypublic boolean removeWhenFarAway(double p_21542_) 
- 
requiresCustomPersistencepublic boolean requiresCustomPersistence()
- 
shouldDespawnInPeacefulprotected boolean shouldDespawnInPeaceful()
- 
checkDespawnpublic void checkDespawn()- Overrides:
- checkDespawnin class- Entity
 
- 
serverAiStepprotected final void serverAiStep()- Overrides:
- serverAiStepin class- LivingEntity
 
- 
sendDebugPacketsprotected void sendDebugPackets()
- 
customServerAiStepprotected void customServerAiStep()
- 
getMaxHeadXRotpublic int getMaxHeadXRot()
- 
getMaxHeadYRotpublic int getMaxHeadYRot()
- 
getHeadRotSpeedpublic int getHeadRotSpeed()
- 
lookAt
- 
rotlerpprivate float rotlerp(float p_21377_, float p_21378_, float p_21379_) 
- 
checkMobSpawnRulespublic static boolean checkMobSpawnRules(EntityType<? extends Mob> p_217058_, LevelAccessor p_217059_, MobSpawnType p_217060_, BlockPos p_217061_, RandomSource p_217062_) 
- 
checkSpawnRules
- 
checkSpawnObstruction
- 
getMaxSpawnClusterSizepublic int getMaxSpawnClusterSize()
- 
isMaxGroupSizeReachedpublic boolean isMaxGroupSizeReached(int p_21489_) 
- 
getMaxFallDistancepublic int getMaxFallDistance()- Overrides:
- getMaxFallDistancein class- Entity
 
- 
getHandSlots- Overrides:
- getHandSlotsin class- Entity
 
- 
getArmorSlots- Specified by:
- getArmorSlotsin class- LivingEntity
 
- 
getItemBySlot- Specified by:
- getItemBySlotin class- LivingEntity
 
- 
setItemSlot- Specified by:
- setItemSlotin class- LivingEntity
 
- 
dropCustomDeathLoot- Overrides:
- dropCustomDeathLootin class- LivingEntity
 
- 
getEquipmentDropChance
- 
populateDefaultEquipmentSlots
- 
getEquipmentForSlot
- 
populateDefaultEquipmentEnchantmentsprotected void populateDefaultEquipmentEnchantments(RandomSource p_217063_, DifficultyInstance p_217064_) 
- 
enchantSpawnedWeapon
- 
enchantSpawnedArmorprotected void enchantSpawnedArmor(RandomSource p_217052_, float p_217053_, EquipmentSlot p_217054_) 
- 
finalizeSpawn@Deprecated @OverrideOnly @Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, MobSpawnType p_21436_, @Nullable SpawnGroupData p_21437_, @Nullable CompoundTag p_21438_) Deprecated.Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
 Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
 Vanilla calls are replaced with a transformer, and are not visible in source.
 Be certain to either call super.finalizeSpawn or set the spawnTypefield from within your override.
- 
setPersistenceRequiredpublic void setPersistenceRequired()
- 
setDropChance
- 
canPickUpLootpublic boolean canPickUpLoot()
- 
setCanPickUpLootpublic void setCanPickUpLoot(boolean p_21554_) 
- 
canTakeItem- Overrides:
- canTakeItemin class- LivingEntity
 
- 
isPersistenceRequiredpublic boolean isPersistenceRequired()
- 
interact
- 
checkAndHandleImportantInteractionsprivate InteractionResult checkAndHandleImportantInteractions(Player p_21500_, InteractionHand p_21501_) 
- 
onOffspringSpawnedFromEgg
- 
mobInteract
- 
isWithinRestrictionpublic boolean isWithinRestriction()
- 
isWithinRestriction
- 
restrictTo
- 
getRestrictCenter
- 
getRestrictRadiuspublic float getRestrictRadius()
- 
clearRestrictionpublic void clearRestriction()
- 
hasRestrictionpublic boolean hasRestriction()
- 
convertTo
- 
tickLeashprotected void tickLeash()
- 
dropLeashpublic void dropLeash(boolean p_21456_, boolean p_21457_) 
- 
canBeLeashed
- 
isLeashedpublic boolean isLeashed()
- 
getLeashHolder
- 
setLeashedTo
- 
setDelayedLeashHolderIdpublic void setDelayedLeashHolderId(int p_21507_) 
- 
startRiding- Overrides:
- startRidingin class- Entity
 
- 
restoreLeashFromSaveprivate void restoreLeashFromSave()
- 
isEffectiveAipublic boolean isEffectiveAi()- Overrides:
- isEffectiveAiin class- Entity
 
- 
setNoAipublic void setNoAi(boolean p_21558_) 
- 
setLeftHandedpublic void setLeftHanded(boolean p_21560_) 
- 
setAggressivepublic void setAggressive(boolean p_21562_) 
- 
isNoAipublic boolean isNoAi()
- 
isLeftHandedpublic boolean isLeftHanded()
- 
isAggressivepublic boolean isAggressive()
- 
setBabypublic void setBaby(boolean p_21451_) 
- 
getMainArm- Specified by:
- getMainArmin class- LivingEntity
 
- 
isWithinMeleeAttackRange
- 
getAttackBoundingBox
- 
doHurtTarget- Overrides:
- doHurtTargetin class- LivingEntity
 
- 
maybeDisableShield
- 
isSunBurnTickprotected boolean isSunBurnTick()
- 
jumpInLiquidDeprecated.- Overrides:
- jumpInLiquidin class- LivingEntity
 
- 
jumpInLiquidInternal
- 
jumpInFluidDescription copied from interface:IForgeLivingEntityPerforms what to do when an entity attempts to go up or "jump" in a fluid.- Specified by:
- jumpInFluidin interface- IForgeLivingEntity
- Parameters:
- type- the type of the fluid
 
- 
removeFreeWillpublic void removeFreeWill()
- 
removeAllGoals
- 
removeAfterChangingDimensionsprotected void removeAfterChangingDimensions()- Overrides:
- removeAfterChangingDimensionsin class- Entity
 
- 
getPickResult- Overrides:
- getPickResultin class- Entity
 
- 
getSpawnTypeReturns the type of spawn that created this mob, if applicable. If it could not be determined, this will return null.This is set via finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag), so you should not call this from within that method, instead using the parameter.
- 
isSpawnCancelled@Internal public final boolean isSpawnCancelled()This method exists so that spawns can be cancelled from theFinalizeSpawnEventwithout needing to hook up an additional handler for theEntityJoinLevelEvent.- Returns:
- if this mob will be blocked from spawning during LevelWriter.addFreshEntity(Entity)
- API Note:
- Not public-facing API.
 
- 
setSpawnCancelled@Internal public final void setSpawnCancelled(boolean cancel) Marks this mob as being disallowed to spawn duringLevelWriter.addFreshEntity(Entity).- Throws:
- UnsupportedOperationException- if this entity has already been- added to the world.
- API Note:
- Not public-facing API.
 
 
-