Package net.minecraft.entity.item
Class EntityArmorStand
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.EntityLivingBase
-
- net.minecraft.entity.item.EntityArmorStand
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class EntityArmorStand extends EntityLivingBase
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.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
-
Fields inherited from class net.minecraft.entity.Entity
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 Summary
Constructors Constructor Description EntityArmorStand(World worldIn)
EntityArmorStand(World worldIn, double posX, double posY, double posZ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
attackEntityFrom(DamageSource damagesource, float var2)
+ 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 var1)
protected void
collideWithNearbyEntities()
protected void
entityInit()
protected float
func_110146_f(float var1, float var2)
boolean
func_181026_s()
Rotations
getBodyRotation()
ItemStack
getCurrentArmor(int i)
ItemStack
getEquipmentInSlot(int i)
+ 0: Tool in Hand; 1-4: Armorfloat
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 entityplayer, Vec3 vec3)
+ New version of interactWith that includes vector information on where precisely the player targeted.boolean
isChild()
+ If Animal, checks if the age timer is negativeboolean
isImmuneToExplosions()
boolean
isInRangeToRenderDist(double d0)
+ 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: distanceboolean
isServerWorld()
+ Returns whether the entity is in a server worldboolean
isSmall()
void
moveEntityWithHeading(float f, float f1)
+ 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 nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.boolean
replaceItemInInventory(int i, ItemStack itemstack)
void
setBodyRotation(Rotations parRotations)
void
setCurrentItemOrArmor(int i, ItemStack itemstack)
+ Sets the held item, or an armor slot.void
setHeadRotation(Rotations parRotations)
void
setInvisible(boolean flag)
void
setLeftArmRotation(Rotations parRotations)
void
setLeftLegRotation(Rotations parRotations)
void
setRightArmRotation(Rotations parRotations)
void
setRightLegRotation(Rotations parRotations)
protected void
updatePotionMetadata()
+ Clears potion metadata values if the entity has no potion effects.void
writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.EntityLivingBase
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, loadPluginData, makePluginData, 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
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fromNBT, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, 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, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Method Detail
-
isServerWorld
public boolean isServerWorld()
+ Returns whether the entity is in a server world- Overrides:
isServerWorld
in classEntityLivingBase
-
entityInit
protected void entityInit()
- Overrides:
entityInit
in classEntityLivingBase
-
getHeldItem
public ItemStack getHeldItem()
+ Returns the item that this EntityLiving is holding, if any.- Specified by:
getHeldItem
in classEntityLivingBase
-
getEquipmentInSlot
public ItemStack getEquipmentInSlot(int i)
+ 0: Tool in Hand; 1-4: Armor- Specified by:
getEquipmentInSlot
in classEntityLivingBase
-
getCurrentArmor
public ItemStack getCurrentArmor(int i)
- Specified by:
getCurrentArmor
in classEntityLivingBase
-
setCurrentItemOrArmor
public void setCurrentItemOrArmor(int i, ItemStack itemstack)
+ Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot- Specified by:
setCurrentItemOrArmor
in classEntityLivingBase
-
getInventory
public ItemStack[] getInventory()
+ returns the inventory of this entity (only used in EntityPlayerMP it seems)- Specified by:
getInventory
in classEntityLivingBase
-
replaceItemInInventory
public boolean replaceItemInInventory(int i, ItemStack itemstack)
- Overrides:
replaceItemInInventory
in classEntity
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBT
in classEntityLivingBase
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBT
in classEntityLivingBase
-
canBePushed
public boolean canBePushed()
+ Returns true if this entity should push and be pushed by other entities when colliding.- Overrides:
canBePushed
in classEntityLivingBase
-
collideWithEntity
protected void collideWithEntity(Entity var1)
- Overrides:
collideWithEntity
in classEntityLivingBase
-
collideWithNearbyEntities
protected void collideWithNearbyEntities()
- Overrides:
collideWithNearbyEntities
in classEntityLivingBase
-
interactAt
public boolean interactAt(EntityPlayer entityplayer, Vec3 vec3)
+ New version of interactWith that includes vector information on where precisely the player targeted.- Overrides:
interactAt
in classEntity
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damagesource, float var2)
+ Called when the entity is attacked.- Overrides:
attackEntityFrom
in classEntityLivingBase
-
isInRangeToRenderDist
public boolean isInRangeToRenderDist(double d0)
+ 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- Overrides:
isInRangeToRenderDist
in classEntity
-
func_110146_f
protected float func_110146_f(float var1, float var2)
- Overrides:
func_110146_f
in classEntityLivingBase
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeight
in classEntity
-
moveEntityWithHeading
public void moveEntityWithHeading(float f, float f1)
+ Moves the entity based on the specified heading. Args: strafe, forward- Overrides:
moveEntityWithHeading
in classEntityLivingBase
-
onUpdate
public void onUpdate()
+ Called to update the entity's position/logic.- Overrides:
onUpdate
in classEntityLivingBase
-
updatePotionMetadata
protected void updatePotionMetadata()
+ Clears potion metadata values if the entity has no potion effects. Otherwise, updates potion effect color, ambience, and invisibility metadata values- Overrides:
updatePotionMetadata
in classEntityLivingBase
-
setInvisible
public void setInvisible(boolean flag)
- Overrides:
setInvisible
in classEntity
-
isChild
public boolean isChild()
+ If Animal, checks if the age timer is negative- Overrides:
isChild
in classEntityLivingBase
-
onKillCommand
public void onKillCommand()
+ Called by the /kill command.- Overrides:
onKillCommand
in classEntityLivingBase
-
isImmuneToExplosions
public boolean isImmuneToExplosions()
- Overrides:
isImmuneToExplosions
in classEntity
-
isSmall
public boolean isSmall()
-
hasNoGravity
public boolean hasNoGravity()
-
getShowArms
public boolean getShowArms()
-
hasNoBasePlate
public boolean hasNoBasePlate()
-
func_181026_s
public boolean func_181026_s()
-
setHeadRotation
public void setHeadRotation(Rotations parRotations)
-
setBodyRotation
public void setBodyRotation(Rotations parRotations)
-
setLeftArmRotation
public void setLeftArmRotation(Rotations parRotations)
-
setRightArmRotation
public void setRightArmRotation(Rotations parRotations)
-
setLeftLegRotation
public void setLeftLegRotation(Rotations parRotations)
-
setRightLegRotation
public void setRightLegRotation(Rotations parRotations)
-
getHeadRotation
public Rotations getHeadRotation()
-
getBodyRotation
public Rotations getBodyRotation()
-
getLeftArmRotation
public Rotations getLeftArmRotation()
-
getRightArmRotation
public Rotations getRightArmRotation()
-
getLeftLegRotation
public Rotations getLeftLegRotation()
-
getRightLegRotation
public Rotations getRightLegRotation()
-
canBeCollidedWith
public boolean canBeCollidedWith()
+ Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWith
in classEntityLivingBase
-
-