net.minecraft.world.entity.projectile

public abstract class Projectile

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity

cqq
net.minecraft.world.entity.projectile.Projectile
net.minecraft.class_1676
net.minecraft.entity.projectile.ProjectileEntity
net.minecraft.world.entity.projectile.IProjectile

Field summary

Modifier and TypeField
private UUID
a
ownerUUID
field_22478
ownerUuid
private Entity
b
cachedOwner
field_33399
owner
private boolean
c
leftOwner
field_23740
leftOwner
private boolean
d
hasBeenShot
field_28646
shot
private Entity
e
lastDeflectedBy
field_51621
lastDeflectedEntity

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
c(bvk arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity entity)
public Entity
p()
getOwner()
method_24921()
getOwner()
protected Entity
b(UUID arg0)
findOwner(UUID arg0)
method_61555(UUID arg0)
getEntity(UUID uuid)
public Entity
E()
getEffectSource()
method_37225()
getEffectCause()
protected void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
protected boolean
e(bvk arg0)
ownedBy(Entity arg0)
method_34714(class_1297 arg0)
isOwner(Entity entity)
protected void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected void
c(UUID arg0)
setOwnerThroughUUID(UUID arg0)
method_64180(UUID arg0)
setOwner(UUID uuid)
public void
x(bvk arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
public void
h()
tick()
method_5773()
tick()
private boolean
m()
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(bvk 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 static <T extends Projectile> T
a(cqq$a<T> arg0, ash arg1, cxp arg2, bwg 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(cqq$a<T> arg0, ash arg1, cxp arg2, bwg 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, ash arg1, cxp 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, ash arg1, cxp 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, ash arg1, cxp 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(ash arg0, cxp arg1)
applyOnProjectileSpawned(ServerLevel arg0, ItemStack arg1)
method_61546(class_3218 arg0, class_1799 arg1)
triggerProjectileSpawned(ServerWorld world, ItemStack projectileStack)
protected ProjectileDeflection
b(fbw arg0)
hitTargetOrDeflectSelf(HitResult arg0)
method_59860(class_239 arg0)
hitOrDeflect(HitResult hitResult)
protected boolean
C()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
public boolean
a(cqr arg0, bvk arg1, bvk 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
b(bvk arg0, boolean arg1)
onDeflection(Entity arg0, boolean arg1)
method_59525(class_1297 arg0, boolean arg1)
onDeflected(Entity deflector, boolean fromAttack)
protected void
b(cxl arg0)
onItemBreak(Item arg0)
method_61544(class_1792 arg0)
onBroken(Item item)
protected void
a(fbw arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult hitResult)
protected void
a(fbv arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult entityHitResult)
protected void
a(fbu arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult blockHitResult)
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)
protected boolean
b(bvk arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity entity)
protected void
F()
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 prevRot, float newRot)
public Packet<ClientGamePacketListener>
a(asf arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
a(acs arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public boolean
c(ash arg0, jh arg1)
mayInteract(ServerLevel arg0, BlockPos arg1)
method_36971(class_3218 arg0, class_2338 arg1)
canModifyAt(ServerWorld arg0, BlockPos arg1)
public boolean
a(ash arg0)
mayBreak(ServerLevel arg0)
method_54457(class_3218 arg0)
canBreakBlocks(ServerWorld world)
public boolean
bH()
isPickable()
method_5863()
canHit()
public float
bS()
getPickRadius()
method_5871()
getTargetingMargin()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(bwg arg0, bua arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity target, DamageSource source)
public int
bX()
getDimensionChangingDelay()
method_5806()
getDefaultPortalCooldown()
public boolean
a(ash arg0, bua 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)