public class ArmorStandEntity extends LivingEntity
Entity.IMoveCallback| 修飾子とタイプ | フィールドと説明 |
|---|---|
static DataParameter<Rotations> |
BODY_ROTATION |
static DataParameter<Rotations> |
HEAD_ROTATION |
static DataParameter<Rotations> |
LEFT_ARM_ROTATION |
static DataParameter<Rotations> |
LEFT_LEG_ROTATION |
long |
punchCooldown
After punching the stand, the cooldown before you can punch it again without breaking it.
|
static DataParameter<Rotations> |
RIGHT_ARM_ROTATION |
static DataParameter<Rotations> |
RIGHT_LEG_ROTATION |
static DataParameter<java.lang.Byte> |
STATUS |
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| コンストラクタと説明 |
|---|
ArmorStandEntity(EntityType<? extends ArmorStandEntity> p_i50225_1_,
World p_i50225_2_) |
ArmorStandEntity(World worldIn,
double posX,
double posY,
double posZ) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ActionResultType |
applyPlayerInteraction(PlayerEntity player,
Vec3d vec,
Hand hand)
Applies the given player interaction to this Entity.
|
boolean |
attackable() |
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
boolean |
canBeHitWithPotion()
Returns false if the entity is an armor stand.
|
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
boolean |
canPickUpItem(ItemStack itemstackIn) |
protected void |
collideWithEntity(Entity entityIn) |
protected void |
collideWithNearbyEntities() |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
Rotations |
getBodyRotation() |
protected SoundEvent |
getDeathSound() |
protected SoundEvent |
getFallSound(int heightIn) |
Rotations |
getHeadRotation() |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
ItemStack |
getItemStackFromSlot(EquipmentSlotType slotIn) |
Rotations |
getLeftArmRotation() |
Rotations |
getLeftLegRotation() |
HandSide |
getPrimaryHand() |
PushReaction |
getPushReaction() |
Rotations |
getRightArmRotation() |
Rotations |
getRightLegRotation() |
boolean |
getShowArms() |
EntitySize |
getSize(Pose poseIn) |
protected float |
getStandingEyeHeight(Pose poseIn,
EntitySize sizeIn) |
double |
getYOffset()
Returns the Y Offset of this entity.
|
void |
handleStatusUpdate(byte id)
|
boolean |
hasMarker()
Gets whether the armor stand has marker enabled.
|
boolean |
hasNoBasePlate() |
boolean |
hitByEntity(Entity entityIn)
Called when a player attacks an entity.
|
boolean |
isChild()
If Animal, checks if the age timer is negative
|
boolean |
isImmuneToExplosions() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render.
|
boolean |
isServerWorld()
Returns whether the entity is in a server world
|
boolean |
isSmall() |
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onKillCommand()
Called by the /kill command.
|
void |
onStruckByLightning(LightningBoltEntity lightningBolt)
Called when a lightning bolt hits the entity.
|
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
recalculateSize() |
protected void |
registerData() |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
setBodyRotation(Rotations vec) |
void |
setHeadRotation(Rotations vec) |
void |
setInvisible(boolean invisible) |
void |
setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
setLeftArmRotation(Rotations vec) |
void |
setLeftLegRotation(Rotations vec) |
void |
setRenderYawOffset(float offset)
Set the render yaw offset
|
void |
setRightArmRotation(Rotations vec) |
void |
setRightLegRotation(Rotations vec) |
void |
setRotationYawHead(float rotation)
Sets the head's yaw rotation of the entity.
|
void |
tick()
Called to update the entity's position/logic.
|
void |
travel(Vec3d p_213352_1_) |
protected float |
updateDistance(float p_110146_1_,
float p_110146_2_) |
protected void |
updatePotionMetadata()
Clears potion metadata values if the entity has no potion effects.
|
void |
writeAdditional(CompoundNBT compound) |
addPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attemptTeleport, baseTick, blockUsingShield, canAttack, canAttack, canAttack, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropInventory, dropLoot, dropSpecialItems, findAmmo, frostWalk, func_213343_cS, func_225508_e_, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCapability, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getExperiencePoints, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLootContextBuilder, getLootTableResourceLocation, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, jump, knockBack, livingTick, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onLivingFall, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, playHurtSound, registerAttributes, remove, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRevengeTarget, setSprinting, shouldRiderFaceForward, spawnDrops, spinAttack, startSleeping, startSpinAttack, stopActiveHand, stopRiding, swingArm, updateArmSwingProgress, updateEntityActionState, updateFallState, updatePotionEffects, updateRidden, updateSpinAttack, wakeUpaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, areEyesInFluid, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToFire, isInLava, isInRangeToRender3d, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapscanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilitypublic static final DataParameter<java.lang.Byte> STATUS
public static final DataParameter<Rotations> HEAD_ROTATION
public static final DataParameter<Rotations> BODY_ROTATION
public static final DataParameter<Rotations> LEFT_ARM_ROTATION
public static final DataParameter<Rotations> RIGHT_ARM_ROTATION
public static final DataParameter<Rotations> LEFT_LEG_ROTATION
public static final DataParameter<Rotations> RIGHT_LEG_ROTATION
public long punchCooldown
public ArmorStandEntity(EntityType<? extends ArmorStandEntity> p_i50225_1_, World p_i50225_2_)
public ArmorStandEntity(World worldIn, double posX, double posY, double posZ)
public void recalculateSize()
recalculateSize クラス内 Entitypublic boolean isServerWorld()
isServerWorld クラス内 LivingEntityprotected void registerData()
registerData クラス内 LivingEntitypublic java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment クラス内 Entitypublic java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList クラス内 LivingEntitypublic ItemStack getItemStackFromSlot(EquipmentSlotType slotIn)
getItemStackFromSlot クラス内 LivingEntitypublic void setItemStackToSlot(EquipmentSlotType slotIn, ItemStack stack)
setItemStackToSlot クラス内 LivingEntitypublic boolean replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn)
replaceItemInInventory クラス内 Entitypublic boolean canPickUpItem(ItemStack itemstackIn)
canPickUpItem クラス内 LivingEntitypublic void writeAdditional(CompoundNBT compound)
writeAdditional クラス内 LivingEntitypublic void readAdditional(CompoundNBT compound)
readAdditional クラス内 LivingEntitypublic boolean canBePushed()
canBePushed クラス内 LivingEntityprotected void collideWithEntity(Entity entityIn)
collideWithEntity クラス内 LivingEntityprotected void collideWithNearbyEntities()
collideWithNearbyEntities クラス内 LivingEntitypublic ActionResultType applyPlayerInteraction(PlayerEntity player, Vec3d vec, Hand hand)
applyPlayerInteraction クラス内 Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom クラス内 LivingEntitypublic void handleStatusUpdate(byte id)
handleStatusUpdate クラス内 LivingEntitypublic boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist クラス内 Entityprotected float updateDistance(float p_110146_1_,
float p_110146_2_)
updateDistance クラス内 LivingEntityprotected float getStandingEyeHeight(Pose poseIn, EntitySize sizeIn)
getStandingEyeHeight クラス内 LivingEntitypublic double getYOffset()
getYOffset クラス内 Entitypublic void travel(Vec3d p_213352_1_)
travel クラス内 LivingEntitypublic void setRenderYawOffset(float offset)
setRenderYawOffset クラス内 LivingEntitypublic void setRotationYawHead(float rotation)
setRotationYawHead クラス内 LivingEntitypublic void tick()
tick クラス内 LivingEntityprotected void updatePotionMetadata()
updatePotionMetadata クラス内 LivingEntitypublic void setInvisible(boolean invisible)
setInvisible クラス内 Entitypublic boolean isChild()
isChild クラス内 LivingEntitypublic void onKillCommand()
onKillCommand クラス内 LivingEntitypublic boolean isImmuneToExplosions()
isImmuneToExplosions クラス内 Entitypublic PushReaction getPushReaction()
getPushReaction クラス内 Entitypublic boolean isSmall()
public boolean getShowArms()
public boolean hasNoBasePlate()
public boolean hasMarker()
public void setHeadRotation(Rotations vec)
public void setBodyRotation(Rotations vec)
public void setLeftArmRotation(Rotations vec)
public void setRightArmRotation(Rotations vec)
public void setLeftLegRotation(Rotations vec)
public void setRightLegRotation(Rotations vec)
public Rotations getHeadRotation()
public Rotations getBodyRotation()
public Rotations getLeftArmRotation()
public Rotations getRightArmRotation()
public Rotations getLeftLegRotation()
public Rotations getRightLegRotation()
public boolean canBeCollidedWith()
canBeCollidedWith クラス内 LivingEntitypublic boolean hitByEntity(Entity entityIn)
hitByEntity クラス内 Entitypublic HandSide getPrimaryHand()
getPrimaryHand クラス内 LivingEntityprotected SoundEvent getFallSound(int heightIn)
getFallSound クラス内 LivingEntity@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound クラス内 LivingEntity@Nullable protected SoundEvent getDeathSound()
getDeathSound クラス内 LivingEntitypublic void onStruckByLightning(LightningBoltEntity lightningBolt)
onStruckByLightning クラス内 Entitypublic boolean canBeHitWithPotion()
canBeHitWithPotion クラス内 LivingEntitypublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange クラス内 LivingEntitypublic boolean attackable()
attackable クラス内 LivingEntitypublic EntitySize getSize(Pose poseIn)
getSize クラス内 LivingEntity