net.minecraft.world.entity.projectile

public abstract class Projectile

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity

cpr
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
a
ownerUUID
field_22478
ownerUuid
f_37244_
private Entity
b
cachedOwner
field_33399
owner
f_150163_
private boolean
c
leftOwner
field_23740
leftOwner
f_37246_
private boolean
d
hasBeenShot
field_28646
shot
f_150164_
private Entity
e
lastDeflectedBy
field_51621
lastDeflectedEntity
f_336827_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
c(bum arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity entity)
m_5602_(C_507_ arg0)
public Entity
p()
getOwner()
method_24921()
getOwner()
m_19749_()
protected Entity
b(UUID arg0)
findOwner(UUID arg0)
method_61555(UUID arg0)
getEntity(UUID uuid)
m_352922_(UUID arg0)
public Entity
E()
getEffectSource()
method_37225()
getEffectCause()
m_150173_()
protected void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
protected boolean
e(bum arg0)
ownedBy(Entity arg0)
method_34714(class_1297 arg0)
isOwner(Entity entity)
m_150171_(C_507_ arg0)
protected void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
protected void
c(UUID arg0)
setOwnerThroughUUID(UUID arg0)
method_64180(UUID arg0)
setOwner(UUID uuid)
m_352553_(UUID arg0)
public void
x(bum arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
m_20361_(C_507_ arg0)
public void
h()
tick()
method_5773()
tick()
m_8119_()
private boolean
m()
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(bum 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)
public static <T extends Projectile> T
a(cpr$a<T> arg0, ard arg1, cwq arg2, bvi arg3, float arg4, float arg5, float arg6)
spawnProjectileFromRotation(Projectile$ProjectileFactory<T> arg0, ServerLevel arg1, ItemStack arg2, LivingEntity arg3, float arg4, float arg5, float arg6)
method_61549(class_1676$class_9876<T> arg0, class_3218 arg1, class_1799 arg2, class_1309 arg3, float arg4, float arg5, float arg6)
spawnWithVelocity(ProjectileEntity$ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, float roll, float power, float divergence)
m_355573_(C_1167_$C_345752_<T> p_364630_, C_12_ p_369390_, C_1391_ p_367599_, C_524_ p_361588_, float p_367396_, float p_363677_, float p_365637_)
public static <T extends Projectile> T
a(cpr$a<T> arg0, ard arg1, cwq arg2, bvi arg3, double arg4, double arg5, double arg6, float arg7, float arg8)
spawnProjectileUsingShoot(Projectile$ProjectileFactory<T> arg0, ServerLevel arg1, ItemStack arg2, LivingEntity arg3, double arg4, double arg5, double arg6, float arg7, float arg8)
method_61548(class_1676$class_9876<T> arg0, class_3218 arg1, class_1799 arg2, class_1309 arg3, double arg4, double arg5, double arg6, float arg7, float arg8)
spawnWithVelocity(ProjectileEntity$ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, double velocityX, double velocityY, double velocityZ, float power, float divergence)
m_354235_(C_1167_$C_345752_<T> p_362783_, C_12_ p_362807_, C_1391_ p_361126_, C_524_ p_368296_, double p_367312_, double p_367734_, double p_368071_, float arg7, float arg8)
public static <T extends Projectile> T
a(T arg0, ard arg1, cwq arg2, double arg3, double arg4, double arg5, float arg6, float arg7)
spawnProjectileUsingShoot(T arg0, ServerLevel arg1, ItemStack arg2, double arg3, double arg4, double arg5, float arg6, float arg7)
method_61552(T arg0, class_3218 arg1, class_1799 arg2, double arg3, double arg4, double arg5, float arg6, float arg7)
spawnWithVelocity(T projectile, ServerWorld world, ItemStack projectileStack, double velocityX, double velocityY, double velocityZ, float power, float divergence)
m_356237_(T p_367886_, C_12_ p_360818_, C_1391_ p_364412_, double p_362828_, double p_368213_, double p_361310_, float arg6, float arg7)
public static <T extends Projectile> T
a(T arg0, ard arg1, cwq arg2)
spawnProjectile(T arg0, ServerLevel arg1, ItemStack arg2)
method_61551(T arg0, class_3218 arg1, class_1799 arg2)
spawn(T projectile, ServerWorld world, ItemStack projectileStack)
m_357181_(T p_361503_, C_12_ p_367711_, C_1391_ p_361747_)
public static <T extends Projectile> T
a(T arg0, ard arg1, cwq arg2, Consumer<T> arg3)
spawnProjectile(T arg0, ServerLevel arg1, ItemStack arg2, Consumer<T> arg3)
method_61553(T arg0, class_3218 arg1, class_1799 arg2, Consumer<T> arg3)
spawn(T projectile, ServerWorld world, ItemStack projectileStack, Consumer<T> beforeSpawn)
m_353265_(T p_365177_, C_12_ p_365242_, C_1391_ p_366479_, Consumer<T> p_360962_)
public void
b(ard arg0, cwq arg1)
applyOnProjectileSpawned(ServerLevel arg0, ItemStack arg1)
method_61546(class_3218 arg0, class_1799 arg1)
triggerProjectileSpawned(ServerWorld world, ItemStack projectileStack)
m_354577_(C_12_ p_365738_, C_1391_ arg1)
protected ProjectileDeflection
b(faz arg0)
hitTargetOrDeflectSelf(HitResult arg0)
method_59860(class_239 arg0)
hitOrDeflect(HitResult hitResult)
m_320847_(C_3043_ arg0)
protected boolean
C()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
m_351769_()
public boolean
a(cps arg0, bum arg1, bum 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(bum 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
b(cwm arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
onBroken(Item item)
m_353833_(C_1381_ arg0)
protected void
a(faz arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult hitResult)
m_6532_(C_3043_ arg0)
protected void
a(fay arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult entityHitResult)
m_5790_(C_3042_ arg0)
protected void
a(fax arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult blockHitResult)
m_8060_(C_3041_ arg0)
protected boolean
b(bum arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity entity)
m_5603_(C_507_ arg0)
protected void
F()
updateRotation()
method_26962()
updateRotation()
m_37283_()
protected static float
f(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(arb arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
m_5654_(C_11_ arg0)
public void
a(abm arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
m_141965_(C_5032_ arg0)
public boolean
c(ard arg0, ji arg1)
mayInteract(ServerLevel arg0, BlockPos arg1)
method_36971(class_3218 arg0, class_2338 arg1)
canModifyAt(ServerWorld arg0, BlockPos arg1)
m_142265_(C_12_ p_150168_, C_4675_ arg1)
public boolean
a(ard arg0)
mayBreak(ServerLevel arg0)
method_54457(class_3218 arg0)
canBreakBlocks(ServerWorld world)
m_305640_(C_12_ arg0)
public boolean
bH()
isPickable()
method_5863()
canHit()
m_6087_()
public float
bS()
getPickRadius()
method_5871()
getTargetingMargin()
m_6143_()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(bvi arg0, btc 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)
public int
bX()
getDimensionChangingDelay()
method_5806()
getDefaultPortalCooldown()
m_6045_()
public boolean
a(ard arg0, btc arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
m_351622_(C_12_ p_368526_, C_489_ p_366624_, float arg2)