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,EntityAccess,Nameable,ICapabilityProvider,ICapabilityProviderImpl<Entity>,ICapabilitySerializable<CompoundTag>,IForgeEntity,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
AmbientCreature,EnderDragon,FlyingMob,PathfinderMob,Slime
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected final float[]private final NonNullList<ItemStack>private final BodyRotationControlprivate booleanprivate static final EntityDataAccessor<Byte>static final floatprivate intfinal GoalSelectorprotected final float[]private final NonNullList<ItemStack>protected 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 booleanprivate static final intprivate BlockPosprivate floatprivate final Sensingprivate LivingEntityfinal GoalSelectorstatic final intprotected intFields inherited from class net.minecraft.world.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, 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, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, 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, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_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, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, 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.CommandSource
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag p_21484_) voidaiStep()voidate()voidbaseTick()booleancanAttackType(EntityType<?> p_21399_) booleanbooleancanBeLeashed(Player p_21418_) booleancanCutCorner(BlockPathTypes p_21482_) 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_21401_, LevelAccessor p_21402_, MobSpawnType p_21403_, BlockPos p_21404_, Random p_21405_) booleancheckSpawnObstruction(LevelReader p_21433_) booleancheckSpawnRules(LevelAccessor p_21431_, MobSpawnType p_21432_) void<T extends Mob>
TconvertTo(EntityType<T> p_21407_, boolean p_21408_) protected BodyRotationControlprotected LootContext.BuildercreateLootContext(boolean p_21453_, DamageSource p_21454_) static 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(float p_21381_, EquipmentSlot p_21382_) protected voidenchantSpawnedWeapon(float p_21572_) booleanequipItemIfPossible(ItemStack p_21541_) finalizeSpawn(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, MobSpawnType p_21436_, SpawnGroupData p_21437_, CompoundTag p_21438_) protected SoundEventintprotected ResourceLocationprotected floatgetEquipmentDropChance(EquipmentSlot p_21520_) static ItemgetEquipmentForSlot(EquipmentSlot p_21413_, int p_21414_) protected intgetExperienceReward(Player p_21511_) intgetItemBySlot(EquipmentSlot p_21467_) final ResourceLocationintintintintdoublegetMeleeAttackRangeSqr(LivingEntity p_147273_) floatgetPathfindingMalus(BlockPathTypes p_21440_) floatvoidhandleEntityEvent(byte p_21375_) booleanfinal InteractionResultinteract(Player p_21420_, InteractionHand p_21421_) booleanbooleanbooleanbooleanbooleanbooleanisMaxGroupSizeReached(int p_21489_) booleanisNoAi()booleanprotected booleanbooleanbooleanisWithinRestriction(BlockPos p_21445_) protected voidjumpInLiquid(TagKey<Fluid> p_204045_) 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_) protected voidpickUpItem(ItemEntity p_21471_) voidprotected voidplayHurtSound(DamageSource p_21493_) protected voidprotected voidvoidreadAdditionalSaveData(CompoundTag p_21450_) protected voidprotected voidvoidbooleanremoveWhenFarAway(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_) voidvoidsetSpeed(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.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipEventAndSound, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getHealth, getHurtSound, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, 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, lerpHeadTo, lerpTo, lookAt, makeBrain, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, outOfWorld, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItemMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, eyeBlockPosition, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGameEventListenerRegistrar, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLevel, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, 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, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, occludesVibrations, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, refreshDimensions, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, setPacketCoordinates, setPacketCoordinates, 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, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimmingMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getParts, getPickedResult, getStepHeight, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
DATA_MOB_FLAGS_ID
-
MOB_FLAG_NO_AI
private static final int MOB_FLAG_NO_AI- See Also:
-
MOB_FLAG_LEFTHANDED
private static final int MOB_FLAG_LEFTHANDED- See Also:
-
MOB_FLAG_AGGRESSIVE
private static final int MOB_FLAG_AGGRESSIVE- See Also:
-
MAX_WEARING_ARMOR_CHANCE
public static final float MAX_WEARING_ARMOR_CHANCE- See Also:
-
MAX_PICKUP_LOOT_CHANCE
public static final float MAX_PICKUP_LOOT_CHANCE- See Also:
-
MAX_ENCHANTED_ARMOR_CHANCE
public static final float MAX_ENCHANTED_ARMOR_CHANCE- See Also:
-
MAX_ENCHANTED_WEAPON_CHANCE
public static final float MAX_ENCHANTED_WEAPON_CHANCE- See Also:
-
LEASH_TAG
- See Also:
-
PICKUP_REACH
private static final int PICKUP_REACH- See Also:
-
DEFAULT_EQUIPMENT_DROP_CHANCE
public static final float DEFAULT_EQUIPMENT_DROP_CHANCE- See Also:
-
UPDATE_GOAL_SELECTOR_EVERY_N_TICKS
public static final int UPDATE_GOAL_SELECTOR_EVERY_N_TICKS- See Also:
-
ambientSoundTime
public int ambientSoundTime -
xpReward
protected int xpReward -
lookControl
-
moveControl
-
jumpControl
-
bodyRotationControl
-
goalSelector
-
targetSelector
-
target
-
sensing
-
handItems
-
handDropChances
protected final float[] handDropChances -
armorItems
-
armorDropChances
protected final float[] armorDropChances -
canPickUpLoot
private boolean canPickUpLoot -
persistenceRequired
private boolean persistenceRequired -
pathfindingMalus
-
lootTable
-
lootTableSeed
private long lootTableSeed -
leashHolder
-
delayedLeashHolderId
private int delayedLeashHolderId -
leashInfoTag
-
restrictCenter
-
restrictRadius
private float restrictRadius
-
-
Constructor Details
-
Mob
-
-
Method Details
-
registerGoals
protected void registerGoals() -
createMobAttributes
-
shouldPassengersInheritMalus
protected boolean shouldPassengersInheritMalus() -
getPathfindingMalus
-
setPathfindingMalus
-
canCutCorner
-
createBodyControl
-
getLookControl
-
getMoveControl
-
getJumpControl
-
getSensing
-
getTarget
-
setTarget
-
canAttackType
- Overrides:
canAttackTypein classLivingEntity
-
canFireProjectileWeapon
-
ate
public void ate() -
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classLivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval() -
playAmbientSound
public void playAmbientSound() -
baseTick
public void baseTick()- Overrides:
baseTickin classLivingEntity
-
playHurtSound
- Overrides:
playHurtSoundin classLivingEntity
-
resetAmbientSoundTime
private void resetAmbientSoundTime() -
getExperienceReward
- Overrides:
getExperienceRewardin classLivingEntity
-
spawnAnim
public void spawnAnim() -
handleEntityEvent
public void handleEntityEvent(byte p_21375_) - Overrides:
handleEntityEventin classLivingEntity
-
tick
public void tick()- Overrides:
tickin classLivingEntity
-
updateControlFlags
protected void updateControlFlags() -
tickHeadTurn
protected float tickHeadTurn(float p_21538_, float p_21539_) - Overrides:
tickHeadTurnin classLivingEntity
-
getAmbientSound
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
dropFromLootTable
- Overrides:
dropFromLootTablein classLivingEntity
-
createLootContext
- Overrides:
createLootContextin classLivingEntity
-
getLootTable
- Overrides:
getLootTablein classLivingEntity
-
getDefaultLootTable
-
setZza
public void setZza(float p_21565_) -
setYya
public void setYya(float p_21568_) -
setXxa
public void setXxa(float p_21571_) -
setSpeed
public void setSpeed(float p_21556_) - Overrides:
setSpeedin classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStepin classLivingEntity
-
pickUpItem
-
equipItemIfPossible
-
setItemSlotAndDropWhenKilled
-
setGuaranteedDrop
-
canReplaceCurrentItem
-
canReplaceEqualItem
-
canHoldItem
-
wantsToPickUp
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_21542_) -
requiresCustomPersistence
public boolean requiresCustomPersistence() -
shouldDespawnInPeaceful
protected boolean shouldDespawnInPeaceful() -
checkDespawn
public void checkDespawn()- Overrides:
checkDespawnin classEntity
-
serverAiStep
protected final void serverAiStep()- Overrides:
serverAiStepin classLivingEntity
-
sendDebugPackets
protected void sendDebugPackets() -
customServerAiStep
protected void customServerAiStep() -
getMaxHeadXRot
public int getMaxHeadXRot() -
getMaxHeadYRot
public int getMaxHeadYRot() -
getHeadRotSpeed
public int getHeadRotSpeed() -
lookAt
-
rotlerp
private float rotlerp(float p_21377_, float p_21378_, float p_21379_) -
checkMobSpawnRules
public static boolean checkMobSpawnRules(EntityType<? extends Mob> p_21401_, LevelAccessor p_21402_, MobSpawnType p_21403_, BlockPos p_21404_, Random p_21405_) -
checkSpawnRules
-
checkSpawnObstruction
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize() -
isMaxGroupSizeReached
public boolean isMaxGroupSizeReached(int p_21489_) -
getMaxFallDistance
public int getMaxFallDistance()- Overrides:
getMaxFallDistancein classEntity
-
getHandSlots
- Overrides:
getHandSlotsin classEntity
-
getArmorSlots
- Specified by:
getArmorSlotsin classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlotin classLivingEntity
-
setItemSlot
- Specified by:
setItemSlotin classLivingEntity
-
dropCustomDeathLoot
- Overrides:
dropCustomDeathLootin classLivingEntity
-
getEquipmentDropChance
-
populateDefaultEquipmentSlots
-
getEquipmentForSlot
-
populateDefaultEquipmentEnchantments
-
enchantSpawnedWeapon
protected void enchantSpawnedWeapon(float p_21572_) -
enchantSpawnedArmor
-
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, MobSpawnType p_21436_, @Nullable SpawnGroupData p_21437_, @Nullable CompoundTag p_21438_) -
canBeControlledByRider
public boolean canBeControlledByRider() -
setPersistenceRequired
public void setPersistenceRequired() -
setDropChance
-
canPickUpLoot
public boolean canPickUpLoot() -
setCanPickUpLoot
public void setCanPickUpLoot(boolean p_21554_) -
canTakeItem
- Overrides:
canTakeItemin classLivingEntity
-
isPersistenceRequired
public boolean isPersistenceRequired() -
interact
-
checkAndHandleImportantInteractions
private InteractionResult checkAndHandleImportantInteractions(Player p_21500_, InteractionHand p_21501_) -
onOffspringSpawnedFromEgg
-
mobInteract
-
isWithinRestriction
public boolean isWithinRestriction() -
isWithinRestriction
-
restrictTo
-
getRestrictCenter
-
getRestrictRadius
public float getRestrictRadius() -
clearRestriction
public void clearRestriction() -
hasRestriction
public boolean hasRestriction() -
convertTo
-
tickLeash
protected void tickLeash() -
dropLeash
public void dropLeash(boolean p_21456_, boolean p_21457_) -
canBeLeashed
-
isLeashed
public boolean isLeashed() -
getLeashHolder
-
setLeashedTo
-
setDelayedLeashHolderId
public void setDelayedLeashHolderId(int p_21507_) -
startRiding
- Overrides:
startRidingin classEntity
-
restoreLeashFromSave
private void restoreLeashFromSave() -
isControlledByLocalInstance
public boolean isControlledByLocalInstance()- Overrides:
isControlledByLocalInstancein classEntity
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin classLivingEntity
-
setNoAi
public void setNoAi(boolean p_21558_) -
setLeftHanded
public void setLeftHanded(boolean p_21560_) -
setAggressive
public void setAggressive(boolean p_21562_) -
isNoAi
public boolean isNoAi() -
isLeftHanded
public boolean isLeftHanded() -
isAggressive
public boolean isAggressive() -
setBaby
public void setBaby(boolean p_21451_) -
getMainArm
- Specified by:
getMainArmin classLivingEntity
-
getMeleeAttackRangeSqr
-
doHurtTarget
- Overrides:
doHurtTargetin classLivingEntity
-
maybeDisableShield
-
isSunBurnTick
protected boolean isSunBurnTick() -
jumpInLiquid
- Overrides:
jumpInLiquidin classLivingEntity
-
removeFreeWill
public void removeFreeWill() -
removeAfterChangingDimensions
protected void removeAfterChangingDimensions()- Overrides:
removeAfterChangingDimensionsin classEntity
-
getPickResult
- Overrides:
getPickResultin classEntity
-