net.minecraft.world.entity.projectile

public abstract class AbstractArrow

extends Projectile

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, TraceableEntity

cnd
net.minecraft.world.entity.projectile.AbstractArrow
net.minecraft.class_1665
net.minecraft.entity.projectile.PersistentProjectileEntity
net.minecraft.src.C_1151_
net.minecraft.world.entity.projectile.EntityArrow

Field summary

Modifier and TypeField
private static final double
f
ARROW_BASE_DAMAGE
field_30657
field_30657
f_150120_
private static final EntityDataAccessor<Byte>
g
ID_FLAGS
field_7573
PROJECTILE_FLAGS
f_36707_
private static final EntityDataAccessor<Byte>
h
PIERCE_LEVEL
field_7589
PIERCE_LEVEL
f_36708_
private static final int
i
FLAG_CRIT
field_30654
CRITICAL_FLAG
f_150117_
private static final int
j
FLAG_NOPHYSICS
field_30655
NO_CLIP_FLAG
f_150118_
private BlockState
k
lastState
field_7586
inBlockState
f_36696_
protected boolean
b
inGround
field_7588
inGround
f_36703_
protected int
c
inGroundTime
field_7576
inGroundTime
f_36704_
public AbstractArrow$Pickup
d
pickup
field_7572
pickupType
f_36705_
public int
e
shakeTime
field_7574
shake
f_36706_
private int
l
life
field_7578
life
f_36697_
private double
m
baseDamage
field_7571
damage
f_36698_
private SoundEvent
n
soundEvent
field_7584
sound
f_36700_
private it.unimi.dsi.fastutil.ints.IntOpenHashSet
o
piercingIgnoreEntityIds
field_7590
piercedEntities
f_36701_
private List<Entity>
p
piercedAndKilledEntities
field_7579
piercingKilledEntities
f_36702_
private ItemStack
q
pickupItemStack
field_46970
stack
f_303749_
private ItemStack
r
firedFromWeapon
field_51620
weapon
f_336848_

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractArrow> p_335646_, Level arg1)
protected (EntityType<? extends AbstractArrow> type, double x, double y, double z, Level world, ItemStack stack, ItemStack weapon)
protected (EntityType<? extends AbstractArrow> type, LivingEntity owner, Level world, ItemStack stack, ItemStack shotFrom)

Method summary

Modifier and TypeMethod
public void
b(avo arg0)
setSoundEvent(SoundEvent arg0)
method_7444(class_3414 arg0)
setSound(SoundEvent sound)
m_36740_(C_123_ arg0)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
m_6783_(double arg0)
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
c(double arg0, double arg1, double arg2, float arg3, float arg4)
shoot(double arg0, double arg1, double arg2, float arg3, float arg4)
method_7485(double arg0, double arg1, double arg2, float arg3, float arg4)
setVelocity(double arg0, double arg1, double arg2, float arg3, float arg4)
m_6686_(double p_36776_, double p_36778_, double arg2, float arg3, float arg4)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
lerpTo(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
method_5759(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
updateTrackedPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
m_6453_(double p_36729_, double p_36731_, double p_36733_, float arg3, float arg4, int arg5)
public void
l(double arg0, double arg1, double arg2)
lerpMotion(double arg0, double arg1, double arg2)
method_5750(double arg0, double arg1, double arg2)
setVelocityClient(double arg0, double arg1, double arg2)
m_6001_(double p_36787_, double arg1, double arg2)
public void
l()
tick()
method_5773()
tick()
m_8119_()
protected double
aZ()
getDefaultGravity()
method_7490()
getGravity()
m_319564_()
private boolean
F()
shouldFall()
method_26351()
shouldFall()
m_36798_()
private void
J()
startFalling()
method_26352()
fall()
m_36799_()
public void
a(bts arg0, exc arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
m_6478_(C_531_ p_36750_, C_3046_ arg1)
protected void
p()
tickDespawn()
method_7446()
age()
m_6901_()
private void
K()
resetPiercedEntities()
method_7453()
clearPiercingStatus()
m_36723_()
protected void
a(ewz arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
m_5790_(C_3042_ arg0)
protected void
a(btn arg0, brk arg1)
doKnockback(LivingEntity arg0, DamageSource arg1)
method_59957(class_1309 arg0, class_1282 arg1)
knockback(LivingEntity target, DamageSource source)
m_338617_(C_524_ p_345063_, C_489_ arg1)
protected void
a(ewy arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
m_8060_(C_3041_ arg0)
protected void
a(aqu arg0, ewy arg1, cuq arg2)
hitBlockEnchantmentEffects(ServerLevel arg0, BlockHitResult arg1, ItemStack arg2)
method_59956(class_3218 arg0, class_3965 arg1, class_1799 arg2)
onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack)
m_339443_(C_12_ p_343962_, C_3041_ p_342314_, C_1391_ arg2)
public ItemStack
dS()
getWeaponItem()
method_59958()
getWeaponStack()
m_338776_()
protected SoundEvent
t()
getDefaultHitGroundSoundEvent()
method_7440()
getHitSound()
m_7239_()
protected final SoundEvent
v()
getHitGroundSoundEvent()
method_20011()
getSound()
m_36784_()
protected void
a(btn arg0)
doPostHurtEffects(LivingEntity arg0)
method_7450(class_1309 arg0)
onHit(LivingEntity target)
m_7761_(C_524_ arg0)
protected EntityHitResult
a(exc arg0, exc arg1)
findHitEntity(Vec3 arg0, Vec3 arg1)
method_7434(class_243 arg0, class_243 arg1)
getEntityCollision(Vec3d currentPosition, Vec3d nextPosition)
m_6351_(C_3046_ p_36759_, C_3046_ arg1)
protected boolean
b(bsr arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity arg0)
m_5603_(C_507_ arg0)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
c(bsr arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity arg0)
m_5602_(C_507_ arg0)
public void
b_(cmx arg0)
playerTouch(Player arg0)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
m_6123_(C_1141_ arg0)
protected boolean
a(cmx arg0)
tryPickup(Player arg0)
method_34713(class_1657 arg0)
tryPickup(PlayerEntity player)
m_142470_(C_1141_ arg0)
protected ItemStack
w()
getPickupItem()
method_7445()
asItemStack()
m_7941_()
protected abstract ItemStack
x()
getDefaultPickupItem()
method_57314()
getDefaultItemStack()
m_321416_()
protected Entity$MovementEmission
bc()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
public ItemStack
y()
getPickupItemStackOrigin()
method_54759()
getItemStack()
m_307069_()
public void
h(double arg0)
setBaseDamage(double arg0)
method_7438(double arg0)
setDamage(double damage)
m_36781_(double arg0)
public double
z()
getBaseDamage()
method_7448()
getDamage()
m_36789_()
public boolean
cu()
isAttackable()
method_5732()
isAttackable()
m_6097_()
public void
a(boolean arg0)
setCritArrow(boolean arg0)
method_7439(boolean arg0)
setCritical(boolean critical)
m_36762_(boolean arg0)
private void
a(byte arg0)
setPierceLevel(byte arg0)
method_7451(byte arg0)
setPierceLevel(byte level)
m_36767_(byte arg0)
private void
a(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_7455(int arg0, boolean arg1)
setProjectileFlag(int index, boolean flag)
m_36737_(int p_36739_, boolean arg1)
protected void
a(cuq arg0)
setPickupItemStack(ItemStack arg0)
method_57313(class_1799 arg0)
setStack(ItemStack stack)
m_320726_(C_1391_ arg0)
public boolean
A()
isCritArrow()
method_7443()
isCritical()
m_36792_()
public boolean
B()
shotFromCrossbow()
method_7456()
isShotFromCrossbow()
m_36795_()
public byte
C()
getPierceLevel()
method_7447()
getPierceLevel()
m_36796_()
public void
a(float arg0)
setBaseDamageFromMob(float arg0)
method_59955(float arg0)
applyDamageModifier(float damageModifier)
m_338469_(float arg0)
protected float
D()
getWaterInertia()
method_7436()
getDragInWater()
m_6882_()
public void
b(boolean arg0)
setNoPhysics(boolean arg0)
method_7433(boolean arg0)
setNoClip(boolean noClip)
m_36790_(boolean arg0)
public boolean
E()
isNoPhysics()
method_7441()
isNoClip()
m_36797_()
public boolean
bA()
isPickable()
method_5863()
canHit()
m_6087_()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)