public abstract class EntityLiving extends EntityLivingBase
| Modifier and Type | Field and Description |
|---|---|
protected int |
experienceValue |
protected float[] |
inventoryArmorDropChances |
protected float[] |
inventoryHandsDropChances |
protected EntityJumpHelper |
jumpHelper |
int |
livingSoundTime |
protected EntityLookHelper |
lookHelper |
protected EntityMoveHelper |
moveHelper |
protected PathNavigate |
navigator |
EntityAITasks |
targetTasks |
EntityAITasks |
tasks |
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, field_208001_bq, field_208002_br, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world| Modifier | Constructor and Description |
|---|---|
protected |
EntityLiving(EntityType<?> type,
World worldIn) |
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityFrom, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dismountEntity, fall, frostWalk, func_195061_cb, func_203010_cG, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getDeathSound, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getHurtSound, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, getYaw, hasItemInSlot, heal, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, isSpinAttacking, jump, knockBack, lerp, lookAt, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, remove, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setHeadRotation, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spinAttack, startSpinAttack, stopActiveHand, stopRiding, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPermissionLevel, getPitch, getPitchYaw, getPortalCooldown, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getYOffset, handleFluidAcceleration, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isSwimming, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, read, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapabilitypublic int livingSoundTime
protected int experienceValue
protected EntityLookHelper lookHelper
protected EntityMoveHelper moveHelper
protected EntityJumpHelper jumpHelper
protected PathNavigate navigator
public final EntityAITasks tasks
public final EntityAITasks targetTasks
protected float[] inventoryHandsDropChances
protected float[] inventoryArmorDropChances
protected EntityLiving(EntityType<?> type, World worldIn)
protected void initEntityAI()
protected void registerAttributes()
registerAttributes in class EntityLivingBaseprotected PathNavigate createNavigator(World worldIn)
public float getPathPriority(PathNodeType nodeType)
public void setPathPriority(PathNodeType nodeType, float priority)
protected EntityBodyHelper createBodyHelper()
public EntityLookHelper getLookHelper()
public EntityMoveHelper getMoveHelper()
public EntityJumpHelper getJumpHelper()
public PathNavigate getNavigator()
public EntitySenses getEntitySenses()
@Nullable public EntityLivingBase getAttackTarget()
public void setAttackTarget(@Nullable
EntityLivingBase entitylivingbaseIn)
public boolean canAttackClass(java.lang.Class<? extends EntityLivingBase> cls)
public void eatGrassBonus()
protected void registerData()
registerData in class EntityLivingBasepublic int getTalkInterval()
public void playAmbientSound()
public void baseTick()
baseTick in class EntityLivingBaseprotected void playHurtSound(DamageSource source)
playHurtSound in class EntityLivingBaseprotected int getExperiencePoints(EntityPlayer player)
getExperiencePoints in class EntityLivingBasepublic void spawnExplosionParticle()
public void handleStatusUpdate(byte id)
handleStatusUpdate in class EntityLivingBasepublic void tick()
tick in class EntityLivingBaseprotected float updateDistance(float p_110146_1_,
float p_110146_2_)
updateDistance in class EntityLivingBase@Nullable protected SoundEvent getAmbientSound()
@Nullable protected Item getDropItem()
protected void dropFewItems(boolean wasRecentlyHit,
int lootingModifier)
dropFewItems in class EntityLivingBasepublic void writeAdditional(NBTTagCompound compound)
writeAdditional in class EntityLivingBasepublic void readAdditional(NBTTagCompound compound)
readAdditional in class EntityLivingBase@Nullable protected ResourceLocation getLootTable()
protected void dropLoot(boolean wasRecentlyHit,
int lootingModifier,
DamageSource source)
dropLoot in class EntityLivingBasepublic void setMoveForward(float amount)
public void setMoveVertical(float amount)
public void setMoveStrafing(float amount)
public void setAIMoveSpeed(float speedIn)
setAIMoveSpeed in class EntityLivingBasepublic void livingTick()
livingTick in class EntityLivingBaseprotected void updateEquipmentIfNeeded(EntityItem itemEntity)
protected boolean shouldExchangeEquipment(ItemStack candidate, ItemStack existing, EntityEquipmentSlot p_208003_3_)
protected boolean canEquipItem(ItemStack stack)
public boolean canDespawn()
protected void checkDespawn()
protected final void updateEntityActionState()
updateEntityActionState in class EntityLivingBaseprotected void updateAITasks()
public int getVerticalFaceSpeed()
public int getHorizontalFaceSpeed()
public void faceEntity(Entity entityIn, float maxYawIncrease, float maxPitchIncrease)
public boolean canSpawn(IWorld worldIn, boolean p_205020_2_)
public final boolean isNotColliding()
public boolean isNotColliding(IWorldReaderBase worldIn)
public float getRenderSizeModifier()
public int getMaxSpawnedInChunk()
public boolean func_204209_c(int p_204209_1_)
public int getMaxFallHeight()
getMaxFallHeight in class Entitypublic java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment in class Entitypublic java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList in class EntityLivingBasepublic ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
getItemStackFromSlot in class EntityLivingBasepublic void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack)
setItemStackToSlot in class EntityLivingBaseprotected void dropEquipment(boolean wasRecentlyHit,
int lootingModifier)
dropEquipment in class EntityLivingBaseprotected float getDropChance(EntityEquipmentSlot p_205712_1_)
protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
public static EntityEquipmentSlot getSlotForItemStack(ItemStack stack)
@Nullable public static Item getArmorByChance(EntityEquipmentSlot slotIn, int chance)
protected void setEnchantmentBasedOnDifficulty(DifficultyInstance difficulty)
@Nullable public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData entityLivingData, @Nullable NBTTagCompound itemNbt)
public boolean canBeSteered()
public void enablePersistence()
public void setDropChance(EntityEquipmentSlot slotIn, float chance)
public boolean canPickUpLoot()
public void setCanPickUpLoot(boolean canPickup)
public boolean isNoDespawnRequired()
public final boolean processInitialInteract(EntityPlayer player, EnumHand hand)
processInitialInteract in class Entityprotected boolean processInteract(EntityPlayer player, EnumHand hand)
protected void updateLeashedState()
public void clearLeashed(boolean sendPacket,
boolean dropLead)
public boolean canBeLeashedTo(EntityPlayer player)
public boolean getLeashed()
public Entity getLeashHolder()
public void setLeashHolder(Entity entityIn, boolean sendAttachNotification)
public boolean startRiding(Entity entityIn, boolean force)
startRiding in class Entitypublic boolean replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn)
replaceItemInInventory in class Entitypublic boolean canPassengerSteer()
canPassengerSteer in class Entitypublic static boolean isItemStackInSlot(EntityEquipmentSlot slotIn, ItemStack stack)
public boolean isServerWorld()
isServerWorld in class EntityLivingBasepublic void setNoAI(boolean disable)
public void setLeftHanded(boolean leftHanded)
public boolean isAIDisabled()
public boolean isLeftHanded()
public EnumHandSide getPrimaryHand()
getPrimaryHand in class EntityLivingBasepublic boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob in class EntityLivingBaseprotected boolean isInDaylight()
protected void handleFluidJump(Tag<Fluid> p_180466_1_)
handleFluidJump in class EntityLivingBase