public class Potion extends ForgeRegistryEntry<Potion>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
baseName |
private com.google.common.collect.ImmutableList<EffectInstance> |
effects |
delegate
Constructor and Description |
---|
Potion(EffectInstance... effectsIn) |
Potion(java.lang.String baseNameIn,
EffectInstance... effectsIn) |
Modifier and Type | Method and Description |
---|---|
java.util.List<EffectInstance> |
getEffects() |
java.lang.String |
getNamePrefixed(java.lang.String prefix) |
static Potion |
getPotionTypeForName(java.lang.String name) |
boolean |
hasInstantEffect() |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private final java.lang.String baseName
private final com.google.common.collect.ImmutableList<EffectInstance> effects
public Potion(EffectInstance... effectsIn)
public Potion(@Nullable java.lang.String baseNameIn, EffectInstance... effectsIn)
public static Potion getPotionTypeForName(java.lang.String name)
public java.lang.String getNamePrefixed(java.lang.String prefix)
public java.util.List<EffectInstance> getEffects()
public boolean hasInstantEffect()