public abstract class EntityLiving extends EntityLivingBase
Modifier and Type | Class and Description |
---|---|
static class |
EntityLiving.SpawnPlacementType |
Modifier and Type | Field and Description |
---|---|
protected int |
experienceValue |
protected float[] |
inventoryArmorDropChances |
protected float[] |
inventoryHandsDropChances |
protected EntityJumpHelper |
jumpHelper |
int |
livingSoundTime |
protected EntityMoveHelper |
moveHelper |
protected PathNavigate |
navigator |
EntityAITasks |
targetTasks |
EntityAITasks |
tasks |
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, HAND_STATES, hurtTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityLiving(World worldIn) |
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attackEntityFrom, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getDeathSound, getEntityAttribute, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getHurtSound, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, handleJumpLava, handleJumpWater, hasCapability, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, moveEntityWithHeading, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, performHurtAnimation, playEquipSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRidden
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTriggerWalking, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public int livingSoundTime
protected int experienceValue
protected EntityMoveHelper moveHelper
protected EntityJumpHelper jumpHelper
protected PathNavigate navigator
public final EntityAITasks tasks
public final EntityAITasks targetTasks
protected float[] inventoryHandsDropChances
protected float[] inventoryArmorDropChances
public EntityLiving(World worldIn)
protected void initEntityAI()
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLivingBase
protected PathNavigate getNewNavigator(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 entityInit()
entityInit
in class EntityLivingBase
public int getTalkInterval()
public void playLivingSound()
public void onEntityUpdate()
onEntityUpdate
in class EntityLivingBase
protected void playHurtSound(DamageSource source)
playHurtSound
in class EntityLivingBase
protected int getExperiencePoints(EntityPlayer player)
getExperiencePoints
in class EntityLivingBase
public void spawnExplosionParticle()
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityLivingBase
protected 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 EntityLivingBase
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityLivingBase
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityLivingBase
@Nullable protected ResourceLocation getLootTable()
protected void dropLoot(boolean wasRecentlyHit, int lootingModifier, DamageSource source)
dropLoot
in class EntityLivingBase
public void setMoveForward(float amount)
public void setMoveStrafing(float amount)
public void setAIMoveSpeed(float speedIn)
setAIMoveSpeed
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityLivingBase
protected void updateEquipmentIfNeeded(EntityItem itemEntity)
protected boolean canEquipItem(ItemStack stack)
protected boolean canDespawn()
protected void despawnEntity()
protected final void updateEntityActionState()
updateEntityActionState
in class EntityLivingBase
protected void updateAITasks()
public int getVerticalFaceSpeed()
public int getHorizontalFaceSpeed()
public void faceEntity(Entity entityIn, float maxYawIncrease, float maxPitchIncrease)
public boolean getCanSpawnHere()
public boolean isNotColliding()
public float getRenderSizeModifier()
public int getMaxSpawnedInChunk()
public int getMaxFallHeight()
getMaxFallHeight
in class Entity
public java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment
in class Entity
public java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class EntityLivingBase
@Nullable public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
getItemStackFromSlot
in class EntityLivingBase
public void setItemStackToSlot(EntityEquipmentSlot slotIn, @Nullable ItemStack stack)
setItemStackToSlot
in class EntityLivingBase
protected void dropEquipment(boolean wasRecentlyHit, int lootingModifier)
dropEquipment
in class EntityLivingBase
protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
public static EntityEquipmentSlot getSlotForItemStack(ItemStack stack)
public static Item getArmorByChance(EntityEquipmentSlot slotIn, int chance)
protected void setEnchantmentBasedOnDifficulty(DifficultyInstance difficulty)
@Nullable public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData livingdata)
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, @Nullable ItemStack stack, EnumHand hand)
processInitialInteract
in class Entity
protected boolean processInteract(EntityPlayer player, EnumHand hand, @Nullable ItemStack stack)
protected void updateLeashedState()
public void clearLeashed(boolean sendPacket, boolean dropLead)
public boolean canBeLeashedTo(EntityPlayer player)
public boolean getLeashed()
public Entity getLeashedToEntity()
public void setLeashedToEntity(Entity entityIn, boolean sendAttachNotification)
public boolean startRiding(Entity entityIn, boolean force)
startRiding
in class Entity
public boolean replaceItemInInventory(int inventorySlot, @Nullable ItemStack itemStackIn)
replaceItemInInventory
in class Entity
public static boolean isItemStackInSlot(EntityEquipmentSlot slotIn, ItemStack stack)
public boolean isServerWorld()
isServerWorld
in class EntityLivingBase
public void setNoAI(boolean disable)
public void setLeftHanded(boolean disable)
public boolean isAIDisabled()
public boolean isLeftHanded()
public EnumHandSide getPrimaryHand()
getPrimaryHand
in class EntityLivingBase