net.minecraft.world.entity.projectile

public abstract class Projectile

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, TraceableEntity

cnp
net.minecraft.world.entity.projectile.Projectile
net.minecraft.class_1676
net.minecraft.entity.projectile.ProjectileEntity
net.minecraft.src.C_1167_
net.minecraft.world.entity.projectile.IProjectile

Field summary

Modifier and TypeField
private UUID
b
ownerUUID
field_22478
ownerUuid
f_37244_
private Entity
c
cachedOwner
field_33399
owner
f_150163_
private boolean
d
leftOwner
field_23740
leftOwner
f_37246_
private boolean
e
hasBeenShot
field_28646
shot
f_150164_
private Entity
f
lastDeflectedBy
field_51621
lastDeflectedEntity
f_336827_

Constructor summary

ModifierConstructor
(EntityType<? extends Projectile> p_37249_, Level arg1)

Method summary

Modifier and TypeMethod
public void
c(bsr arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity entity)
m_5602_(C_507_ arg0)
public Entity
s()
getOwner()
method_24921()
getOwner()
m_19749_()
public Entity
H()
getEffectSource()
method_37225()
getEffectCause()
m_150173_()
protected void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
protected boolean
e(bsr arg0)
ownedBy(Entity arg0)
method_34714(class_1297 arg0)
isOwner(Entity entity)
m_150171_(C_507_ arg0)
protected void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
w(bsr arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
m_20361_(C_507_ arg0)
public void
l()
tick()
method_5773()
tick()
m_8119_()
private boolean
t()
checkLeftOwner()
method_26961()
shouldLeaveOwner()
m_37276_()
public Vec3
d(double arg0, double arg1, double arg2, float arg3, float arg4)
getMovementToShoot(double arg0, double arg1, double arg2, float arg3, float arg4)
method_58645(double arg0, double arg1, double arg2, float arg3, float arg4)
calculateVelocity(double x, double y, double z, float power, float uncertainty)
m_321027_(double p_334829_, double p_331363_, double arg2, float arg3, float arg4)
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 x, double y, double z, float power, float uncertainty)
m_6686_(double p_37267_, double p_37269_, double arg2, float arg3, float arg4)
public void
a(bsr arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
shootFromRotation(Entity arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
method_24919(class_1297 arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
setVelocity(Entity shooter, float pitch, float yaw, float roll, float speed, float divergence)
m_37251_(C_507_ p_37253_, float p_37254_, float p_37255_, float p_37256_, float p_37257_, float arg5)
protected ProjectileDeflection
b(exa arg0)
hitTargetOrDeflectSelf(HitResult arg0)
method_59860(class_239 arg0)
hitOrDeflect(HitResult hitResult)
m_320847_(C_3043_ arg0)
public boolean
a(cnq arg0, bsr arg1, bsr arg2, boolean arg3)
deflect(ProjectileDeflection arg0, Entity arg1, Entity arg2, boolean arg3)
method_59859(class_9109 arg0, class_1297 arg1, class_1297 arg2, boolean arg3)
deflect(ProjectileDeflection deflection, Entity deflector, Entity owner, boolean fromAttack)
m_318938_(C_313519_ p_330074_, C_507_ p_333528_, C_507_ p_328333_, boolean arg3)
protected void
b(bsr arg0, boolean arg1)
onDeflection(Entity arg0, boolean arg1)
method_59525(class_1297 arg0, boolean arg1)
onDeflected(Entity deflector, boolean fromAttack)
m_318614_(C_507_ p_335911_, boolean arg1)
protected void
a(exa arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult hitResult)
m_6532_(C_3043_ arg0)
protected void
a(ewz arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult entityHitResult)
m_5790_(C_3042_ arg0)
protected void
a(ewy arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult blockHitResult)
m_8060_(C_3041_ arg0)
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_37280_, double arg1, double arg2)
protected boolean
b(bsr arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity entity)
m_5603_(C_507_ arg0)
protected void
I()
updateRotation()
method_26962()
updateRotation()
m_37283_()
protected static float
e(float arg0, float arg1)
lerpRotation(float arg0, float arg1)
method_26960(float arg0, float arg1)
updateRotation(float prevRot, float newRot)
m_37273_(float p_37274_, float p_37275_)
public Packet<ClientGamePacketListener>
a(aqt arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
m_5654_(C_11_ arg0)
public void
a(abv arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
m_141965_(C_5032_ arg0)
public boolean
a(dcw arg0, jd arg1)
mayInteract(Level arg0, BlockPos arg1)
method_36971(class_1937 arg0, class_2338 arg1)
canModifyAt(World arg0, BlockPos arg1)
m_142265_(C_1596_ p_150168_, C_4675_ arg1)
public boolean
b(dcw arg0)
mayBreak(Level arg0)
method_54457(class_1937 arg0)
canBreakBlocks(World world)
m_305640_(C_1596_ arg0)
public boolean
bA()
isPickable()
method_5863()
canHit()
m_6087_()
public float
bL()
getPickRadius()
method_5871()
getTargetingMargin()
m_6143_()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(btn arg0, brk arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity target, DamageSource source)
m_339151_(C_524_ p_343506_, C_489_ arg1)