net.minecraft.world.entity.projectile

public abstract class Projectile

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, TraceableEntity

cvo
net.minecraft.world.entity.projectile.Projectile

Field summary

Modifier and TypeField
private static final boolean
a
DEFAULT_LEFT_OWNER
private static final boolean
b
DEFAULT_HAS_BEEN_SHOT
protected EntityReference<Entity>
e
owner
private boolean
c
leftOwner
private boolean
d
hasBeenShot
private Entity
f
lastDeflectedBy

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(bzs<bzm> arg0)
setOwner(EntityReference<Entity> arg0)
public void
c(bzm arg0)
setOwner(Entity arg0)
public Entity
ah_()
getOwner()
public Entity
y()
getEffectSource()
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
protected boolean
e(bzm arg0)
ownedBy(Entity arg0)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
public void
y(bzm arg0)
restoreFrom(Entity arg0)
public void
g()
tick()
private boolean
f()
checkLeftOwner()
public Vec3
d(double arg0, double arg1, double arg2, float arg3, float arg4)
getMovementToShoot(double arg0, double arg1, 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)
public void
a(bzm arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
shootFromRotation(Entity arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
public void
a(boolean arg0, jb arg1)
onAboveBubbleColumn(boolean arg0, BlockPos arg1)
public void
m(boolean arg0)
onInsideBubbleColumn(boolean arg0)
public static <T extends Projectile> T
a(cvo$a<T> arg0, aub arg1, dcv arg2, cam arg3, float arg4, float arg5, float arg6)
spawnProjectileFromRotation(Projectile$ProjectileFactory<T> arg0, ServerLevel arg1, ItemStack arg2, LivingEntity arg3, float arg4, float arg5, float arg6)
public static <T extends Projectile> T
a(cvo$a<T> arg0, aub arg1, dcv arg2, cam 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)
public static <T extends Projectile> T
a(T arg0, aub arg1, dcv 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)
public static <T extends Projectile> T
a(T arg0, aub arg1, dcv arg2)
spawnProjectile(T arg0, ServerLevel arg1, ItemStack arg2)
public static <T extends Projectile> T
a(T arg0, aub arg1, dcv arg2, Consumer<T> arg3)
spawnProjectile(T arg0, ServerLevel arg1, ItemStack arg2, Consumer<T> arg3)
public void
b(aub arg0, dcv arg1)
applyOnProjectileSpawned(ServerLevel arg0, ItemStack arg1)
protected ProjectileDeflection
b(fiq arg0)
hitTargetOrDeflectSelf(HitResult arg0)
protected boolean
w()
shouldBounceOnWorldBorder()
public boolean
a(cvp arg0, bzm arg1, bzm arg2, boolean arg3)
deflect(ProjectileDeflection arg0, Entity arg1, Entity arg2, boolean arg3)
protected void
c(bzm arg0, boolean arg1)
onDeflection(Entity arg0, boolean arg1)
protected void
b(dcr arg0)
onItemBreak(Item arg0)
protected void
a(fiq arg0)
onHit(HitResult arg0)
protected void
a(fip arg0)
onHitEntity(EntityHitResult arg0)
protected void
a(fio arg0)
onHitBlock(BlockHitResult arg0)
protected boolean
b(bzm arg0)
canHitEntity(Entity arg0)
protected void
z()
updateRotation()
protected static float
f(float arg0, float arg1)
lerpRotation(float arg0, float arg1)
public Packet<ClientGamePacketListener>
a(atz arg0)
getAddEntityPacket(ServerEntity arg0)
public void
a(acr arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
public boolean
c(aub arg0, jb arg1)
mayInteract(ServerLevel arg0, BlockPos arg1)
public boolean
a(aub arg0)
mayBreak(ServerLevel arg0)
public boolean
bK()
isPickable()
public float
bV()
getPickRadius()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(cam arg0, byb arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
public int
ca()
getDimensionChangingDelay()
public boolean
a(aub arg0, byb arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)