public class EntityArmorStand extends EntityLivingBase
Modifier and Type | Field and Description |
---|---|
private Rotations |
bodyRotation |
private boolean |
canInteract |
private ItemStack[] |
contents |
private static Rotations |
DEFAULT_BODY_ROTATION |
private static Rotations |
DEFAULT_HEAD_ROTATION |
private static Rotations |
DEFAULT_LEFTARM_ROTATION |
private static Rotations |
DEFAULT_LEFTLEG_ROTATION |
private static Rotations |
DEFAULT_RIGHTARM_ROTATION |
private static Rotations |
DEFAULT_RIGHTLEG_ROTATION |
private int |
disabledSlots |
private boolean |
field_181028_bj |
private Rotations |
headRotation |
private Rotations |
leftArmRotation |
private Rotations |
leftLegRotation |
private long |
punchCooldown
After punching the stand, the cooldown before you can punch it again without breaking it.
|
private Rotations |
rightArmRotation |
private Rotations |
rightLegRotation |
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, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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() |
private void |
damageArmorStand(float p_175406_1_) |
private void |
dropBlock() |
private void |
dropContents() |
protected void |
entityInit() |
protected float |
func_110146_f(float p_110146_1_,
float p_110146_2_) |
private void |
func_175422_a(EntityPlayer p_175422_1_,
int p_175422_2_) |
boolean |
func_181026_s() |
private void |
func_181027_m(boolean p_181027_1_) |
private void |
func_181550_a(boolean p_181550_1_) |
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.
|
private void |
playParticles() |
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
private NBTTagCompound |
readPoseFromNBT() |
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_) |
private void |
setNoBasePlate(boolean p_175426_1_) |
private void |
setNoGravity(boolean p_175425_1_) |
void |
setRightArmRotation(Rotations p_175428_1_) |
void |
setRightLegRotation(Rotations p_175427_1_) |
private void |
setShowArms(boolean p_175413_1_) |
private void |
setSmall(boolean p_175420_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.
|
private void |
writePoseToNBT(NBTTagCompound tagCompound)
Saves the pose to an NBTTagCompound.
|
addPotionEffect, addRandomDrop, applyArmorCalculations, applyEntityAttributes, applyPotionDamageCalculations, attackEntityAsMob, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, 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, swingItem, updateAITick, updateArmSwingProgress, updateEntityActionState, updateFallState, updatePotionEffects, updateRidden
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactFirst, isBurning, 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, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
private static final Rotations DEFAULT_HEAD_ROTATION
private static final Rotations DEFAULT_BODY_ROTATION
private static final Rotations DEFAULT_LEFTARM_ROTATION
private static final Rotations DEFAULT_RIGHTARM_ROTATION
private static final Rotations DEFAULT_LEFTLEG_ROTATION
private static final Rotations DEFAULT_RIGHTLEG_ROTATION
private final ItemStack[] contents
private boolean canInteract
private long punchCooldown
private int disabledSlots
private boolean field_181028_bj
private Rotations headRotation
private Rotations bodyRotation
private Rotations leftArmRotation
private Rotations rightArmRotation
private Rotations leftLegRotation
private Rotations rightLegRotation
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
private void writePoseToNBT(NBTTagCompound tagCompound)
private NBTTagCompound readPoseFromNBT()
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
private void func_175422_a(EntityPlayer p_175422_1_, int p_175422_2_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
private void playParticles()
private void damageArmorStand(float p_175406_1_)
private void dropBlock()
private void dropContents()
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
private void func_181550_a(boolean p_181550_1_)
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
private void setSmall(boolean p_175420_1_)
public boolean isSmall()
private void setNoGravity(boolean p_175425_1_)
public boolean hasNoGravity()
private void setShowArms(boolean p_175413_1_)
public boolean getShowArms()
private void setNoBasePlate(boolean p_175426_1_)
public boolean hasNoBasePlate()
private void func_181027_m(boolean p_181027_1_)
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