public class EntityArmorStand extends EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, 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, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, 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, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityArmorStand(World worldIn) |
EntityArmorStand(World worldIn,
double posX,
double posY,
double posZ) |
Modifier and Type | Method and Description |
---|---|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
protected void |
collideWithEntity(Entity p_82167_1_) |
protected void |
collideWithNearbyEntities() |
protected void |
entityInit() |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
boolean |
func_181026_s() |
Rotations |
getBodyRotation() |
ItemStack |
getCurrentArmor(int slotIn) |
ItemStack |
getEquipmentInSlot(int slotIn)
0: Tool in Hand; 1-4: Armor
|
float |
getEyeHeight() |
Rotations |
getHeadRotation() |
ItemStack |
getHeldItem()
Returns the item that this EntityLiving is holding, if any.
|
ItemStack[] |
getInventory()
returns the inventory of this entity (only used in EntityPlayerMP it seems)
|
Rotations |
getLeftArmRotation() |
Rotations |
getLeftLegRotation() |
Rotations |
getRightArmRotation() |
Rotations |
getRightLegRotation() |
boolean |
getShowArms() |
boolean |
hasNoBasePlate() |
boolean |
hasNoGravity() |
boolean |
interactAt(EntityPlayer player,
Vec3 targetVec3)
New version of interactWith that includes vector information on where precisely the player targeted.
|
boolean |
isChild()
If Animal, checks if the age timer is negative
|
boolean |
isImmuneToExplosions() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render by using the past in distance and comparing it to its average edge
length * 64 * renderDistanceWeight Args: distance
|
boolean |
isServerWorld()
Returns whether the entity is in a server world
|
boolean |
isSmall() |
void |
moveEntityWithHeading(float strafe,
float forward)
Moves the entity based on the specified heading.
|
void |
onKillCommand()
Called by the /kill command.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
setBodyRotation(Rotations p_175424_1_) |
void |
setCurrentItemOrArmor(int slotIn,
ItemStack stack)
Sets the held item, or an armor slot.
|
void |
setHeadRotation(Rotations p_175415_1_) |
void |
setInvisible(boolean invisible) |
void |
setLeftArmRotation(Rotations p_175405_1_) |
void |
setLeftLegRotation(Rotations p_175417_1_) |
void |
setRightArmRotation(Rotations p_175428_1_) |
void |
setRightLegRotation(Rotations p_175427_1_) |
protected void |
updatePotionMetadata()
Clears potion metadata values if the entity has no potion effects.
|
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addPotionEffect, addRandomDrop, applyArmorCalculations, applyEntityAttributes, applyPotionDamageCalculations, attackEntityAsMob, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, fall, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getDeathSound, getEntityAttribute, getExperiencePoints, getFallSoundString, getHealth, getHurtSound, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, handleJumpLava, handleStatusUpdate, heal, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, onChangedPotionEffect, onDeath, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onLivingUpdate, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updateEntityActionState, updateFallState, updatePotionEffects, updateRidden
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canRiderInteract, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getHoverEvent, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCapability, hasCustomName, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, resetHeight, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
public EntityArmorStand(World worldIn)
public EntityArmorStand(World worldIn, double posX, double posY, double posZ)
public boolean isServerWorld()
isServerWorld
in class EntityLivingBase
protected void entityInit()
entityInit
in class EntityLivingBase
public ItemStack getHeldItem()
getHeldItem
in class EntityLivingBase
public ItemStack getEquipmentInSlot(int slotIn)
getEquipmentInSlot
in class EntityLivingBase
public ItemStack getCurrentArmor(int slotIn)
getCurrentArmor
in class EntityLivingBase
public void setCurrentItemOrArmor(int slotIn, ItemStack stack)
setCurrentItemOrArmor
in class EntityLivingBase
public ItemStack[] getInventory()
getInventory
in class EntityLivingBase
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
replaceItemInInventory
in class Entity
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class EntityLivingBase
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class EntityLivingBase
public boolean canBePushed()
canBePushed
in class EntityLivingBase
protected void collideWithEntity(Entity p_82167_1_)
collideWithEntity
in class EntityLivingBase
protected void collideWithNearbyEntities()
collideWithNearbyEntities
in class EntityLivingBase
public boolean interactAt(EntityPlayer player, Vec3 targetVec3)
interactAt
in class Entity
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
protected float func_110146_f(float p_110146_1_, float p_110146_2_)
func_110146_f
in class EntityLivingBase
public float getEyeHeight()
getEyeHeight
in class Entity
public void moveEntityWithHeading(float strafe, float forward)
moveEntityWithHeading
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityLivingBase
protected void updatePotionMetadata()
updatePotionMetadata
in class EntityLivingBase
public void setInvisible(boolean invisible)
setInvisible
in class Entity
public boolean isChild()
isChild
in class EntityLivingBase
public void onKillCommand()
onKillCommand
in class EntityLivingBase
public boolean isImmuneToExplosions()
isImmuneToExplosions
in class Entity
public boolean isSmall()
public boolean hasNoGravity()
public boolean getShowArms()
public boolean hasNoBasePlate()
public boolean func_181026_s()
public void setHeadRotation(Rotations p_175415_1_)
public void setBodyRotation(Rotations p_175424_1_)
public void setLeftArmRotation(Rotations p_175405_1_)
public void setRightArmRotation(Rotations p_175428_1_)
public void setLeftLegRotation(Rotations p_175417_1_)
public void setRightLegRotation(Rotations p_175427_1_)
public Rotations getHeadRotation()
public Rotations getBodyRotation()
public Rotations getLeftArmRotation()
public Rotations getRightArmRotation()
public Rotations getLeftLegRotation()
public Rotations getRightLegRotation()
public boolean canBeCollidedWith()
canBeCollidedWith
in class EntityLivingBase