Package net.minecraft.entity.item
Class ArmorStandEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.item.ArmorStandEntity
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
private static final EntitySize
private Rotations
static final DataParameter<Rotations>
static final DataParameter<Byte>
static final DataParameter<Rotations>
static final DataParameter<Rotations>
static final DataParameter<Rotations>
static final DataParameter<Rotations>
static final DataParameter<Rotations>
private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
private int
private final NonNullList<ItemStack>
private Rotations
private boolean
long
private Rotations
private Rotations
private static final EntitySize
private Rotations
private Rotations
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ConstructorDescriptionArmorStandEntity
(EntityType<? extends ArmorStandEntity> p_i50225_1_, World p_i50225_2_) ArmorStandEntity
(World p_i45855_1_, double p_i45855_2_, double p_i45855_4_, double p_i45855_6_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_213281_1_) boolean
private void
brokenByAnything
(DamageSource p_213816_1_) private void
brokenByPlayer
(DamageSource p_213815_1_) boolean
canTakeItem
(ItemStack p_213365_1_) private void
causeDamage
(DamageSource p_213817_1_, float p_213817_2_) protected void
protected void
private EquipmentSlotType
getClickedSlot
(Vector3d p_190772_1_) protected SoundEvent
getDimensions
(Pose p_213305_1_) private EntitySize
getDimensionsMarker
(boolean p_242330_1_) protected SoundEvent
getFallDamageSound
(int p_184588_1_) protected SoundEvent
getHurtSound
(DamageSource p_184601_1_) getItemBySlot
(EquipmentSlotType p_184582_1_) getLightProbePosition
(float p_241842_1_) double
protected float
getStandingEyeHeight
(Pose p_213348_1_, EntitySize p_213348_2_) void
handleEntityEvent
(byte p_70103_1_) private boolean
boolean
hurt
(DamageSource p_70097_1_, float p_70097_2_) boolean
interactAt
(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) boolean
boolean
isBaby()
private boolean
isDisabled
(EquipmentSlotType p_184796_1_) boolean
boolean
isMarker()
boolean
boolean
boolean
boolean
boolean
isSmall()
void
kill()
void
onSyncedDataUpdated
(DataParameter<?> p_184206_1_) private void
protected void
void
readAdditionalSaveData
(CompoundNBT p_70037_1_) private void
readPose
(CompoundNBT p_175416_1_) void
private byte
setBit
(byte p_184797_1_, int p_184797_2_, boolean p_184797_3_) void
setBodyPose
(Rotations p_175424_1_) void
setHeadPose
(Rotations p_175415_1_) void
setInvisible
(boolean p_82142_1_) void
setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) void
setLeftArmPose
(Rotations p_175405_1_) void
setLeftLegPose
(Rotations p_175417_1_) private void
setMarker
(boolean p_181027_1_) private void
setNoBasePlate
(boolean p_175426_1_) void
setRightArmPose
(Rotations p_175428_1_) void
setRightLegPose
(Rotations p_175427_1_) private void
setShowArms
(boolean p_175413_1_) boolean
private void
setSmall
(boolean p_175420_1_) void
setYBodyRot
(float p_181013_1_) void
setYHeadRot
(float p_70034_1_) boolean
shouldRenderAtSqrDistance
(double p_70112_1_) private void
boolean
skipAttackInteraction
(Entity p_85031_1_) private boolean
swapItem
(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) void
thunderHit
(ServerWorld p_241841_1_, LightningBoltEntity p_241841_2_) void
tick()
protected float
tickHeadTurn
(float p_110146_1_, float p_110146_2_) void
protected void
private CompoundNBT
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, aiStep, animateHurt, areAllEffectsAmbient, baseTick, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createLootContext, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doHurtTarget, dropAllDeathLoot, dropCustomDeathLoot, dropEquipment, dropExperience, dropFromLootTable, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getExperienceReward, getEyeHeight, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, playHurtSound, push, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, serverAiStep, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateSwingTime
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, interact, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
DEFAULT_HEAD_POSE
-
DEFAULT_BODY_POSE
-
DEFAULT_LEFT_ARM_POSE
-
DEFAULT_RIGHT_ARM_POSE
-
DEFAULT_LEFT_LEG_POSE
-
DEFAULT_RIGHT_LEG_POSE
-
MARKER_DIMENSIONS
-
BABY_DIMENSIONS
-
DATA_CLIENT_FLAGS
-
DATA_HEAD_POSE
-
DATA_BODY_POSE
-
DATA_LEFT_ARM_POSE
-
DATA_RIGHT_ARM_POSE
-
DATA_LEFT_LEG_POSE
-
DATA_RIGHT_LEG_POSE
-
RIDABLE_MINECARTS
-
handItems
-
armorItems
-
invisible
private boolean invisible -
lastHit
public long lastHit -
disabledSlots
private int disabledSlots -
headPose
-
bodyPose
-
leftArmPose
-
rightArmPose
-
leftLegPose
-
rightLegPose
-
-
Constructor Details
-
ArmorStandEntity
-
ArmorStandEntity
public ArmorStandEntity(World p_i45855_1_, double p_i45855_2_, double p_i45855_4_, double p_i45855_6_)
-
-
Method Details
-
refreshDimensions
public void refreshDimensions()- Overrides:
refreshDimensions
in classEntity
-
hasPhysics
private boolean hasPhysics() -
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAi
in classLivingEntity
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classLivingEntity
-
getHandSlots
- Overrides:
getHandSlots
in classEntity
-
getArmorSlots
- Specified by:
getArmorSlots
in classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlot
in classLivingEntity
-
setItemSlot
- Specified by:
setItemSlot
in classLivingEntity
-
setSlot
-
canTakeItem
- Overrides:
canTakeItem
in classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classLivingEntity
-
readPose
-
writePose
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classLivingEntity
-
doPush
- Overrides:
doPush
in classLivingEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntities
in classLivingEntity
-
interactAt
public ActionResultType interactAt(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) - Overrides:
interactAt
in classEntity
-
getClickedSlot
-
isDisabled
-
swapItem
private boolean swapItem(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) -
hurt
- Overrides:
hurt
in classLivingEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEvent
in classLivingEntity
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double p_70112_1_) - Overrides:
shouldRenderAtSqrDistance
in classEntity
-
showBreakingParticles
private void showBreakingParticles() -
causeDamage
-
brokenByPlayer
-
brokenByAnything
-
playBrokenSound
private void playBrokenSound() -
tickHeadTurn
protected float tickHeadTurn(float p_110146_1_, float p_110146_2_) - Overrides:
tickHeadTurn
in classLivingEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
getMyRidingOffset
public double getMyRidingOffset()- Overrides:
getMyRidingOffset
in classEntity
-
travel
- Overrides:
travel
in classLivingEntity
-
setYBodyRot
public void setYBodyRot(float p_181013_1_) - Overrides:
setYBodyRot
in classLivingEntity
-
setYHeadRot
public void setYHeadRot(float p_70034_1_) - Overrides:
setYHeadRot
in classLivingEntity
-
tick
public void tick()- Overrides:
tick
in classLivingEntity
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- Overrides:
updateInvisibilityStatus
in classLivingEntity
-
setInvisible
public void setInvisible(boolean p_82142_1_) - Overrides:
setInvisible
in classEntity
-
isBaby
public boolean isBaby()- Overrides:
isBaby
in classLivingEntity
-
kill
public void kill()- Overrides:
kill
in classLivingEntity
-
ignoreExplosion
public boolean ignoreExplosion()- Overrides:
ignoreExplosion
in classEntity
-
getPistonPushReaction
- Overrides:
getPistonPushReaction
in classEntity
-
setSmall
private void setSmall(boolean p_175420_1_) -
isSmall
public boolean isSmall() -
setShowArms
private void setShowArms(boolean p_175413_1_) -
isShowArms
public boolean isShowArms() -
setNoBasePlate
private void setNoBasePlate(boolean p_175426_1_) -
isNoBasePlate
public boolean isNoBasePlate() -
setMarker
private void setMarker(boolean p_181027_1_) -
isMarker
public boolean isMarker() -
setBit
private byte setBit(byte p_184797_1_, int p_184797_2_, boolean p_184797_3_) -
setHeadPose
-
setBodyPose
-
setLeftArmPose
-
setRightArmPose
-
setLeftLegPose
-
setRightLegPose
-
getHeadPose
-
getBodyPose
-
getLeftArmPose
-
getRightArmPose
-
getLeftLegPose
-
getRightLegPose
-
isPickable
public boolean isPickable()- Overrides:
isPickable
in classLivingEntity
-
skipAttackInteraction
- Overrides:
skipAttackInteraction
in classEntity
-
getMainArm
- Specified by:
getMainArm
in classLivingEntity
-
getFallDamageSound
- Overrides:
getFallDamageSound
in classLivingEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
thunderHit
- Overrides:
thunderHit
in classEntity
-
isAffectedByPotions
public boolean isAffectedByPotions()- Overrides:
isAffectedByPotions
in classLivingEntity
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
attackable
public boolean attackable()- Overrides:
attackable
in classLivingEntity
-
getDimensions
- Overrides:
getDimensions
in classLivingEntity
-
getDimensionsMarker
-
getLightProbePosition
- Overrides:
getLightProbePosition
in classEntity
-