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
net.minecraft.class_1676
net.minecraft.entity.projectile.ProjectileEntity

Field summary

Modifier and TypeField
private static final boolean
a
DEFAULT_LEFT_OWNER
field_57742
DEFAULT_LEFT_OWNER
private static final boolean
b
DEFAULT_HAS_BEEN_SHOT
field_57743
DEFAULT_SHOT
protected EntityReference<Entity>
e
owner
field_60558
owner
private boolean
c
leftOwner
field_23740
leftOwner
private boolean
d
hasBeenShot
field_28646
shot
private Entity
f
lastDeflectedBy
field_51621
lastDeflectedEntity

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(bzs<bzm> arg0)
setOwner(EntityReference<Entity> arg0)
method_71623(class_10583<class_1297> arg0)
setOwner(LazyEntityReference<Entity> owner)
public void
c(bzm arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity owner)
public Entity
ah_()
getOwner()
method_24921()
getOwner()
public Entity
y()
getEffectSource()
method_37225()
getEffectCause()
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected boolean
e(bzm arg0)
ownedBy(Entity arg0)
method_34714(class_1297 arg0)
isOwner(Entity entity)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
y(bzm arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
public void
g()
tick()
method_5773()
tick()
private boolean
f()
checkLeftOwner()
method_26961()
shouldLeaveOwner()
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)
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)
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)
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)
public void
a(boolean arg0, jb arg1)
onAboveBubbleColumn(boolean arg0, BlockPos arg1)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean arg0, BlockPos arg1)
public void
m(boolean arg0)
onInsideBubbleColumn(boolean arg0)
method_5764(boolean arg0)
onBubbleColumnCollision(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)
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)
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)
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)
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)
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)
public static <T extends Projectile> T
a(T arg0, aub arg1, dcv 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)
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)
method_61553(T arg0, class_3218 arg1, class_1799 arg2, Consumer<T> arg3)
spawn(T projectile, ServerWorld world, ItemStack projectileStack, Consumer<T> beforeSpawn)
public void
b(aub arg0, dcv arg1)
applyOnProjectileSpawned(ServerLevel arg0, ItemStack arg1)
method_61546(class_3218 arg0, class_1799 arg1)
triggerProjectileSpawned(ServerWorld world, ItemStack projectileStack)
protected ProjectileDeflection
b(fiq arg0)
hitTargetOrDeflectSelf(HitResult arg0)
method_59860(class_239 arg0)
hitOrDeflect(HitResult hitResult)
protected boolean
w()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
public boolean
a(cvp arg0, bzm arg1, bzm 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)
protected void
c(bzm arg0, boolean arg1)
onDeflection(Entity arg0, boolean arg1)
method_59525(class_1297 arg0, boolean arg1)
onDeflected(Entity deflector, boolean fromAttack)
protected void
b(dcr arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
onBroken(Item item)
protected void
a(fiq arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult hitResult)
protected void
a(fip arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult entityHitResult)
protected void
a(fio arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult blockHitResult)
protected boolean
b(bzm arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity entity)
protected void
z()
updateRotation()
method_26962()
updateRotation()
protected static float
f(float arg0, float arg1)
lerpRotation(float arg0, float arg1)
method_26960(float arg0, float arg1)
updateRotation(float lastRot, float newRot)
public Packet<ClientGamePacketListener>
a(atz arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
a(acr arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public boolean
c(aub arg0, jb arg1)
mayInteract(ServerLevel arg0, BlockPos arg1)
method_36971(class_3218 arg0, class_2338 arg1)
canModifyAt(ServerWorld arg0, BlockPos arg1)
public boolean
a(aub arg0)
mayBreak(ServerLevel arg0)
method_54457(class_3218 arg0)
canBreakBlocks(ServerWorld world)
public boolean
bK()
isPickable()
method_5863()
canHit()
public float
bV()
getPickRadius()
method_5871()
getTargetingMargin()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(cam arg0, byb arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity target, DamageSource source)
public int
ca()
getDimensionChangingDelay()
method_5806()
getDefaultPortalCooldown()
public boolean
a(aub arg0, byb 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)