public class EntityHuman
extends net.minecraft.entity.EntityCreature
field_110179_h, FLEEING_SPEED_MODIFIER
equipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasks
_combatTracker, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, entityLivingToAttack, field_70741_aB, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onGroundSpeedFactor, potionsNeedUpdate, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fire, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityHuman(net.minecraft.world.World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyEntityAttributes() |
boolean |
attackEntityAsMob(net.minecraft.entity.Entity entityIn) |
boolean |
canRemoveFromListImmediately()
Can the fake profile be removed from the tab list immediately (i.e.
|
net.minecraft.network.play.server.S38PacketPlayerListItem |
createPlayerListPacket(net.minecraft.network.play.server.S38PacketPlayerListItem.Action action)
Creates a
S38PacketPlayerListItem packet with the given action. |
org.spongepowered.api.data.manipulator.mutable.entity.SkinData |
createSkinData() |
net.minecraft.network.play.server.S0CPacketSpawnPlayer |
createSpawnPacket()
Creates a
S0CPacketSpawnPlayer packet. |
protected void |
entityInit() |
Optional<org.spongepowered.api.data.manipulator.mutable.entity.SkinData> |
fillSkinData(org.spongepowered.api.data.manipulator.mutable.entity.SkinData manipulator) |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
float |
getAbsorptionAmount() |
float |
getAIMoveSpeed() |
protected String |
getDeathSound() |
float |
getEyeHeight() |
protected String |
getFallSoundString(int damageValue) |
protected String |
getHurtSound() |
int |
getMaxInPortalTime() |
int |
getPortalCooldown() |
Optional<org.spongepowered.api.data.manipulator.mutable.entity.SkinData> |
getSkinData() |
protected String |
getSplashSound() |
protected String |
getSwimSound() |
double |
getYOffset() |
void |
onDeath(net.minecraft.util.DamageSource cause) |
void |
onLivingUpdate() |
void |
onRemovedFrom(net.minecraft.entity.player.EntityPlayerMP player)
Called when a player stops tracking this human.
|
net.minecraft.network.Packet[] |
popQueuedPackets(net.minecraft.entity.player.EntityPlayerMP player)
(Internal) Pops the packets off the queue for the given player.
|
void |
pushPackets(net.minecraft.entity.player.EntityPlayerMP player,
net.minecraft.network.Packet... packets)
Push the given packets to the given player (who must be tracking this
human).
|
void |
pushPackets(net.minecraft.network.Packet... packets)
Push the given packets to all players tracking this human.
|
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tagCompund) |
boolean |
removeSkin() |
void |
setAbsorptionAmount(float amount) |
void |
setCustomNameTag(String name) |
org.spongepowered.api.data.DataTransactionResult |
setSkinData(org.spongepowered.api.data.manipulator.mutable.entity.SkinData skin) |
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tagCompound) |
detachHome, func_142017_o, getBlockPathWeight, getCanSpawnHere, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getDropItem, getEntitySenses, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLivingSound, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getNewNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, handleHealthUpdate, handleLavaMovement, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isServerWorld, onEntityUpdate, onSpawnFirstTime, onUpdate, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateAITasks, updateEntityActionState, updateEquipmentIfNeeded
addPotionEffect, addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, attackEntityFrom, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_175134_bD, func_180466_bG, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_145781_i, func_174815_a, func_174817_o, func_174827_a, func_174834_g, func_180427_aV, getAir, getAlwaysRenderNameTag, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderEntity, getCommandSenderName, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getMountedYOffset, getNBTTagCompound, getParts, getPosition, getPositionEyes, getPositionVector, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
protected void applyEntityAttributes()
applyEntityAttributes
in class net.minecraft.entity.EntityLiving
protected void entityInit()
entityInit
in class net.minecraft.entity.EntityLiving
public void setCustomNameTag(String name)
setCustomNameTag
in class net.minecraft.entity.Entity
public void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tagCompund)
readEntityFromNBT
in class net.minecraft.entity.EntityLiving
public void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tagCompound)
writeEntityToNBT
in class net.minecraft.entity.EntityLiving
public void onLivingUpdate()
onLivingUpdate
in class net.minecraft.entity.EntityLiving
public int getMaxInPortalTime()
getMaxInPortalTime
in class net.minecraft.entity.Entity
protected String getSwimSound()
getSwimSound
in class net.minecraft.entity.Entity
protected String getSplashSound()
getSplashSound
in class net.minecraft.entity.Entity
public int getPortalCooldown()
getPortalCooldown
in class net.minecraft.entity.Entity
public void onDeath(net.minecraft.util.DamageSource cause)
onDeath
in class net.minecraft.entity.EntityLivingBase
protected String getHurtSound()
getHurtSound
in class net.minecraft.entity.EntityLivingBase
protected String getDeathSound()
getDeathSound
in class net.minecraft.entity.EntityLivingBase
public double getYOffset()
getYOffset
in class net.minecraft.entity.Entity
public float getAIMoveSpeed()
getAIMoveSpeed
in class net.minecraft.entity.EntityLivingBase
protected String getFallSoundString(int damageValue)
getFallSoundString
in class net.minecraft.entity.EntityLivingBase
public float getEyeHeight()
getEyeHeight
in class net.minecraft.entity.Entity
public float getAbsorptionAmount()
getAbsorptionAmount
in class net.minecraft.entity.EntityLivingBase
public void setAbsorptionAmount(float amount)
setAbsorptionAmount
in class net.minecraft.entity.EntityLivingBase
protected float func_110146_f(float p_110146_1_, float p_110146_2_)
func_110146_f
in class net.minecraft.entity.EntityLiving
public boolean attackEntityAsMob(net.minecraft.entity.Entity entityIn)
attackEntityAsMob
in class net.minecraft.entity.EntityLivingBase
public org.spongepowered.api.data.DataTransactionResult setSkinData(org.spongepowered.api.data.manipulator.mutable.entity.SkinData skin)
public Optional<org.spongepowered.api.data.manipulator.mutable.entity.SkinData> getSkinData()
public org.spongepowered.api.data.manipulator.mutable.entity.SkinData createSkinData()
public boolean removeSkin()
public Optional<org.spongepowered.api.data.manipulator.mutable.entity.SkinData> fillSkinData(org.spongepowered.api.data.manipulator.mutable.entity.SkinData manipulator)
public boolean canRemoveFromListImmediately()
public void onRemovedFrom(net.minecraft.entity.player.EntityPlayerMP player)
player
- The player that has stopped tracking this humanpublic net.minecraft.network.play.server.S0CPacketSpawnPlayer createSpawnPacket()
S0CPacketSpawnPlayer
packet.
Copied directly from the constructor of the packet, because that can't be
used as we're not an EntityPlayer.public net.minecraft.network.play.server.S38PacketPlayerListItem createPlayerListPacket(net.minecraft.network.play.server.S38PacketPlayerListItem.Action action)
S38PacketPlayerListItem
packet with the given action.action
- The action to apply on the tab listpublic void pushPackets(net.minecraft.network.Packet... packets)
packets
- All packets to send in a single tickpublic void pushPackets(net.minecraft.entity.player.EntityPlayerMP player, net.minecraft.network.Packet... packets)
player
- The player tracking this humanpackets
- All packets to send in a single tickpublic net.minecraft.network.Packet[] popQueuedPackets(net.minecraft.entity.player.EntityPlayerMP player)
player
- The player to get packets for (or null for all players)