Class Potion

java.lang.Object
net.minecraft.potion.Potion

public class Potion extends Object
Mappings:
Namespace Name
official chr
intermediary net/minecraft/class_1842
named net/minecraft/potion/Potion
  • Field Details

    • baseName

      @Nullable private final @Nullable String baseName
      Mappings:
      Namespace Name Mixin selector
      official a Lchr;a:Ljava/lang/String;
      intermediary field_8954 Lnet/minecraft/class_1842;field_8954:Ljava/lang/String;
      named baseName Lnet/minecraft/potion/Potion;baseName:Ljava/lang/String;
    • effects

      private final ImmutableList<StatusEffectInstance> effects
      Mappings:
      Namespace Name Mixin selector
      official b Lchr;b:Lcom/google/common/collect/ImmutableList;
      intermediary field_8955 Lnet/minecraft/class_1842;field_8955:Lcom/google/common/collect/ImmutableList;
      named effects Lnet/minecraft/potion/Potion;effects:Lcom/google/common/collect/ImmutableList;
  • Constructor Details

    • Potion

      public Potion(StatusEffectInstance[] effects)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchr;<init>([Lbey;)V
      intermediary <init> Lnet/minecraft/class_1842;<init>([Lnet/minecraft/class_1293;)V
      named <init> Lnet/minecraft/potion/Potion;<init>([Lnet/minecraft/entity/effect/StatusEffectInstance;)V
    • Potion

      public Potion(@Nullable @Nullable String baseName, StatusEffectInstance[] effects)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchr;<init>(Ljava/lang/String;[Lbey;)V
      intermediary <init> Lnet/minecraft/class_1842;<init>(Ljava/lang/String;[Lnet/minecraft/class_1293;)V
      named <init> Lnet/minecraft/potion/Potion;<init>(Ljava/lang/String;[Lnet/minecraft/entity/effect/StatusEffectInstance;)V
  • Method Details

    • byId

      public static Potion byId(String id)
      Mappings:
      Namespace Name Mixin selector
      official a Lchr;a(Ljava/lang/String;)Lchr;
      intermediary method_8048 Lnet/minecraft/class_1842;method_8048(Ljava/lang/String;)Lnet/minecraft/class_1842;
      named byId Lnet/minecraft/potion/Potion;byId(Ljava/lang/String;)Lnet/minecraft/potion/Potion;
    • finishTranslationKey

      public String finishTranslationKey(String prefix)
      Mappings:
      Namespace Name Mixin selector
      official b Lchr;b(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_8051 Lnet/minecraft/class_1842;method_8051(Ljava/lang/String;)Ljava/lang/String;
      named finishTranslationKey Lnet/minecraft/potion/Potion;finishTranslationKey(Ljava/lang/String;)Ljava/lang/String;
    • getEffects

      public List<StatusEffectInstance> getEffects()
      Mappings:
      Namespace Name Mixin selector
      official a Lchr;a()Ljava/util/List;
      intermediary method_8049 Lnet/minecraft/class_1842;method_8049()Ljava/util/List;
      named getEffects Lnet/minecraft/potion/Potion;getEffects()Ljava/util/List;
    • hasInstantEffect

      public boolean hasInstantEffect()
      Mappings:
      Namespace Name Mixin selector
      official b Lchr;b()Z
      intermediary method_8050 Lnet/minecraft/class_1842;method_8050()Z
      named hasInstantEffect Lnet/minecraft/potion/Potion;hasInstantEffect()Z