Class Potion

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

public class Potion extends Object
Mappings:
Namespace Name
official cow
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 Lcow;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 Lcow;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;
    • registryEntry

      private final RegistryEntry.Reference<Potion> registryEntry
      Mappings:
      Namespace Name Mixin selector
      official c Lcow;c:Lih$c;
      intermediary field_45767 Lnet/minecraft/class_1842;field_45767:Lnet/minecraft/class_6880$class_6883;
      named registryEntry Lnet/minecraft/potion/Potion;registryEntry:Lnet/minecraft/registry/entry/RegistryEntry$Reference;
  • Constructor Details

    • Potion

      public Potion(StatusEffectInstance[] effects)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcow;<init>([Lbli;)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> Lcow;<init>(Ljava/lang/String;[Lbli;)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 Lcow;a(Ljava/lang/String;)Lcow;
      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 Lcow;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 Lcow;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 Lcow;b()Z
      intermediary method_8050 Lnet/minecraft/class_1842;method_8050()Z
      named hasInstantEffect Lnet/minecraft/potion/Potion;hasInstantEffect()Z
    • getRegistryEntry

      @Deprecated public RegistryEntry.Reference<Potion> getRegistryEntry()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official c Lcow;c()Lih$c;
      intermediary method_53211 Lnet/minecraft/class_1842;method_53211()Lnet/minecraft/class_6880$class_6883;
      named getRegistryEntry Lnet/minecraft/potion/Potion;getRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry$Reference;