net.minecraft.entity.projectile

public abstract class PersistentProjectileEntity

extends ProjectileEntity

All mapped superinterfaces:

DataTracked, DebugTrackable, Nameable, HeldItemContext, EntityLike, UniquelyIdentifiable, ScoreHolder, ComponentsAccess, Ownable

czv
net.minecraft.world.entity.projectile.AbstractArrow
net.minecraft.class_1665
net.minecraft.entity.projectile.PersistentProjectileEntity
net.minecraft.unmapped.C_gstiksvs
net.minecraft.entity.projectile.PersistentProjectileEntity
net.minecraft.src.C_1151_

Field summary

Modifier and TypeField
private static final double
d
ARROW_BASE_DAMAGE
field_30657
field_30657
f_qazfvpcx
BASE_ARROW_DAMAGE
f_150120_
private static final int
f
SHAKE_TIME
field_54968
field_54968
f_rnapwtld
SHAKE_TICKS
f_349174_
private static final float
g
WATER_INERTIA
field_55017
field_55017
f_hdbcayjq
WATER_DRAG
f_370959_
private static final float
h
INERTIA
field_55018
DEFAULT_DRAG
f_aapcjlxf
AIR_DRAG
f_371584_
private static final short
i
DEFAULT_LIFE
field_57732
DEFAULT_LIFE
f_wshsuhjd
f_379570_
private static final byte
j
DEFAULT_SHAKE
field_57733
DEFAULT_SHAKE
f_xolavzrb
f_379851_
private static final boolean
k
DEFAULT_IN_GROUND
field_57734
DEFAULT_IN_GROUND
f_snnyjqyd
f_381237_
private static final boolean
l
DEFAULT_CRIT
field_57735
DEFAULT_CRITICAL
f_vqcewxuv
f_381873_
private static final byte
m
DEFAULT_PIERCE_LEVEL
field_57736
DEFAULT_PIERCE_LEVEL
f_mngxbtew
f_381923_
private static final TrackedData<Byte>
n
ID_FLAGS
field_7573
PROJECTILE_FLAGS
f_umpvtnwi
PROJECTILE_FLAGS
f_36707_
private static final TrackedData<Byte>
o
PIERCE_LEVEL
field_7589
PIERCE_LEVEL
f_pqiurqmt
PIERCE_LEVEL
f_36708_
private static final TrackedData<Boolean>
p
IN_GROUND
field_54969
IN_GROUND
f_yqrknjkl
IN_GROUND
f_347705_
private static final int
q
FLAG_CRIT
field_30654
CRITICAL_FLAG
f_pnuxpkjk
CRITICAL_FLAG
f_150117_
private static final int
r
FLAG_NOPHYSICS
field_30655
NO_CLIP_FLAG
f_cqdzcrjf
NO_CLIP_FLAG
f_150118_
private BlockState
s
lastState
field_7586
inBlockState
f_ncskhrlt
inBlockState
f_36696_
protected int
a
inGroundTime
field_7576
inGroundTime
f_edvgavkm
inGroundTime
f_36704_
public PersistentProjectileEntity$PickupPermission
b
pickup
field_7572
pickupType
f_igmdnyfz
pickupType
f_36705_
public int
c
shakeTime
field_7574
shake
f_wgfwlrwg
shake
f_36706_
private int
t
life
field_7578
life
f_csdzamsu
life
f_36697_
private double
u
baseDamage
field_7571
damage
f_wuzchbwg
damage
f_36698_
private SoundEvent
aN
soundEvent
field_7584
sound
f_chigjmmi
sound
f_36700_
private it.unimi.dsi.fastutil.ints.IntOpenHashSet
aO
piercingIgnoreEntityIds
field_7590
piercedEntities
f_juvjveta
piercedEntities
f_36701_
private List<Entity>
aP
piercedAndKilledEntities
field_7579
piercingKilledEntities
f_etnylbxa
piercingKilledEntities
f_36702_
private ItemStack
aQ
pickupItemStack
field_46970
stack
f_wcrdrutf
stack
f_303749_
private ItemStack
aR
firedFromWeapon
field_51620
weapon
f_orpxztyk
weapon
f_336848_

Constructor summary

ModifierConstructor
protected (EntityType<? extends PersistentProjectileEntity> type, World world)
protected (EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world, ItemStack stack, ItemStack weapon)
protected (EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, ItemStack shotFrom)

Method summary

Modifier and TypeMethod
public void
b(bcd arg0)
setSoundEvent(SoundEvent arg0)
method_7444(class_3414 arg0)
setSound(SoundEvent sound)
m_hfszjmoi(C_avavozay 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_foqrqvze(double arg0)
shouldRender(double arg0)
m_6783_(double arg0)
protected void
a(alq$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_lwugwlsw(C_pyoaoolj$C_oqzxcugu arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
c(double o, double o, 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_bzpgfgfy(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
j(foh arg0)
lerpMotion(Vec3 arg0)
method_5750(class_243 arg0)
setVelocityClient(Vec3d arg0)
m_onpbziok(C_vgpupfxx arg0)
setVelocityClient(Vec3d arg0)
m_6001_(C_3046_ arg0)
public void
a(alm<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_efnedaed(C_rinmcaxy<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public void
g()
tick()
method_5773()
tick()
m_arkgrfeb()
tick()
m_8119_()
private void
b(fod arg0)
stepMoveAndHit(BlockHitResult arg0)
method_63670(class_3965 arg0)
applyCollision(BlockHitResult blockHitResult)
m_mmuntudz(C_jdakttms arg0)
applyCollision(BlockHitResult result)
m_351892_(C_3041_ arg0)
private void
b(float arg0)
applyInertia(float arg0)
method_63669(float arg0)
applyDrag(float drag)
m_ssyefsdq(float arg0)
multiplyVelocity(float value)
m_357338_(float arg0)
private void
a(foh arg0)
addBubbleParticles(Vec3 arg0)
method_64646(class_243 arg0)
spawnBubbleParticles(Vec3d pos)
m_cjbjygrh(C_vgpupfxx arg0)
addBubbleParticles(Vec3d pos)
m_352143_(C_3046_ arg0)
protected double
bo()
getDefaultGravity()
method_7490()
getGravity()
m_pvspcngk()
getDefaultGravity()
m_319564_()
private boolean
x()
shouldFall()
method_26351()
shouldFall()
m_beukkvsr()
shouldFall()
m_36798_()
private void
B()
startFalling()
method_26352()
fall()
m_ewfckluc()
fall()
m_36799_()
protected boolean
e()
isInGround()
method_65059()
isInGround()
m_ylbwqdcm()
isInGround()
m_352758_()
protected void
a(boolean arg0)
setInGround(boolean arg0)
method_65058(boolean arg0)
setInGround(boolean inGround)
m_xmbclleg(boolean arg0)
setInGround(boolean b)
m_356362_(boolean arg0)
public boolean
cW()
isPushedByFluid()
method_5675()
isPushedByFluids()
m_mhvikmsw()
isPushedByFluids()
m_6063_()
public void
a(cfa o, foh arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
m_zcvlfcid(C_eojqvxuw arg0, C_vgpupfxx arg1)
move(MovementType arg0, Vec3d arg1)
m_6478_(C_531_ p_36750_, C_3046_ arg1)
protected void
f()
tickDespawn()
method_7446()
age()
m_sepatgdc()
age()
m_6901_()
private void
C()
resetPiercedEntities()
method_7453()
clearPiercingStatus()
m_ehzehefq()
clearPiercingStatus()
m_36723_()
protected void
b(dhl arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
onBroken(Item arg0)
m_aicjbexr(C_vorddnax arg0)
onBroken(Item arg0)
m_353833_(C_1381_ arg0)
public void
a(boolean o, ja arg1)
onAboveBubbleColumn(boolean arg0, BlockPos arg1)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean arg0, BlockPos arg1)
m_rygbzimu(boolean arg0, C_hynzadkk arg1)
onBubbleColumnTopCollision(boolean arg0, BlockPos arg1)
m_383930_(boolean p_396993_, C_4675_ arg1)
public void
m(boolean arg0)
onInsideBubbleColumn(boolean arg0)
method_5764(boolean arg0)
onBubbleColumnCollision(boolean arg0)
m_xelmhfxy(boolean arg0)
onBubbleColumnSubmersedCollision(boolean arg0)
m_20321_(boolean arg0)
public void
i(double o, 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)
m_cizdqdzz(double arg0, double arg1, double arg2)
addVelocity(double arg0, double arg1, double arg2)
m_5997_(double p_377558_, double arg1, double arg2)
protected void
a(foe arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
m_nkpdbvpp(C_wokbhynj arg0)
onEntityHit(EntityHitResult arg0)
m_5790_(C_3042_ arg0)
protected void
a(cew o, cci arg1)
doKnockback(LivingEntity arg0, DamageSource arg1)
method_59957(class_1309 arg0, class_1282 arg1)
knockback(LivingEntity target, DamageSource source)
m_isgasunb(C_usxaxydn arg0, C_sbxfkpyv arg1)
applyKnockback(LivingEntity entity, DamageSource source)
m_338617_(C_524_ p_345063_, C_489_ arg1)
protected void
a(fod arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
m_ggjsldmr(C_jdakttms arg0)
onBlockHit(BlockHitResult arg0)
m_8060_(C_3041_ arg0)
protected void
a(awx o, fod o, dhp 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_heznywam(C_bdwnwhiu arg0, C_jdakttms arg1, C_sddaxwyk arg2)
hitBlockEnchantmentEffects(ServerWorld world, BlockHitResult result, ItemStack stack)
m_339443_(C_12_ p_343962_, C_3041_ p_342314_, C_1391_ arg2)
public ItemStack
el()
getWeaponItem()
method_59958()
getWeaponStack()
m_ywnmbdjz()
getWeaponStack()
m_338776_()
protected SoundEvent
i()
getDefaultHitGroundSoundEvent()
method_7440()
getHitSound()
m_vwewtmfb()
getHitSound()
m_7239_()
protected final SoundEvent
k()
getHitGroundSoundEvent()
method_20011()
getSound()
m_kntlthra()
getSound()
m_36784_()
protected void
a(cew arg0)
doPostHurtEffects(LivingEntity arg0)
method_7450(class_1309 arg0)
onHit(LivingEntity target)
m_whtcpczr(C_usxaxydn arg0)
onHit(LivingEntity target)
m_7761_(C_524_ arg0)
protected EntityHitResult
b(foh o, foh arg1)
findHitEntity(Vec3 arg0, Vec3 arg1)
method_7434(class_243 arg0, class_243 arg1)
getEntityCollision(Vec3d currentPosition, Vec3d nextPosition)
m_kynuhxfa(C_vgpupfxx arg0, C_vgpupfxx arg1)
getEntityCollision(Vec3d currentPosition, Vec3d nextPosition)
m_6351_(C_3046_ p_36759_, C_3046_ arg1)
protected boolean
b(cdv arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity arg0)
m_jmdjqqjc(C_astfners arg0)
canHit(Entity arg0)
m_5603_(C_507_ arg0)
protected void
a(fir arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_xuwbpohg(C_kespdwpv arg0)
writeCustomData(DataWriter arg0)
m_7380_(C_398537_ arg0)
protected void
a(fip arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_obkzfysl(C_djkzhngg arg0)
readCustomData(DataReader arg0)
m_7378_(C_398549_ arg0)
public void
c(cdv arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity arg0)
m_iosroylp(C_astfners arg0)
m_iosroylp(Entity arg0)
m_5602_(C_507_ arg0)
public void
a_(czl arg0)
playerTouch(Player arg0)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
m_ghqcprlw(C_jzrpycqo arg0)
onPlayerCollision(PlayerEntity arg0)
m_6123_(C_1141_ arg0)
protected boolean
a(czl arg0)
tryPickup(Player arg0)
method_34713(class_1657 arg0)
tryPickup(PlayerEntity player)
m_ovuszxpo(C_jzrpycqo arg0)
tryPickup(PlayerEntity player)
m_142470_(C_1141_ arg0)
protected ItemStack
m()
getPickupItem()
method_7445()
asItemStack()
m_vscqpbfw()
asItemStack()
m_7941_()
protected abstract ItemStack
n()
getDefaultPickupItem()
method_57314()
getDefaultItemStack()
m_ijqsvqvi()
getDefaultItemStack()
m_321416_()
protected Entity$MoveEffect
br()
getMovementEmission()
method_33570()
getMoveEffect()
m_dxohridw()
getMoveEffect()
m_142319_()
public ItemStack
q()
getPickupItemStackOrigin()
method_54759()
getItemStack()
m_wznrraqn()
getStack()
m_307069_()
public void
i(double arg0)
setBaseDamage(double arg0)
method_7438(double arg0)
setDamage(double damage)
m_izcgrjes(double arg0)
setDamage(double damage)
m_36781_(double arg0)
public boolean
cO()
isAttackable()
method_5732()
isAttackable()
m_kymkfjov()
isAttackable()
m_6097_()
public void
b(boolean arg0)
setCritArrow(boolean arg0)
method_7439(boolean arg0)
setCritical(boolean critical)
m_wcqbexjj(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_clbqtpac(byte arg0)
setPierceLevel(byte level)
m_36767_(byte arg0)
private void
a(int o, boolean arg1)
setFlag(int arg0, boolean arg1)
method_7455(int arg0, boolean arg1)
setProjectileFlag(int index, boolean flag)
m_qnxttchu(int arg0, boolean arg1)
setProjectileFlag(int index, boolean flag)
m_36737_(int p_36739_, boolean arg1)
protected void
a(dhp arg0)
setPickupItemStack(ItemStack arg0)
method_57313(class_1799 arg0)
setStack(ItemStack stack)
m_qmtcwgrn(C_sddaxwyk arg0)
setStack(ItemStack stack)
m_320726_(C_1391_ arg0)
public boolean
r()
isCritArrow()
method_7443()
isCritical()
m_xnefdmre()
isCritical()
m_36792_()
public byte
s()
getPierceLevel()
method_7447()
getPierceLevel()
m_sxxslcng()
getPierceLevel()
m_36796_()
public void
a(float arg0)
setBaseDamageFromMob(float arg0)
method_59955(float arg0)
applyDamageModifier(float damageModifier)
m_znqipiwr(float arg0)
applyDamageModifier(float modifier)
m_338469_(float arg0)
protected float
u()
getWaterInertia()
method_7436()
getDragInWater()
m_wrkmrnze()
getDragInWater()
m_6882_()
public void
r(boolean arg0)
setNoPhysics(boolean arg0)
method_7433(boolean arg0)
setNoClip(boolean noClip)
m_heweaind(boolean arg0)
setNoClip(boolean noClip)
m_36790_(boolean arg0)
public boolean
v()
isNoPhysics()
method_7441()
isNoClip()
m_utnhoeqp()
isNoClip()
m_36797_()
public boolean
bT()
isPickable()
method_5863()
canHit()
m_bzveerey()
collides()
m_6087_()
public StackReference
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_owvpveuv(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)
protected boolean
w()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
m_enlfovqr()
shouldBounceOnWorldBorder()
m_351769_()