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:
CommandSource,SyncedDataHolder,Attackable,EntityAccess,Nameable,ScoreHolder,IAttachmentHolder,IEntityExtension,ILivingEntityExtension,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested 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.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack> private static final EntityDimensionsprivate Rotationsprivate 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> private static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsprivate static final Rotationsstatic final intstatic final intprivate intprivate static final booleanprivate static final doubleprivate final NonNullList<ItemStack> private static final doubleprivate Rotationsprivate booleanlongAfter punching the stand, the cooldown before you can punch it again without breaking it.private Rotationsprivate Rotationsprivate static final doubleprivate static final EntityDimensionsprivate Rotationsprivate Rotationsstatic final intFields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, 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, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, 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.commands.CommandSource
NULLFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionArmorStand(EntityType<? extends ArmorStand> pEntityType, Level pLevel) ArmorStand(Level pLevel, double pX, double pY, double pZ) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag pCompound) booleanprivate voidbrokenByAnything(ServerLevel pLevel, DamageSource pDamageSource) private voidbrokenByPlayer(ServerLevel pLevel, DamageSource pDamageSource) booleanbooleancanTakeItem(ItemStack pItemstack) booleancanUseSlot(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) getItemBySlot(EquipmentSlot pSlot) getLightProbePosition(float pPartialTicks) voidhandleEntityEvent(byte pId) Handler forinvalid reference
World#setEntityStateprivate booleanbooleanhurt(DamageSource pSource, float pAmount) Called when the entity is attacked.booleanignoreExplosion(Explosion pExplosion) interactAt(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.booleanbooleanisBaby()private booleanisDisabled(EquipmentSlot pSlot) booleanbooleanbooleanisMarker()booleanbooleanbooleanbooleanbooleanisSmall()voidkill()voidonSyncedDataUpdated(EntityDataAccessor<?> pKey) private voidprotected voidvoidreadAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private voidreadPose(CompoundTag pCompound) voidprivate bytesetBit(byte pOldBit, int pOffset, boolean pValue) voidsetBodyPose(Rotations pBodyPose) voidsetHeadPose(Rotations pHeadPose) voidsetInvisible(boolean pInvisible) voidsetItemSlot(EquipmentSlot pSlot, ItemStack pStack) 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.private 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) voidtick()protected floattickHeadTurn(float pYRot, float pAnimStep) voidprotected voidprivate CompoundTagMethods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, aiStep, animateHurt, areAllEffectsAmbient, baseTick, blockedByShield, blockUsingShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenAsEnemy, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, canUsePortal, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doHurtTarget, dropAllDeathLoot, dropCustomDeathLoot, dropEquipment, dropExperience, dropFromLootTable, eat, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBaseExperienceReward, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSlotForHand, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, playHurtSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeEffectsCuredBy, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, 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, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, 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, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, interact, is, isAddedToLevel, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, syncData, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, 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.commands.CommandSource
alwaysAcceptsMethods 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, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, serializeNBT, 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
-
handItems
-
armorItems
-
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 -
headPose
-
bodyPose
-
leftArmPose
-
rightArmPose
-
leftLegPose
-
rightLegPose
-
-
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
-
getHandSlots
- Overrides:
getHandSlotsin classLivingEntity
-
getArmorSlots
- Specified by:
getArmorSlotsin classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlotin classLivingEntity
-
canUseSlot
- Overrides:
canUseSlotin classLivingEntity
-
setItemSlot
- Specified by:
setItemSlotin classLivingEntity
-
canTakeItem
- Overrides:
canTakeItemin classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
readAdditionalSaveData
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readAdditionalSaveDatain classLivingEntity
-
readPose
-
writePose
-
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) -
hurt
Called when the entity is attacked.- Overrides:
hurtin 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 float tickHeadTurn(float pYRot, float pAnimStep) - 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
-
tick
public void tick()- Overrides:
tickin 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
public void 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) -
isShowArms
public boolean isShowArms() -
setNoBasePlate
public void setNoBasePlate(boolean pNoBasePlate) -
isNoBasePlate
public boolean isNoBasePlate() -
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
-