Class AbstractArrow
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.projectile.Projectile
net.minecraft.world.entity.projectile.AbstractArrow
- All Implemented Interfaces:
- CommandSource,- TraceableEntity,- EntityAccess,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeEntity,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- Arrow,- SpectralArrow,- ThrownTrident
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final doubleprivate doubleprivate static final intprivate static final intprivate static final intprivate static final EntityDataAccessor<Byte>private final it.unimi.dsi.fastutil.ints.IntOpenHashSetprotected booleanprotected intprivate intprivate BlockStateprivate intprivate static final EntityDataAccessor<Byte>private it.unimi.dsi.fastutil.ints.IntOpenHashSetintprivate SoundEventFields inherited from class net.minecraft.world.entity.EntityBASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, 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, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, 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 interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractArrow(EntityType<? extends AbstractArrow> p_36711_, double p_36712_, double p_36713_, double p_36714_, Level p_36715_) protectedAbstractArrow(EntityType<? extends AbstractArrow> p_36717_, LivingEntity p_36718_, Level p_36719_) protectedAbstractArrow(EntityType<? extends AbstractArrow> p_36721_, Level p_36722_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag p_36772_) protected booleancanHitEntity(Entity p_36743_) protected voidprotected voiddoPostHurtEffects(LivingEntity p_36744_) protected EntityHitResultfindHitEntity(Vec3 p_36758_, Vec3 p_36759_) doubleprotected SoundEventprotected floatgetEyeHeight(Pose p_36752_, EntityDimensions p_36753_) protected final SoundEventintprotected Entity.MovementEmissionprotected abstract ItemStackbyteprotected floatbooleanbooleanbooleanvoidlerpMotion(double p_36786_, double p_36787_, double p_36788_) voidlerpTo(double p_36728_, double p_36729_, double p_36730_, float p_36731_, float p_36732_, int p_36733_) voidprotected voidonHitBlock(BlockHitResult p_36755_) protected voidonHitEntity(EntityHitResult p_36757_) voidplayerTouch(Player p_36766_) voidreadAdditionalSaveData(CompoundTag p_36761_) private voidvoidsetBaseDamage(double p_36782_) voidsetCritArrow(boolean p_36763_) voidsetEnchantmentEffectsFromEntity(LivingEntity p_36746_, float p_36747_) private voidsetFlag(int p_36738_, boolean p_36739_) voidsetKnockback(int p_36736_) voidsetNoPhysics(boolean p_36791_) voidvoidsetPierceLevel(byte p_36768_) voidsetShotFromCrossbow(boolean p_36794_) voidsetSoundEvent(SoundEvent p_36741_) voidshoot(double p_36775_, double p_36776_, double p_36777_, float p_36778_, float p_36779_) booleanprivate booleanbooleanshouldRenderAtSqrDistance(double p_36726_) private voidvoidtick()protected voidprotected booleanMethods inherited from class net.minecraft.world.entity.projectile.ProjectilegetAddEntityPacket, getEffectSource, getOwner, lerpRotation, mayInteract, onHit, ownedBy, recreateFromPacket, shootFromRotation, updateRotationMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkFallDamage, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDimensionsForge, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengerRidingPosition, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, hurt, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPickable, isPushable, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killedEntity, lavaHurt, lerpHeadTo, lerpPositionAndRotationStep, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, level, limitPistonMovement, load, lookAt, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onBelowWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, ridingOffset, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setItemSlot, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getEyeHeightForge, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
- 
Field Details- 
ARROW_BASE_DAMAGEprivate static final double ARROW_BASE_DAMAGE- See Also:
 
- 
ID_FLAGS
- 
PIERCE_LEVEL
- 
FLAG_CRITprivate static final int FLAG_CRIT- See Also:
 
- 
FLAG_NOPHYSICSprivate static final int FLAG_NOPHYSICS- See Also:
 
- 
FLAG_CROSSBOWprivate static final int FLAG_CROSSBOW- See Also:
 
- 
lastState
- 
inGroundprotected boolean inGround
- 
inGroundTimeprotected int inGroundTime
- 
pickup
- 
shakeTimepublic int shakeTime
- 
lifeprivate int life
- 
baseDamageprivate double baseDamage
- 
knockbackprivate int knockback
- 
soundEvent
- 
piercingIgnoreEntityIds@Nullable private it.unimi.dsi.fastutil.ints.IntOpenHashSet piercingIgnoreEntityIds
- 
piercedAndKilledEntities
- 
ignoredEntitiesprivate final it.unimi.dsi.fastutil.ints.IntOpenHashSet ignoredEntities
 
- 
- 
Constructor Details- 
AbstractArrow
- 
AbstractArrowprotected AbstractArrow(EntityType<? extends AbstractArrow> p_36711_, double p_36712_, double p_36713_, double p_36714_, Level p_36715_) 
- 
AbstractArrowprotected AbstractArrow(EntityType<? extends AbstractArrow> p_36717_, LivingEntity p_36718_, Level p_36719_) 
 
- 
- 
Method Details- 
setSoundEvent
- 
shouldRenderAtSqrDistancepublic boolean shouldRenderAtSqrDistance(double p_36726_) - Overrides:
- shouldRenderAtSqrDistancein class- Entity
 
- 
defineSynchedDataprotected void defineSynchedData()- Specified by:
- defineSynchedDatain class- Entity
 
- 
shootpublic void shoot(double p_36775_, double p_36776_, double p_36777_, float p_36778_, float p_36779_) - Overrides:
- shootin class- Projectile
 
- 
lerpTopublic void lerpTo(double p_36728_, double p_36729_, double p_36730_, float p_36731_, float p_36732_, int p_36733_) 
- 
lerpMotionpublic void lerpMotion(double p_36786_, double p_36787_, double p_36788_) - Overrides:
- lerpMotionin class- Projectile
 
- 
tickpublic void tick()- Overrides:
- tickin class- Projectile
 
- 
shouldFallprivate boolean shouldFall()
- 
startFallingprivate void startFalling()
- 
move
- 
tickDespawnprotected void tickDespawn()
- 
resetPiercedEntitiesprivate void resetPiercedEntities()
- 
onHitEntity- Overrides:
- onHitEntityin class- Projectile
 
- 
onHitBlock- Overrides:
- onHitBlockin class- Projectile
 
- 
getDefaultHitGroundSoundEvent
- 
getHitGroundSoundEvent
- 
doPostHurtEffects
- 
findHitEntity
- 
canHitEntity- Overrides:
- canHitEntityin class- Projectile
 
- 
addAdditionalSaveData- Overrides:
- addAdditionalSaveDatain class- Projectile
 
- 
readAdditionalSaveData- Overrides:
- readAdditionalSaveDatain class- Projectile
 
- 
setOwner- Overrides:
- setOwnerin class- Projectile
 
- 
playerTouch- Overrides:
- playerTouchin class- Entity
 
- 
tryPickup
- 
getPickupItem
- 
getMovementEmission- Overrides:
- getMovementEmissionin class- Entity
 
- 
setBaseDamagepublic void setBaseDamage(double p_36782_) 
- 
getBaseDamagepublic double getBaseDamage()
- 
setKnockbackpublic void setKnockback(int p_36736_) 
- 
getKnockbackpublic int getKnockback()
- 
isAttackablepublic boolean isAttackable()- Overrides:
- isAttackablein class- Entity
 
- 
getEyeHeight- Overrides:
- getEyeHeightin class- Entity
 
- 
setCritArrowpublic void setCritArrow(boolean p_36763_) 
- 
setPierceLevelpublic void setPierceLevel(byte p_36768_) 
- 
setFlagprivate void setFlag(int p_36738_, boolean p_36739_) 
- 
isCritArrowpublic boolean isCritArrow()
- 
shotFromCrossbowpublic boolean shotFromCrossbow()
- 
getPierceLevelpublic byte getPierceLevel()
- 
setEnchantmentEffectsFromEntity
- 
getWaterInertiaprotected float getWaterInertia()
- 
setNoPhysicspublic void setNoPhysics(boolean p_36791_) 
- 
isNoPhysicspublic boolean isNoPhysics()
- 
setShotFromCrossbowpublic void setShotFromCrossbow(boolean p_36794_) 
 
-