net.minecraft.world.entity.projectile

public abstract class Projectile

extends Entity implements TraceableEntity

All mapped superinterfaces:

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

ctt
net.minecraft.world.entity.projectile.Projectile
net.minecraft.class_1676

Field summary

Modifier and TypeField
private static final boolean
a
DEFAULT_LEFT_OWNER
field_57742
private static final boolean
b
DEFAULT_HAS_BEEN_SHOT
field_57743
private UUID
c
ownerUUID
field_22478
private Entity
d
cachedOwner
field_33399
private boolean
e
leftOwner
field_23740
private boolean
f
hasBeenShot
field_28646
private Entity
g
lastDeflectedBy
field_51621

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
c(bxs arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
public Entity
af_()
getOwner()
method_24921()
protected Entity
b(UUID arg0)
findOwner(UUID arg0)
method_61555(UUID arg0)
public Entity
y()
getEffectSource()
method_37225()
protected void
a(fbh arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
protected boolean
e(bxs arg0)
ownedBy(Entity arg0)
method_34714(class_1297 arg0)
protected void
a(fbf arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
protected void
c(UUID arg0)
setOwnerThroughUUID(UUID arg0)
method_64180(UUID arg0)
public void
x(bxs arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
public void
g()
tick()
method_5773()
private boolean
f()
checkLeftOwner()
method_26961()
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)
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)
public void
a(bxs 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)
public void
a(boolean arg0, iy arg1)
onAboveBubbleColumn(boolean arg0, BlockPos arg1)
method_5700(boolean arg0, class_2338 arg1)
public void
m(boolean arg0)
onInsideBubbleColumn(boolean arg0)
method_5764(boolean arg0)
public static <T extends Projectile> T
a(ctt$a<T> arg0, asi arg1, dba arg2, bys 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)
public static <T extends Projectile> T
a(ctt$a<T> arg0, asi arg1, dba arg2, bys 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)
public static <T extends Projectile> T
a(T arg0, asi arg1, dba 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)
public static <T extends Projectile> T
a(T arg0, asi arg1, dba arg2)
spawnProjectile(T arg0, ServerLevel arg1, ItemStack arg2)
method_61551(T arg0, class_3218 arg1, class_1799 arg2)
public static <T extends Projectile> T
a(T arg0, asi arg1, dba 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)
public void
b(asi arg0, dba arg1)
applyOnProjectileSpawned(ServerLevel arg0, ItemStack arg1)
method_61546(class_3218 arg0, class_1799 arg1)
protected ProjectileDeflection
b(fgv arg0)
hitTargetOrDeflectSelf(HitResult arg0)
method_59860(class_239 arg0)
protected boolean
w()
shouldBounceOnWorldBorder()
method_62823()
public boolean
a(ctu arg0, bxs arg1, bxs 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)
protected void
c(bxs arg0, boolean arg1)
onDeflection(Entity arg0, boolean arg1)
method_59525(class_1297 arg0, boolean arg1)
protected void
b(daw arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
protected void
a(fgv arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
protected void
a(fgu arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
protected void
a(fgt arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
protected boolean
b(bxs arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
protected void
z()
updateRotation()
method_26962()
protected static float
f(float arg0, float arg1)
lerpRotation(float arg0, float arg1)
method_26960(float arg0, float arg1)
public Packet<ClientGamePacketListener>
a(asg arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
public void
a(ack arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
public boolean
c(asi arg0, iy arg1)
mayInteract(ServerLevel arg0, BlockPos arg1)
method_36971(class_3218 arg0, class_2338 arg1)
public boolean
a(asi arg0)
mayBreak(ServerLevel arg0)
method_54457(class_3218 arg0)
public boolean
bI()
isPickable()
method_5863()
public float
bU()
getPickRadius()
method_5871()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(bys arg0, bwh arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
public int
bZ()
getDimensionChangingDelay()
method_5806()
public boolean
a(asi arg0, bwh arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)