Class PotionEntity

All Implemented Interfaces:
DataTracked, FlyingItemEntity, Ownable, ScoreHolder, Nameable, EntityLike

public class PotionEntity extends ThrownItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/thrown/PotionEntity
intermediary net/minecraft/class_1686
official crb
  • Field Details

    • field_30667

      public static final double field_30667
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30667 Lnet/minecraft/entity/projectile/thrown/PotionEntity;field_30667:D
      intermediary field_30667 Lnet/minecraft/class_1686;field_30667:D
      official a Lcrb;a:D
    • field_30668

      private static final double field_30668
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30668 Lnet/minecraft/entity/projectile/thrown/PotionEntity;field_30668:D
      intermediary field_30668 Lnet/minecraft/class_1686;field_30668:D
      official c Lcrb;c:D
    • AFFECTED_BY_WATER

      public static final Predicate<LivingEntity> AFFECTED_BY_WATER
      Mappings:
      Namespace Name Mixin selector
      named AFFECTED_BY_WATER Lnet/minecraft/entity/projectile/thrown/PotionEntity;AFFECTED_BY_WATER:Ljava/util/function/Predicate;
      intermediary field_40737 Lnet/minecraft/class_1686;field_40737:Ljava/util/function/Predicate;
      official b Lcrb;b:Ljava/util/function/Predicate;
  • Constructor Details

    • PotionEntity

      public PotionEntity(EntityType<? extends PotionEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbvj;<init>(Lbvq;Ldhh;)V
    • PotionEntity

      public PotionEntity(World world, LivingEntity owner, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
      official <init> Lcrb;<init>(Ldhh;Lbwf;Lcxo;)V
    • PotionEntity

      public PotionEntity(World world, double x, double y, double z, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
      official <init> Lcrb;<init>(Ldhh;DDDLcxo;)V
  • Method Details

    • getDefaultItem

      protected Item getDefaultItem()
      Specified by:
      getDefaultItem in class ThrownItemEntity
      Mappings:
      Namespace Name Mixin selector
      named getDefaultItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getDefaultItem()Lnet/minecraft/item/Item;
      intermediary method_16942 Lnet/minecraft/class_3857;method_16942()Lnet/minecraft/class_1792;
      official m Lcqw;m()Lcxk;
    • getGravity

      protected double getGravity()
      Overrides:
      getGravity in class ThrownEntity
      Mappings:
      Namespace Name Mixin selector
      named getGravity Lnet/minecraft/entity/Entity;getGravity()D
      intermediary method_7490 Lnet/minecraft/class_1297;method_7490()D
      official bd Lbvj;bd()D
    • onBlockHit

      protected void onBlockHit(BlockHitResult blockHitResult)
      Overrides:
      onBlockHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onBlockHit Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
      intermediary method_24920 Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V
      official a Lcqp;a(Lfbt;)V
    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onCollision Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
      intermediary method_7488 Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
      official a Lcqp;a(Lfbv;)V
    • applyWater

      private void applyWater(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named applyWater Lnet/minecraft/entity/projectile/thrown/PotionEntity;applyWater(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_7500 Lnet/minecraft/class_1686;method_7500(Lnet/minecraft/class_3218;)V
      official b Lcrb;b(Lash;)V
    • applySplashPotion

      private void applySplashPotion(ServerWorld world, Iterable<StatusEffectInstance> effects, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named applySplashPotion Lnet/minecraft/entity/projectile/thrown/PotionEntity;applySplashPotion(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/Iterable;Lnet/minecraft/entity/Entity;)V
      intermediary method_7498 Lnet/minecraft/class_1686;method_7498(Lnet/minecraft/class_3218;Ljava/lang/Iterable;Lnet/minecraft/class_1297;)V
      official a Lcrb;a(Lash;Ljava/lang/Iterable;Lbvj;)V
    • applyLingeringPotion

      private void applyLingeringPotion(PotionContentsComponent potion)
      Mappings:
      Namespace Name Mixin selector
      named applyLingeringPotion Lnet/minecraft/entity/projectile/thrown/PotionEntity;applyLingeringPotion(Lnet/minecraft/component/type/PotionContentsComponent;)V
      intermediary method_7497 Lnet/minecraft/class_1686;method_7497(Lnet/minecraft/class_1844;)V
      official a Lcrb;a(Lczn;)V
    • isLingering

      private boolean isLingering()
      Mappings:
      Namespace Name Mixin selector
      named isLingering Lnet/minecraft/entity/projectile/thrown/PotionEntity;isLingering()Z
      intermediary method_7501 Lnet/minecraft/class_1686;method_7501()Z
      official s Lcrb;s()Z
    • extinguishFire

      private void extinguishFire(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named extinguishFire Lnet/minecraft/entity/projectile/thrown/PotionEntity;extinguishFire(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7499 Lnet/minecraft/class_1686;method_7499(Lnet/minecraft/class_2338;)V
      official a Lcrb;a(Ljh;)V
    • getKnockback

      public DoubleDoubleImmutablePair getKnockback(LivingEntity target, DamageSource source)
      Overrides:
      getKnockback in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named getKnockback Lnet/minecraft/entity/projectile/ProjectileEntity;getKnockback(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Lit/unimi/dsi/fastutil/doubles/DoubleDoubleImmutablePair;
      intermediary method_59959 Lnet/minecraft/class_1676;method_59959(Lnet/minecraft/class_1309;Lnet/minecraft/class_1282;)Lit/unimi/dsi/fastutil/doubles/DoubleDoubleImmutablePair;
      official a_ Lcqp;a_(Lbwf;Lbtz;)Lit/unimi/dsi/fastutil/doubles/DoubleDoubleImmutablePair;