net.minecraft.world.entity.projectile

public abstract class AbstractThrownPotion

extends ThrowableItemProjectile

All mapped superinterfaces:

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

css
net.minecraft.world.entity.projectile.AbstractThrownPotion
net.minecraft.class_1686
net.minecraft.entity.projectile.thrown.PotionEntity
net.minecraft.src.C_378927_

Field summary

Modifier and TypeField
public static final double
a
SPLASH_RANGE
field_30667
field_30667
f_379989_
protected static final double
b
SPLASH_RANGE_SQ
field_30668
WATER_POTION_EXPLOSION_SQUARED_RADIUS
f_380467_
public static final Predicate<LivingEntity>
c
WATER_SENSITIVE_OR_ON_FIRE
field_40737
AFFECTED_BY_WATER
f_382521_

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractThrownPotion> p_391569_, Level arg1)
public (EntityType<? extends AbstractThrownPotion> type, Level world, LivingEntity owner, ItemStack stack)
public (EntityType<? extends AbstractThrownPotion> type, Level world, double x, double y, double z, ItemStack stack)

Method summary

Modifier and TypeMethod
protected double
bc()
getDefaultGravity()
method_7490()
getGravity()
m_319564_()
protected void
a(ffy arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
m_8060_(C_3041_ arg0)
protected void
a(fga arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
m_6532_(C_3043_ arg0)
private void
b(asb arg0)
onHitAsWater(ServerLevel arg0)
method_67149(class_3218 arg0)
explodeWaterPotion(ServerWorld world)
m_385433_(C_12_ arg0)
protected abstract void
a(asb arg0, dak arg1, bxe arg2)
onHitAsPotion(ServerLevel arg0, ItemStack arg1, Entity arg2)
method_67148(class_3218 arg0, class_1799 arg1, class_1297 arg2)
spawnAreaEffectCloud(ServerWorld world, ItemStack stack, Entity entityHit)
m_384813_(C_12_ p_392118_, C_1391_ p_396147_, C_507_ arg2)
private void
a(iw arg0)
dowseFire(BlockPos arg0)
method_7499(class_2338 arg0)
extinguishFire(BlockPos pos)
m_384505_(C_4675_ arg0)
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(byf arg0, bvt arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)
m_339151_(C_524_ p_393426_, C_489_ arg1)