Class PotionEntity

All Implemented Interfaces:
FlyingItemEntity, CommandOutput, Nameable, EntityLike

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

    • field_30667

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

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

      public static final Predicate<LivingEntity> WATER_HURTS
      Mappings:
      Namespace Name Mixin selector
      official c Lbos;c:Ljava/util/function/Predicate;
      intermediary field_7653 Lnet/minecraft/class_1686;field_7653:Ljava/util/function/Predicate;
      named WATER_HURTS Lnet/minecraft/entity/projectile/thrown/PotionEntity;WATER_HURTS:Ljava/util/function/Predicate;
  • Constructor Details

    • PotionEntity

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

      public PotionEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbos;<init>(Lcad;Laxh;)V
      intermediary <init> Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)V
      named <init> Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
    • PotionEntity

      public PotionEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbos;<init>(Lcad;DDD)V
      intermediary <init> Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • getDefaultItem

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

      protected float getGravity()
      Overrides:
      getGravity in class ThrownEntity
      Mappings:
      Namespace Name Mixin selector
      official l Lboo;l()F
      intermediary method_7490 Lnet/minecraft/class_1682;method_7490()F
      named getGravity Lnet/minecraft/entity/projectile/thrown/ThrownEntity;getGravity()F
    • onBlockHit

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

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

      private void damageEntitiesHurtByWater()
      Mappings:
      Namespace Name Mixin selector
      official n Lbos;n()V
      intermediary method_7500 Lnet/minecraft/class_1686;method_7500()V
      named damageEntitiesHurtByWater Lnet/minecraft/entity/projectile/thrown/PotionEntity;damageEntitiesHurtByWater()V
    • applySplashPotion

      private void applySplashPotion(List<StatusEffectInstance> statusEffects, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbos;a(Ljava/util/List;Lawt;)V
      intermediary method_7498 Lnet/minecraft/class_1686;method_7498(Ljava/util/List;Lnet/minecraft/class_1297;)V
      named applySplashPotion Lnet/minecraft/entity/projectile/thrown/PotionEntity;applySplashPotion(Ljava/util/List;Lnet/minecraft/entity/Entity;)V
    • applyLingeringPotion

      private void applyLingeringPotion(ItemStack stack, Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbos;a(Lbue;Lbvz;)V
      intermediary method_7497 Lnet/minecraft/class_1686;method_7497(Lnet/minecraft/class_1799;Lnet/minecraft/class_1842;)V
      named applyLingeringPotion Lnet/minecraft/entity/projectile/thrown/PotionEntity;applyLingeringPotion(Lnet/minecraft/item/ItemStack;Lnet/minecraft/potion/Potion;)V
    • isLingering

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

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