public class EntityArmorStand extends EntityLivingBase
Modifier and Type | Field and Description |
---|---|
static DataParameter<Rotations> |
BODY_ROTATION |
static DataParameter<Rotations> |
HEAD_ROTATION |
static DataParameter<Rotations> |
LEFT_ARM_ROTATION |
static DataParameter<Rotations> |
LEFT_LEG_ROTATION |
long |
punchCooldown
After punching the stand, the cooldown before you can punch it again without breaking it.
|
static DataParameter<Rotations> |
RIGHT_ARM_ROTATION |
static DataParameter<Rotations> |
RIGHT_LEG_ROTATION |
static DataParameter<java.lang.Byte> |
STATUS |
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, firstUpdate, FLAGS, 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, updateBlocked, velocityChanged, width, world
Constructor and Description |
---|
EntityArmorStand(World worldIn) |
EntityArmorStand(World worldIn,
double posX,
double posY,
double posZ) |
Modifier and Type | Method and Description |
---|---|
EnumActionResult |
applyPlayerInteraction(EntityPlayer player,
Vec3d vec,
EnumHand stack)
Applies the given player interaction to this Entity.
|
boolean |
attackable() |
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 |
canBeHitWithPotion()
Returns false if the entity is an armor stand.
|
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
protected void |
collideWithEntity(Entity entityIn) |
protected void |
collideWithNearbyEntities() |
protected void |
entityInit() |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
Rotations |
getBodyRotation() |
protected EntityEquipmentSlot |
getClickedSlot(Vec3d p_190772_1_) |
protected SoundEvent |
getDeathSound() |
float |
getEyeHeight() |
protected SoundEvent |
getFallSound(int heightIn) |
Rotations |
getHeadRotation() |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
protected SoundEvent |
getHurtSound() |
ItemStack |
getItemStackFromSlot(EntityEquipmentSlot slotIn) |
Rotations |
getLeftArmRotation() |
Rotations |
getLeftLegRotation() |
EnumHandSide |
getPrimaryHand() |
EnumPushReaction |
getPushReaction() |
Rotations |
getRightArmRotation() |
Rotations |
getRightLegRotation() |
boolean |
getShowArms() |
double |
getYOffset()
Returns the Y Offset of this entity.
|
void |
handleStatusUpdate(byte id) |
boolean |
hasMarker()
Gets whether the armor stand has marker enabled.
|
boolean |
hasNoBasePlate() |
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.
|
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 |
notifyDataManagerChange(DataParameter<?> key) |
void |
onKillCommand()
Called by the /kill command.
|
void |
onStruckByLightning(EntityLightningBolt lightningBolt)
Called when a lightning bolt hits the entity.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
static void |
registerFixesArmorStand(DataFixer fixer) |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
setBodyRotation(Rotations vec) |
void |
setHeadRotation(Rotations vec) |
void |
setInvisible(boolean invisible) |
void |
setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
setLeftArmRotation(Rotations vec) |
void |
setLeftLegRotation(Rotations vec) |
void |
setRenderYawOffset(float offset)
Set the render yaw offset
|
void |
setRightArmRotation(Rotations vec) |
void |
setRightLegRotation(Rotations vec) |
void |
setRotationYawHead(float rotation)
Sets the head's yaw rotation of the entity.
|
protected void |
setSize(float width,
float height)
Sets the width and height of the entity.
|
protected float |
updateDistance(float p_110146_1_,
float p_110146_2_) |
protected void |
updatePotionMetadata()
Clears potion metadata values if the entity has no potion effects.
|
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addPotionEffect, applyArmorCalculations, applyEntityAttributes, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attemptTeleport, blockUsingShield, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, dropEquipment, dropFewItems, dropLoot, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getEntityAttribute, getExperiencePoints, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLastDamageSource, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, onChangedPotionEffect, onDeath, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onLivingUpdate, onNewPotionEffect, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRevengeTarget, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateEntityActionState, updateFallState, updateItemUse, updatePotionEffects, updateRidden
addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, canBeAttackedWithItem, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, 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, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onKillEntity, playSound, playStepSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, turn, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public static final DataParameter<java.lang.Byte> STATUS
public static final DataParameter<Rotations> HEAD_ROTATION
public static final DataParameter<Rotations> BODY_ROTATION
public static final DataParameter<Rotations> LEFT_ARM_ROTATION
public static final DataParameter<Rotations> RIGHT_ARM_ROTATION
public static final DataParameter<Rotations> LEFT_LEG_ROTATION
public static final DataParameter<Rotations> RIGHT_LEG_ROTATION
public long punchCooldown
public EntityArmorStand(World worldIn)
public EntityArmorStand(World worldIn, double posX, double posY, double posZ)
protected final void setSize(float width, float height)
public boolean isServerWorld()
isServerWorld
in class EntityLivingBase
protected void entityInit()
entityInit
in class EntityLivingBase
public java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment
in class Entity
public java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class EntityLivingBase
public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
getItemStackFromSlot
in class EntityLivingBase
public void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack)
setItemStackToSlot
in class EntityLivingBase
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
replaceItemInInventory
in class Entity
public static void registerFixesArmorStand(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityLivingBase
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityLivingBase
public boolean canBePushed()
canBePushed
in class EntityLivingBase
protected void collideWithEntity(Entity entityIn)
collideWithEntity
in class EntityLivingBase
protected void collideWithNearbyEntities()
collideWithNearbyEntities
in class EntityLivingBase
public EnumActionResult applyPlayerInteraction(EntityPlayer player, Vec3d vec, EnumHand stack)
applyPlayerInteraction
in class Entity
protected EntityEquipmentSlot getClickedSlot(Vec3d p_190772_1_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class EntityLivingBase
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
protected float updateDistance(float p_110146_1_, float p_110146_2_)
updateDistance
in class EntityLivingBase
public float getEyeHeight()
getEyeHeight
in class Entity
public double getYOffset()
getYOffset
in class Entity
public void moveEntityWithHeading(float strafe, float forward)
moveEntityWithHeading
in class EntityLivingBase
public void setRenderYawOffset(float offset)
setRenderYawOffset
in class EntityLivingBase
public void setRotationYawHead(float rotation)
setRotationYawHead
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 EnumPushReaction getPushReaction()
getPushReaction
in class Entity
public boolean isSmall()
public boolean getShowArms()
public boolean hasNoBasePlate()
public boolean hasMarker()
public void setHeadRotation(Rotations vec)
public void setBodyRotation(Rotations vec)
public void setLeftArmRotation(Rotations vec)
public void setRightArmRotation(Rotations vec)
public void setLeftLegRotation(Rotations vec)
public void setRightLegRotation(Rotations vec)
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
public EnumHandSide getPrimaryHand()
getPrimaryHand
in class EntityLivingBase
protected SoundEvent getFallSound(int heightIn)
getFallSound
in class EntityLivingBase
protected SoundEvent getHurtSound()
getHurtSound
in class EntityLivingBase
protected SoundEvent getDeathSound()
getDeathSound
in class EntityLivingBase
public void onStruckByLightning(EntityLightningBolt lightningBolt)
onStruckByLightning
in class Entity
public boolean canBeHitWithPotion()
canBeHitWithPotion
in class EntityLivingBase
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
in class EntityLivingBase
public boolean attackable()
attackable
in class EntityLivingBase