net.minecraft.world.entity.projectile

public abstract class AbstractArrow

extends Projectile

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity

cpf
net.minecraft.world.entity.projectile.AbstractArrow
net.minecraft.class_1665
net.minecraft.entity.projectile.PersistentProjectileEntity
net.minecraft.world.entity.projectile.EntityArrow

Field summary

Modifier and TypeField
private static final double
d
ARROW_BASE_DAMAGE
field_30657
field_30657
private static final int
e
SHAKE_TIME
field_54968
field_54968
private static final float
f
WATER_INERTIA
field_55017
field_55017
private static final float
g
INERTIA
field_55018
DEFAULT_DRAG
private static final EntityDataAccessor<Byte>
h
ID_FLAGS
field_7573
PROJECTILE_FLAGS
private static final EntityDataAccessor<Byte>
i
PIERCE_LEVEL
field_7589
PIERCE_LEVEL
private static final EntityDataAccessor<Boolean>
j
IN_GROUND
field_54969
IN_GROUND
private static final int
k
FLAG_CRIT
field_30654
CRITICAL_FLAG
private static final int
l
FLAG_NOPHYSICS
field_30655
NO_CLIP_FLAG
private BlockState
m
lastState
field_7586
inBlockState
protected int
a
inGroundTime
field_7576
inGroundTime
public AbstractArrow$Pickup
b
pickup
field_7572
pickupType
public int
c
shakeTime
field_7574
shake
private int
n
life
field_7578
life
private double
o
baseDamage
field_7571
damage
private SoundEvent
p
soundEvent
field_7584
sound
private it.unimi.dsi.fastutil.ints.IntOpenHashSet
q
piercingIgnoreEntityIds
field_7590
piercedEntities
private List<Entity>
r
piercedAndKilledEntities
field_7579
piercingKilledEntities
private ItemStack
s
pickupItemStack
field_46970
stack
private ItemStack
t
firedFromWeapon
field_51620
weapon

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractArrow> arg0, 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(avz arg0)
setSoundEvent(SoundEvent arg0)
method_7444(class_3414 arg0)
setSound(SoundEvent sound)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder 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)
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)
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)
public void
a(ajy<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public void
h()
tick()
method_5773()
tick()
private void
b(fax arg0)
stepMoveAndHit(BlockHitResult arg0)
method_63670(class_3965 arg0)
applyCollision(BlockHitResult blockHitResult)
private void
b(float arg0)
applyInertia(float arg0)
method_63669(float arg0)
applyDrag(float drag)
private void
a(fbb arg0)
addBubbleParticles(Vec3 arg0)
method_64646(class_243 arg0)
spawnBubbleParticles(Vec3d pos)
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
private boolean
D()
shouldFall()
method_26351()
shouldFall()
private void
G()
startFalling()
method_26352()
fall()
protected boolean
l()
isInGround()
method_65059()
isInGround()
protected void
a(boolean arg0)
setInGround(boolean arg0)
method_65058(boolean arg0)
setInGround(boolean inGround)
public void
a(bvm arg0, fbb arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
protected void
m()
tickDespawn()
method_7446()
age()
private void
H()
resetPiercedEntities()
method_7453()
clearPiercingStatus()
protected void
b(cwm arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
onBroken(Item arg0)
public void
m(boolean arg0)
onInsideBubbleColumn(boolean arg0)
method_5764(boolean arg0)
onBubbleColumnCollision(boolean arg0)
public void
j(double arg0, double arg1, double arg2)
push(double arg0, double arg1, double arg2)
method_5762(double arg0, double arg1, double arg2)
addVelocity(double arg0, double arg1, double arg2)
protected void
a(fay arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
a(bvi arg0, btc arg1)
doKnockback(LivingEntity arg0, DamageSource arg1)
method_59957(class_1309 arg0, class_1282 arg1)
knockback(LivingEntity target, DamageSource source)
protected void
a(fax arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
protected void
a(ard arg0, fax arg1, cwq 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)
public ItemStack
dZ()
getWeaponItem()
method_59958()
getWeaponStack()
protected SoundEvent
s()
getDefaultHitGroundSoundEvent()
method_7440()
getHitSound()
protected final SoundEvent
t()
getHitGroundSoundEvent()
method_20011()
getSound()
protected void
a(bvi arg0)
doPostHurtEffects(LivingEntity arg0)
method_7450(class_1309 arg0)
onHit(LivingEntity target)
protected EntityHitResult
c(fbb arg0, fbb arg1)
findHitEntity(Vec3 arg0, Vec3 arg1)
method_7434(class_243 arg0, class_243 arg1)
getEntityCollision(Vec3d currentPosition, Vec3d nextPosition)
protected boolean
b(bum arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
c(bum arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity arg0)
public void
a_(coy arg0)
playerTouch(Player arg0)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
protected boolean
a(coy arg0)
tryPickup(Player arg0)
method_34713(class_1657 arg0)
tryPickup(PlayerEntity player)
protected ItemStack
u()
getPickupItem()
method_7445()
asItemStack()
protected abstract ItemStack
v()
getDefaultPickupItem()
method_57314()
getDefaultItemStack()
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
public ItemStack
w()
getPickupItemStackOrigin()
method_54759()
getItemStack()
public void
h(double arg0)
setBaseDamage(double arg0)
method_7438(double arg0)
setDamage(double damage)
public double
x()
getBaseDamage()
method_7448()
getDamage()
public boolean
cB()
isAttackable()
method_5732()
isAttackable()
public void
b(boolean arg0)
setCritArrow(boolean arg0)
method_7439(boolean arg0)
setCritical(boolean critical)
private void
a(byte arg0)
setPierceLevel(byte arg0)
method_7451(byte arg0)
setPierceLevel(byte level)
private void
a(int arg0, boolean arg1)
setFlag(int arg0, boolean arg1)
method_7455(int arg0, boolean arg1)
setProjectileFlag(int index, boolean flag)
protected void
a(cwq arg0)
setPickupItemStack(ItemStack arg0)
method_57313(class_1799 arg0)
setStack(ItemStack stack)
public boolean
y()
isCritArrow()
method_7443()
isCritical()
public byte
z()
getPierceLevel()
method_7447()
getPierceLevel()
public void
a(float arg0)
setBaseDamageFromMob(float arg0)
method_59955(float arg0)
applyDamageModifier(float damageModifier)
protected float
A()
getWaterInertia()
method_7436()
getDragInWater()
public void
r(boolean arg0)
setNoPhysics(boolean arg0)
method_7433(boolean arg0)
setNoClip(boolean noClip)
public boolean
B()
isNoPhysics()
method_7441()
isNoClip()
public boolean
bH()
isPickable()
method_5863()
canHit()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
protected boolean
C()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()