net.minecraft.world.entity.projectile

public abstract class AbstractThrownPotion

extends ThrowableItemProjectile

All mapped superinterfaces:

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

crw
net.minecraft.world.entity.projectile.AbstractThrownPotion
net.minecraft.class_1686
net.minecraft.entity.projectile.thrown.PotionEntity

Field summary

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

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractThrownPotion> arg0, 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
bb()
getDefaultGravity()
method_7490()
getGravity()
protected void
a(fey arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
protected void
a(ffa arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
private void
b(arq arg0)
onHitAsWater(ServerLevel arg0)
method_67149(class_3218 arg0)
explodeWaterPotion(ServerWorld world)
protected abstract void
a(arq arg0, czn arg1, bwi 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)
private void
a(iv arg0)
dowseFire(BlockPos arg0)
method_7499(class_2338 arg0)
extinguishFire(BlockPos pos)
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(bxj arg0, bux arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)