net.minecraft.entity.projectile.thrown

public abstract class PotionEntity

extends ThrownItemEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Ownable, FlyingItemEntity

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

Field summary

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

Constructor summary

ModifierConstructor
public (EntityType<? extends PotionEntity> type, World level)
public (EntityType<? extends PotionEntity> type, World world, LivingEntity owner, ItemStack stack)
public (EntityType<? extends PotionEntity> type, World world, double x, double y, double z, ItemStack stack)

Method summary

Modifier and TypeMethod
protected double
getDefaultGravity()
method_7490()
getGravity()
protected void
onHitBlock(BlockHitResult hitResult)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
protected void
onHit(HitResult hitResult)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
private void
onHitAsWater(ServerLevel level)
method_67149(class_3218 arg0)
explodeWaterPotion(ServerWorld world)
protected abstract void
onHitAsPotion(ServerLevel level, ItemStack potionItem, HitResult hitResult)
method_67148(class_3218 arg0, class_1799 arg1, class_239 arg2)
spawnAreaEffectCloud(ServerWorld world, ItemStack stack, HitResult hitResult)
private void
dowseFire(BlockPos pos)
method_7499(class_2338 arg0)
extinguishFire(BlockPos pos)
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
calculateHorizontalHurtKnockbackDirection(LivingEntity hurtEntity, DamageSource damageSource)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)
private static boolean
lambda$static$0(LivingEntity arg0)
method_46401(class_1309 arg0)
method_46401(LivingEntity entity)