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 booleanattackEntityFrom(DamageSource damagesource, float var2)+ Called when the entity is attacked.booleancanBeCollidedWith()+ Returns true if other Entities should be prevented from moving through this Entity.booleancanBePushed()+ Returns true if this entity should push and be pushed by other entities when colliding.protected voidcollideWithEntity(Entity var1)protected voidcollideWithNearbyEntities()protected voidentityInit()protected floatfunc_110146_f(float var1, float var2)booleanfunc_181026_s()RotationsgetBodyRotation()ItemStackgetCurrentArmor(int i)ItemStackgetEquipmentInSlot(int i)+ 0: Tool in Hand; 1-4: ArmorfloatgetEyeHeight()RotationsgetHeadRotation()ItemStackgetHeldItem()+ Returns the item that this EntityLiving is holding, if any.ItemStack[]getInventory()+ returns the inventory of this entity (only used in EntityPlayerMP it seems)RotationsgetLeftArmRotation()RotationsgetLeftLegRotation()RotationsgetRightArmRotation()RotationsgetRightLegRotation()booleangetShowArms()booleanhasNoBasePlate()booleanhasNoGravity()booleaninteractAt(EntityPlayer entityplayer, Vec3 vec3)+ New version of interactWith that includes vector information on where precisely the player targeted.booleanisChild()+ If Animal, checks if the age timer is negativebooleanisImmuneToExplosions()booleanisInRangeToRenderDist(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: distancebooleanisServerWorld()+ Returns whether the entity is in a server worldbooleanisSmall()voidmoveEntityWithHeading(float f, float f1)+ Moves the entity based on the specified heading.voidonKillCommand()+ Called by the /kill command.voidonUpdate()+ Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to read subclass entity data from NBT.booleanreplaceItemInInventory(int i, ItemStack itemstack)voidsetBodyRotation(Rotations parRotations)voidsetCurrentItemOrArmor(int i, ItemStack itemstack)+ Sets the held item, or an armor slot.voidsetHeadRotation(Rotations parRotations)voidsetInvisible(boolean flag)voidsetLeftArmRotation(Rotations parRotations)voidsetLeftLegRotation(Rotations parRotations)voidsetRightArmRotation(Rotations parRotations)voidsetRightLegRotation(Rotations parRotations)protected voidupdatePotionMetadata()+ Clears potion metadata values if the entity has no potion effects.voidwriteEntityToNBT(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:
isServerWorldin classEntityLivingBase
-
entityInit
protected void entityInit()
- Overrides:
entityInitin classEntityLivingBase
-
getHeldItem
public ItemStack getHeldItem()
+ Returns the item that this EntityLiving is holding, if any.- Specified by:
getHeldItemin classEntityLivingBase
-
getEquipmentInSlot
public ItemStack getEquipmentInSlot(int i)
+ 0: Tool in Hand; 1-4: Armor- Specified by:
getEquipmentInSlotin classEntityLivingBase
-
getCurrentArmor
public ItemStack getCurrentArmor(int i)
- Specified by:
getCurrentArmorin 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:
setCurrentItemOrArmorin classEntityLivingBase
-
getInventory
public ItemStack[] getInventory()
+ returns the inventory of this entity (only used in EntityPlayerMP it seems)- Specified by:
getInventoryin classEntityLivingBase
-
replaceItemInInventory
public boolean replaceItemInInventory(int i, ItemStack itemstack)- Overrides:
replaceItemInInventoryin classEntity
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityLivingBase
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityLivingBase
-
canBePushed
public boolean canBePushed()
+ Returns true if this entity should push and be pushed by other entities when colliding.- Overrides:
canBePushedin classEntityLivingBase
-
collideWithEntity
protected void collideWithEntity(Entity var1)
- Overrides:
collideWithEntityin classEntityLivingBase
-
collideWithNearbyEntities
protected void collideWithNearbyEntities()
- Overrides:
collideWithNearbyEntitiesin classEntityLivingBase
-
interactAt
public boolean interactAt(EntityPlayer entityplayer, Vec3 vec3)
+ New version of interactWith that includes vector information on where precisely the player targeted.- Overrides:
interactAtin classEntity
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damagesource, float var2)
+ Called when the entity is attacked.- Overrides:
attackEntityFromin 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:
isInRangeToRenderDistin classEntity
-
func_110146_f
protected float func_110146_f(float var1, float var2)- Overrides:
func_110146_fin classEntityLivingBase
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeightin classEntity
-
moveEntityWithHeading
public void moveEntityWithHeading(float f, float f1)+ Moves the entity based on the specified heading. Args: strafe, forward- Overrides:
moveEntityWithHeadingin classEntityLivingBase
-
onUpdate
public void onUpdate()
+ Called to update the entity's position/logic.- Overrides:
onUpdatein 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:
updatePotionMetadatain classEntityLivingBase
-
setInvisible
public void setInvisible(boolean flag)
- Overrides:
setInvisiblein classEntity
-
isChild
public boolean isChild()
+ If Animal, checks if the age timer is negative- Overrides:
isChildin classEntityLivingBase
-
onKillCommand
public void onKillCommand()
+ Called by the /kill command.- Overrides:
onKillCommandin classEntityLivingBase
-
isImmuneToExplosions
public boolean isImmuneToExplosions()
- Overrides:
isImmuneToExplosionsin 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:
canBeCollidedWithin classEntityLivingBase
-
-