net.minecraft.world.entity.projectile

public abstract class AbstractThrownPotion

extends ThrowableItemProjectile

All mapped superinterfaces:

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

crb
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
field_30668
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> arg0, Level arg1, LivingEntity arg2, ItemStack arg3)
public (EntityType<? extends AbstractThrownPotion> arg0, Level arg1, double arg2, double arg3, double arg4, ItemStack arg5)

Method summary

Modifier and TypeMethod
protected Item
f()
getDefaultItem()
method_16942()
getDefaultItem()
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
protected void
a(fds arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
protected void
a(fdu arg0)
onHit(HitResult arg0)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
private void
b(aro arg0)
onHitAsWater(ServerLevel arg0)
method_67149(class_3218 arg0)
method_67149(ServerWorld arg0)
protected abstract void
a(aro arg0, cys arg1, bwa arg2)
onHitAsPotion(ServerLevel arg0, ItemStack arg1, Entity arg2)
method_67148(class_3218 arg0, class_1799 arg1, class_1297 arg2)
method_67148(ServerWorld arg0, ItemStack arg1, Entity arg2)
private void
a(iu arg0)
dowseFire(BlockPos arg0)
method_7499(class_2338 arg0)
extinguishFire(BlockPos pos)
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(bwz arg0, bup arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)