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
FieldsModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>private static final EntitySizeprivate Rotationsstatic 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 Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate intprivate final NonNullList<ItemStack>private Rotationsprivate booleanlongprivate Rotationsprivate Rotationsprivate static final EntitySizeprivate Rotationsprivate RotationsFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.command.ICommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionArmorStandEntity(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 TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundNBT p_213281_1_) booleanprivate voidbrokenByAnything(DamageSource p_213816_1_) private voidbrokenByPlayer(DamageSource p_213815_1_) booleancanTakeItem(ItemStack p_213365_1_) private voidcauseDamage(DamageSource p_213817_1_, float p_213817_2_) protected voidprotected voidprivate EquipmentSlotTypegetClickedSlot(Vector3d p_190772_1_) protected SoundEventgetDimensions(Pose p_213305_1_) private EntitySizegetDimensionsMarker(boolean p_242330_1_) protected SoundEventgetFallDamageSound(int p_184588_1_) protected SoundEventgetHurtSound(DamageSource p_184601_1_) getItemBySlot(EquipmentSlotType p_184582_1_) getLightProbePosition(float p_241842_1_) doubleprotected floatgetStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_) voidhandleEntityEvent(byte p_70103_1_) private booleanbooleanhurt(DamageSource p_70097_1_, float p_70097_2_) booleaninteractAt(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) booleanbooleanisBaby()private booleanisDisabled(EquipmentSlotType p_184796_1_) booleanbooleanisMarker()booleanbooleanbooleanbooleanbooleanisSmall()voidkill()voidonSyncedDataUpdated(DataParameter<?> p_184206_1_) private voidprotected voidvoidreadAdditionalSaveData(CompoundNBT p_70037_1_) private voidreadPose(CompoundNBT p_175416_1_) voidprivate bytesetBit(byte p_184797_1_, int p_184797_2_, boolean p_184797_3_) voidsetBodyPose(Rotations p_175424_1_) voidsetHeadPose(Rotations p_175415_1_) voidsetInvisible(boolean p_82142_1_) voidsetItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) voidsetLeftArmPose(Rotations p_175405_1_) voidsetLeftLegPose(Rotations p_175417_1_) private voidsetMarker(boolean p_181027_1_) private voidsetNoBasePlate(boolean p_175426_1_) voidsetRightArmPose(Rotations p_175428_1_) voidsetRightLegPose(Rotations p_175427_1_) private voidsetShowArms(boolean p_175413_1_) booleanprivate voidsetSmall(boolean p_175420_1_) voidsetYBodyRot(float p_181013_1_) voidsetYHeadRot(float p_70034_1_) booleanshouldRenderAtSqrDistance(double p_70112_1_) private voidbooleanskipAttackInteraction(Entity p_85031_1_) private booleanswapItem(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) voidthunderHit(ServerWorld p_241841_1_, LightningBoltEntity p_241841_2_) voidtick()protected floattickHeadTurn(float p_110146_1_, float p_110146_2_) voidprotected voidprivate CompoundNBTMethods 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, updateSwingTimeMethods 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, updateSwimmingMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods 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:
refreshDimensionsin classEntity
-
hasPhysics
private boolean hasPhysics() -
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin classLivingEntity
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classLivingEntity
-
getHandSlots
- Overrides:
getHandSlotsin classEntity
-
getArmorSlots
- Specified by:
getArmorSlotsin classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlotin classLivingEntity
-
setItemSlot
- Specified by:
setItemSlotin classLivingEntity
-
setSlot
-
canTakeItem
- Overrides:
canTakeItemin classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
readPose
-
writePose
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classLivingEntity
-
doPush
- Overrides:
doPushin classLivingEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntitiesin classLivingEntity
-
interactAt
public ActionResultType interactAt(PlayerEntity p_184199_1_, Vector3d p_184199_2_, Hand p_184199_3_) - Overrides:
interactAtin 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:
hurtin classLivingEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEventin classLivingEntity
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double p_70112_1_) - Overrides:
shouldRenderAtSqrDistancein 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:
tickHeadTurnin classLivingEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeightin classLivingEntity
-
getMyRidingOffset
public double getMyRidingOffset()- Overrides:
getMyRidingOffsetin classEntity
-
travel
- Overrides:
travelin classLivingEntity
-
setYBodyRot
public void setYBodyRot(float p_181013_1_) - Overrides:
setYBodyRotin classLivingEntity
-
setYHeadRot
public void setYHeadRot(float p_70034_1_) - Overrides:
setYHeadRotin classLivingEntity
-
tick
public void tick()- Overrides:
tickin classLivingEntity
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- Overrides:
updateInvisibilityStatusin classLivingEntity
-
setInvisible
public void setInvisible(boolean p_82142_1_) - Overrides:
setInvisiblein classEntity
-
isBaby
public boolean isBaby()- Overrides:
isBabyin classLivingEntity
-
kill
public void kill()- Overrides:
killin classLivingEntity
-
ignoreExplosion
public boolean ignoreExplosion()- Overrides:
ignoreExplosionin classEntity
-
getPistonPushReaction
- Overrides:
getPistonPushReactionin 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:
isPickablein classLivingEntity
-
skipAttackInteraction
- Overrides:
skipAttackInteractionin classEntity
-
getMainArm
- Specified by:
getMainArmin classLivingEntity
-
getFallDamageSound
- Overrides:
getFallDamageSoundin classLivingEntity
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity
-
thunderHit
- Overrides:
thunderHitin classEntity
-
isAffectedByPotions
public boolean isAffectedByPotions()- Overrides:
isAffectedByPotionsin classLivingEntity
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdatedin classLivingEntity
-
attackable
public boolean attackable()- Overrides:
attackablein classLivingEntity
-
getDimensions
- Overrides:
getDimensionsin classLivingEntity
-
getDimensionsMarker
-
getLightProbePosition
- Overrides:
getLightProbePositionin classEntity
-