Class ArmorStand
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.decoration.ArmorStand
- All Implemented Interfaces:
DataComponentGetter,SyncedDataHolder,Attackable,EntityAccess,UniquelyIdentifyable,Nameable,ScoreHolder,Waypoint,WaypointTransmitter,IAttachmentHolder,IEntityExtension,ILivingEntityExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.waypoints.Waypoint
Waypoint.IconNested classes/interfaces inherited from interface net.minecraft.world.waypoints.WaypointTransmitter
WaypointTransmitter.BlockConnection, WaypointTransmitter.ChunkConnection, WaypointTransmitter.Connection, WaypointTransmitter.EntityAzimuthConnection, WaypointTransmitter.EntityBlockConnection, WaypointTransmitter.EntityChunkConnection -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final EntityDimensionsprivate static final doublestatic final intstatic final intstatic final intstatic final intstatic final EntityDataAccessor<Rotations> static final EntityDataAccessor<Byte> static final EntityDataAccessor<Rotations> static final EntityDataAccessor<Rotations> static final EntityDataAccessor<Rotations> static final EntityDataAccessor<Rotations> static final EntityDataAccessor<Rotations> static final Rotationsprivate static final intstatic final Rotationsprivate static final booleanstatic final Rotationsstatic final Rotationsprivate static final booleanprivate static final booleanstatic final Rotationsstatic final Rotationsprivate static final booleanprivate static final booleanstatic final intstatic final intprivate intprivate static final booleanprivate static final doubleprivate static final doubleprivate booleanlongAfter punching the stand, the cooldown before you can punch it again without breaking it.private static final doubleprivate static final EntityDimensionsstatic final intFields inherited from class net.minecraft.world.entity.LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerMemoryTime, lerpHeadSteps, lerpYHeadRot, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, TAG_ATTRIBUTES, TAG_BRAIN, TAG_DEATH_TIME, TAG_EQUIPMENT, TAG_FALL_FLYING, TAG_HEALTH, TAG_HURT_BY_TIMESTAMP, TAG_HURT_TIME, TAG_SLEEPING_POS, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoints.Waypoint
MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIERFields inherited from interface net.minecraft.world.waypoints.WaypointTransmitter
REALLY_FAR_DISTANCE -
Constructor Summary
ConstructorsConstructorDescriptionArmorStand(EntityType<? extends ArmorStand> pEntityType, Level pLevel) ArmorStand(Level pLevel, double pX, double pY, double pZ) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(ValueOutput pOutput) booleanprivate voidbrokenByAnything(ServerLevel pLevel, DamageSource pDamageSource) private voidbrokenByPlayer(ServerLevel pLevel, DamageSource pDamageSource) booleanbooleancanUseSlot(EquipmentSlot pSlot) private voidcauseDamage(ServerLevel pLevel, DamageSource pDamageSource, float pDamageAmount) static AttributeSupplier.Builderprotected voiddefineSynchedData(SynchedEntityData.Builder pBuilder) protected voidprivate EquipmentSlotgetClickedSlot(Vec3 pVector) protected SoundEventgetDefaultDimensions(Pose pPose) private EntityDimensionsgetDimensionsMarker(boolean pIsMarker) protected SoundEventgetHurtSound(DamageSource pDamageSource) getLightProbePosition(float pPartialTicks) voidhandleEntityEvent(byte pId) Handler forinvalid reference
World#setEntityStateprivate booleanbooleanhurtServer(ServerLevel pLevel, DamageSource pDamageSource, float pAmount) booleanignoreExplosion(Explosion pExplosion) interactAt(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.booleanbooleanisBaby()private booleanisDisabled(EquipmentSlot pSlot) booleanbooleanbooleanisMarker()booleanbooleanbooleanisSmall()voidkill(ServerLevel pLevel) voidonSyncedDataUpdated(EntityDataAccessor<?> pKey) private voidprotected voidprotected voidreadAdditionalSaveData(ValueInput pInput) voidvoidsetArmorStandPose(ArmorStand.ArmorStandPose p_422191_) private bytesetBit(byte pOldBit, int pOffset, boolean pValue) voidsetBodyPose(Rotations pBodyPose) voidsetHeadPose(Rotations pHeadPose) voidsetInvisible(boolean pInvisible) voidsetLeftArmPose(Rotations pLeftArmPose) voidsetLeftLegPose(Rotations pLeftLegPose) private voidsetMarker(boolean pMarker) Marker defines where if true, the size is 0 and will not be rendered or intractable.voidsetNoBasePlate(boolean pNoBasePlate) voidsetRightArmPose(Rotations pRightArmPose) voidsetRightLegPose(Rotations pRightLegPose) voidsetShowArms(boolean pShowArms) private voidsetSmall(boolean pSmall) voidsetYBodyRot(float pOffset) Set the body Y rotation of the entity.voidsetYHeadRot(float pRotation) Sets the head's Y rotation of the entity.booleanshouldRenderAtSqrDistance(double pDistance) Checks if the entity is in range to render.booleanshowArms()booleanprivate voidbooleanskipAttackInteraction(Entity pEntity) Called when a player attacks an entity.private booleanswapItem(Player pPlayer, EquipmentSlot pSlot, ItemStack pStack, InteractionHand pHand) voidthunderHit(ServerLevel pLevel, LightningBolt pLightning) protected voidtickHeadTurn(float pYBodyRot) voidprotected voidMethods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, aiStep, animateHurt, applyInput, applyItemBlocking, areAllEffectsAmbient, baseTick, blockedByItem, blockUsingItem, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttackType, canBeAffected, canBeSeenAsEnemy, canBreatheUnderwater, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlide, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createEquipment, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doHurtTarget, drop, dropAllDeathLoot, dropCustomDeathLoot, dropEquipment, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBaseExperienceReward, getBedOrientation, getBlockSpeedFactor, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getEffect, getEffectBlendFactor, getEffectiveGravity, getEquipmentSlotForItem, getEquipSound, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getInterpolation, getItemBlockingWith, getItemBySlot, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayer, getLastHurtByPlayerMemoryTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTableSeed, getLuck, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSlot, getSlotForHand, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, hurtArmor, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isJumping, isLookingAtMe, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, knockback, lerpHeadRotationStep, lerpHeadTo, lookAt, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, maxUpStep, onAttributeUpdated, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onRemoval, playBlockFallSound, playHurtSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, rideTick, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldShowName, skipDropExperience, spawnItemParticles, startSleeping, startUsingItem, stopFallFlying, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tick, tickDeath, tickEffects, tickRidden, travelFlying, travelFlying, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateSwingTime, updateUsingItem, updateWalkAnimation, wasExperienceConsumed, waypointIcon, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSimulateMovement, canSpawnSprintParticle, canSprint, canTeleport, canTrample, captureDrops, captureDrops, castComponentValue, checkBelowWorld, checkDespawn, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, dropAllLeashConnections, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLightLevelDependentMagicValue, getLookAngle, getLootTable, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, interact, is, isAddedToLevel, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isClientAuthoritative, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isInClouds, isInFluidType, isInFluidType, isInLava, isInLiquid, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrRain, isLocalClientAuthoritative, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lavaIgnite, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAboveBubbleColumn, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, problemPath, processFlappingMovement, processPortalCooldown, propagateFallToPassengers, push, push, reapplyPosition, registryAccess, removeAfterChangingDimensions, removeLatestMovementRecording, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shearOffAllLeashConnections, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, showVehicleHealth, snapTo, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncData, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportSpectators, teleportTo, teleportTo, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoCanPushEntityFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.core.component.DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, hasMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, shouldRiderSitMethods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluidMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
WOBBLE_TIME
public static final int WOBBLE_TIME- See Also:
-
ENABLE_ARMS
private static final boolean ENABLE_ARMS- See Also:
-
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
-
FEET_OFFSET
private static final double FEET_OFFSET- See Also:
-
CHEST_OFFSET
private static final double CHEST_OFFSET- See Also:
-
LEGS_OFFSET
private static final double LEGS_OFFSET- See Also:
-
HEAD_OFFSET
private static final double HEAD_OFFSET- See Also:
-
DISABLE_TAKING_OFFSET
public static final int DISABLE_TAKING_OFFSET- See Also:
-
DISABLE_PUTTING_OFFSET
public static final int DISABLE_PUTTING_OFFSET- See Also:
-
CLIENT_FLAG_SMALL
public static final int CLIENT_FLAG_SMALL- See Also:
-
CLIENT_FLAG_SHOW_ARMS
public static final int CLIENT_FLAG_SHOW_ARMS- See Also:
-
CLIENT_FLAG_NO_BASEPLATE
public static final int CLIENT_FLAG_NO_BASEPLATE- See Also:
-
CLIENT_FLAG_MARKER
public static final int CLIENT_FLAG_MARKER- See Also:
-
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
-
DEFAULT_INVISIBLE
private static final boolean DEFAULT_INVISIBLE- See Also:
-
DEFAULT_DISABLED_SLOTS
private static final int DEFAULT_DISABLED_SLOTS- See Also:
-
DEFAULT_SMALL
private static final boolean DEFAULT_SMALL- See Also:
-
DEFAULT_SHOW_ARMS
private static final boolean DEFAULT_SHOW_ARMS- See Also:
-
DEFAULT_NO_BASE_PLATE
private static final boolean DEFAULT_NO_BASE_PLATE- See Also:
-
DEFAULT_MARKER
private static final boolean DEFAULT_MARKER- See Also:
-
invisible
private boolean invisible -
lastHit
public long lastHitAfter punching the stand, the cooldown before you can punch it again without breaking it. -
disabledSlots
private int disabledSlots
-
-
Constructor Details
-
ArmorStand
-
ArmorStand
-
-
Method Details
-
createAttributes
-
refreshDimensions
public void refreshDimensions()- Overrides:
refreshDimensionsin classEntity
-
hasPhysics
private boolean hasPhysics() -
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin classEntity
-
defineSynchedData
- Overrides:
defineSynchedDatain classLivingEntity
-
canUseSlot
- Overrides:
canUseSlotin classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classLivingEntity
-
doPush
- Overrides:
doPushin classLivingEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntitiesin classLivingEntity
-
interactAt
Applies the given player interaction to this Entity.- Overrides:
interactAtin classEntity
-
getClickedSlot
-
isDisabled
-
swapItem
private boolean swapItem(Player pPlayer, EquipmentSlot pSlot, ItemStack pStack, InteractionHand pHand) -
hurtServer
- Overrides:
hurtServerin classLivingEntity
-
handleEntityEvent
public void handleEntityEvent(byte pId) Handler forinvalid reference
World#setEntityState- Overrides:
handleEntityEventin classLivingEntity
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double pDistance) Checks if the entity is in range to render.- Overrides:
shouldRenderAtSqrDistancein classEntity
-
showBreakingParticles
private void showBreakingParticles() -
causeDamage
-
brokenByPlayer
-
brokenByAnything
-
playBrokenSound
private void playBrokenSound() -
tickHeadTurn
protected void tickHeadTurn(float pYBodyRot) - Overrides:
tickHeadTurnin classLivingEntity
-
travel
- Overrides:
travelin classLivingEntity
-
setYBodyRot
public void setYBodyRot(float pOffset) Set the body Y rotation of the entity.- Overrides:
setYBodyRotin classLivingEntity
-
setYHeadRot
public void setYHeadRot(float pRotation) Sets the head's Y rotation of the entity.- Overrides:
setYHeadRotin classLivingEntity
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- Overrides:
updateInvisibilityStatusin classLivingEntity
-
setInvisible
public void setInvisible(boolean pInvisible) - Overrides:
setInvisiblein classEntity
-
isBaby
public boolean isBaby()- Overrides:
isBabyin classLivingEntity
-
kill
- Overrides:
killin classLivingEntity
-
ignoreExplosion
- Overrides:
ignoreExplosionin classEntity
-
getPistonPushReaction
- Overrides:
getPistonPushReactionin classEntity
-
isIgnoringBlockTriggers
public boolean isIgnoringBlockTriggers()- Overrides:
isIgnoringBlockTriggersin classEntity
-
setSmall
private void setSmall(boolean pSmall) -
isSmall
public boolean isSmall() -
setShowArms
public void setShowArms(boolean pShowArms) -
showArms
public boolean showArms() -
setNoBasePlate
public void setNoBasePlate(boolean pNoBasePlate) -
showBasePlate
public boolean showBasePlate() -
setMarker
private void setMarker(boolean pMarker) Marker defines where if true, the size is 0 and will not be rendered or intractable. -
isMarker
public boolean isMarker() -
setBit
private byte setBit(byte pOldBit, int pOffset, boolean pValue) -
setHeadPose
-
setBodyPose
-
setLeftArmPose
-
setRightArmPose
-
setLeftLegPose
-
setRightLegPose
-
getHeadPose
-
getBodyPose
-
getLeftArmPose
-
getRightArmPose
-
getLeftLegPose
-
getRightLegPose
-
isPickable
public boolean isPickable()- Overrides:
isPickablein classLivingEntity
-
skipAttackInteraction
Called when a player attacks an entity. If this returns true the attack will not happen.- Overrides:
skipAttackInteractionin classEntity
-
getMainArm
- Specified by:
getMainArmin classLivingEntity
-
getFallSounds
- Overrides:
getFallSoundsin classLivingEntity
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity
-
thunderHit
- Overrides:
thunderHitin classEntity
-
isAffectedByPotions
public boolean isAffectedByPotions()- Overrides:
isAffectedByPotionsin classLivingEntity
-
onSyncedDataUpdated
- Specified by:
onSyncedDataUpdatedin interfaceSyncedDataHolder- Overrides:
onSyncedDataUpdatedin classLivingEntity
-
attackable
public boolean attackable()- Overrides:
attackablein classLivingEntity
-
getDefaultDimensions
- Overrides:
getDefaultDimensionsin classLivingEntity
-
getDimensionsMarker
-
getLightProbePosition
- Overrides:
getLightProbePositionin classEntity
-
getPickResult
- Overrides:
getPickResultin classEntity
-
canBeSeenByAnyone
public boolean canBeSeenByAnyone()- Overrides:
canBeSeenByAnyonein classLivingEntity
-
setArmorStandPose
-
getArmorStandPose
-