类 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
- 所有已实现的接口:
SyncedDataHolder
,TraceableEntity
,EntityAccess
,Nameable
,ScoreHolder
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
Arrow
,SpectralArrow
,ThrownTrident
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.projectile.Projectile
Projectile.ProjectileFactory<T extends Projectile>
从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private static final double
private double
private ItemStack
private static final int
private static final int
private static final EntityDataAccessor
<Byte> private final it.unimi.dsi.fastutil.ints.IntOpenHashSet
private static final EntityDataAccessor
<Boolean> private static final float
protected int
private BlockState
private int
private ItemStack
private static final EntityDataAccessor
<Byte> private it.unimi.dsi.fastutil.ints.IntOpenHashSet
private static final int
int
private SoundEvent
private static final float
从类继承的字段 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, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器限定符构造器说明protected
AbstractArrow
(EntityType<? extends AbstractArrow> p_36721_, double p_343835_, double p_344593_, double p_344772_, Level p_36722_, ItemStack p_309639_, ItemStack p_343861_) protected
AbstractArrow
(EntityType<? extends AbstractArrow> p_36711_, LivingEntity p_342675_, Level p_36715_, ItemStack p_310436_, ItemStack p_343107_) protected
AbstractArrow
(EntityType<? extends AbstractArrow> p_332730_, Level p_335646_) -
方法概要
修饰符和类型方法说明void
addAdditionalSaveData
(CompoundTag p_36772_) private void
addBubbleParticles
(Vec3 p_363513_) private void
applyInertia
(float p_375588_) protected boolean
canHitEntity
(Entity p_36743_) protected void
defineSynchedData
(SynchedEntityData.Builder p_334076_) protected void
doKnockback
(LivingEntity p_342292_, DamageSource p_345063_) protected void
doPostHurtEffects
(LivingEntity p_36744_) protected EntityHitResult
findHitEntity
(Vec3 p_36758_, Vec3 p_36759_) double
protected double
protected SoundEvent
protected abstract ItemStack
protected final SoundEvent
protected Entity.MovementEmission
protected ItemStack
byte
getSlot
(int p_330583_) protected float
protected void
hitBlockEnchantmentEffects
(ServerLevel p_344773_, BlockHitResult p_343962_, ItemStack p_342314_) boolean
boolean
protected boolean
boolean
boolean
void
lerpMotion
(double p_36786_, double p_36787_, double p_36788_) void
lerpTo
(double p_36728_, double p_36729_, double p_36730_, float p_36731_, float p_36732_, int p_36733_) void
protected void
onHitBlock
(BlockHitResult p_36755_) protected void
onHitEntity
(EntityHitResult p_36757_) void
onInsideBubbleColumn
(boolean p_376658_) protected void
onItemBreak
(Item p_369255_) void
onSyncedDataUpdated
(EntityDataAccessor<?> p_370055_) void
playerTouch
(Player p_36766_) void
push
(double p_377928_, double p_377558_, double p_376841_) void
readAdditionalSaveData
(CompoundTag p_36761_) private void
void
setBaseDamage
(double p_36782_) void
setBaseDamageFromMob
(float p_345045_) void
setCritArrow
(boolean p_36763_) private void
setFlag
(int p_36738_, boolean p_36739_) protected void
setInGround
(boolean p_366805_) void
setNoPhysics
(boolean p_36791_) void
protected void
setPickupItemStack
(ItemStack p_329565_) private void
setPierceLevel
(byte p_36768_) void
setSoundEvent
(SoundEvent p_36741_) void
shoot
(double p_36775_, double p_36776_, double p_36777_, float p_36778_, float p_36779_) protected boolean
private boolean
boolean
shouldRenderAtSqrDistance
(double p_36726_) private void
private void
stepMoveAndHit
(BlockHitResult p_365483_) void
tick()
protected void
protected boolean
从类继承的方法 net.minecraft.world.entity.projectile.Projectile
applyOnProjectileSpawned, calculateHorizontalHurtKnockbackDirection, deflect, findOwner, getAddEntityPacket, getDimensionChangingDelay, getEffectSource, getMovementToShoot, getOwner, getPickRadius, hitTargetOrDeflectSelf, hurtServer, lerpRotation, mayBreak, mayInteract, onDeflection, onHit, ownedBy, recreateFromPacket, restoreFrom, setOwnerThroughUUID, shootFromRotation, spawnProjectile, spawnProjectile, spawnProjectileFromRotation, spawnProjectileUsingShoot, spawnProjectileUsingShoot, updateRotation
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, animateHurt, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, cancelLerp, canCollideWith, canControlVehicle, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTeleport, canTrample, canUpdate, canUpdate, canUsePortal, captureDrops, captureDrops, causeFallDamage, checkBelowWorld, checkDespawn, checkFallDamage, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensions, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengerRidingPosition, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPreciseBodyRotation, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, 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, getViewYRot, getVisualRotationYInDegrees, getX, getX, getXRot, getXRot, getY, getY, getYHeadRot, getYRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, igniteForTicks, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAffectedByBlocks, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isColliding, isControlledByClient, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterOrSwimmable, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, 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, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAboveBubbleCol, onAddedToWorld, onBelowWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onPassengerTurned, onRemoval, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, refreshDimensions, registryAccess, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, revive, rideTick, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getSoundFromFluidType, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
ARROW_BASE_DAMAGE
private static final double ARROW_BASE_DAMAGE- 另请参阅:
-
SHAKE_TIME
private static final int SHAKE_TIME- 另请参阅:
-
WATER_INERTIA
private static final float WATER_INERTIA- 另请参阅:
-
INERTIA
private static final float INERTIA- 另请参阅:
-
ID_FLAGS
-
PIERCE_LEVEL
-
IN_GROUND
-
FLAG_CRIT
private static final int FLAG_CRIT- 另请参阅:
-
FLAG_NOPHYSICS
private static final int FLAG_NOPHYSICS- 另请参阅:
-
lastState
-
inGroundTime
protected int inGroundTime -
pickup
-
shakeTime
public int shakeTime -
life
private int life -
baseDamage
private double baseDamage -
soundEvent
-
piercingIgnoreEntityIds
@Nullable private it.unimi.dsi.fastutil.ints.IntOpenHashSet piercingIgnoreEntityIds -
piercedAndKilledEntities
-
pickupItemStack
-
firedFromWeapon
-
ignoredEntities
private final it.unimi.dsi.fastutil.ints.IntOpenHashSet ignoredEntities
-
-
构造器详细资料
-
AbstractArrow
-
AbstractArrow
protected AbstractArrow(EntityType<? extends AbstractArrow> p_36721_, double p_343835_, double p_344593_, double p_344772_, Level p_36722_, ItemStack p_309639_, @Nullable ItemStack p_343861_) -
AbstractArrow
protected AbstractArrow(EntityType<? extends AbstractArrow> p_36711_, LivingEntity p_342675_, Level p_36715_, ItemStack p_310436_, @Nullable ItemStack p_343107_)
-
-
方法详细资料
-
setSoundEvent
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double p_36726_) - 覆盖:
shouldRenderAtSqrDistance
在类中Entity
-
defineSynchedData
- 指定者:
defineSynchedData
在类中Entity
-
shoot
public void shoot(double p_36775_, double p_36776_, double p_36777_, float p_36778_, float p_36779_) - 覆盖:
shoot
在类中Projectile
-
lerpTo
public void lerpTo(double p_36728_, double p_36729_, double p_36730_, float p_36731_, float p_36732_, int p_36733_) -
lerpMotion
public void lerpMotion(double p_36786_, double p_36787_, double p_36788_) - 覆盖:
lerpMotion
在类中Entity
-
onSyncedDataUpdated
- 指定者:
onSyncedDataUpdated
在接口中SyncedDataHolder
- 覆盖:
onSyncedDataUpdated
在类中Entity
-
tick
public void tick()- 覆盖:
tick
在类中Projectile
-
stepMoveAndHit
-
applyInertia
private void applyInertia(float p_375588_) -
addBubbleParticles
-
getDefaultGravity
protected double getDefaultGravity()- 覆盖:
getDefaultGravity
在类中Entity
-
shouldFall
private boolean shouldFall() -
startFalling
private void startFalling() -
isInGround
protected boolean isInGround() -
setInGround
protected void setInGround(boolean p_366805_) -
move
-
tickDespawn
protected void tickDespawn() -
resetPiercedEntities
private void resetPiercedEntities() -
onItemBreak
- 覆盖:
onItemBreak
在类中Projectile
-
onInsideBubbleColumn
public void onInsideBubbleColumn(boolean p_376658_) - 覆盖:
onInsideBubbleColumn
在类中Entity
-
push
public void push(double p_377928_, double p_377558_, double p_376841_) -
onHitEntity
- 覆盖:
onHitEntity
在类中Projectile
-
doKnockback
-
onHitBlock
- 覆盖:
onHitBlock
在类中Projectile
-
hitBlockEnchantmentEffects
protected void hitBlockEnchantmentEffects(ServerLevel p_344773_, BlockHitResult p_343962_, ItemStack p_342314_) -
getWeaponItem
- 覆盖:
getWeaponItem
在类中Entity
-
getDefaultHitGroundSoundEvent
-
getHitGroundSoundEvent
-
doPostHurtEffects
-
findHitEntity
-
canHitEntity
- 覆盖:
canHitEntity
在类中Projectile
-
addAdditionalSaveData
- 覆盖:
addAdditionalSaveData
在类中Projectile
-
readAdditionalSaveData
- 覆盖:
readAdditionalSaveData
在类中Projectile
-
setOwner
- 覆盖:
setOwner
在类中Projectile
-
playerTouch
- 覆盖:
playerTouch
在类中Entity
-
tryPickup
-
getPickupItem
-
getDefaultPickupItem
-
getMovementEmission
- 覆盖:
getMovementEmission
在类中Entity
-
getPickupItemStackOrigin
-
setBaseDamage
public void setBaseDamage(double p_36782_) -
getBaseDamage
public double getBaseDamage() -
isAttackable
public boolean isAttackable()- 覆盖:
isAttackable
在类中Entity
-
setCritArrow
public void setCritArrow(boolean p_36763_) -
setPierceLevel
private void setPierceLevel(byte p_36768_) -
setFlag
private void setFlag(int p_36738_, boolean p_36739_) -
setPickupItemStack
-
isCritArrow
public boolean isCritArrow() -
getPierceLevel
public byte getPierceLevel() -
setBaseDamageFromMob
public void setBaseDamageFromMob(float p_345045_) -
getWaterInertia
protected float getWaterInertia() -
setNoPhysics
public void setNoPhysics(boolean p_36791_) -
isNoPhysics
public boolean isNoPhysics() -
isPickable
public boolean isPickable()- 覆盖:
isPickable
在类中Projectile
-
getSlot
-
shouldBounceOnWorldBorder
protected boolean shouldBounceOnWorldBorder()- 覆盖:
shouldBounceOnWorldBorder
在类中Projectile
-