public class Potion extends Object
Modifier and Type | Field and Description |
---|---|
private String |
baseName |
private ImmutableList<StatusEffectInstance> |
effects |
Constructor and Description |
---|
Potion(StatusEffectInstance[] effects) |
Potion(String baseName,
StatusEffectInstance[] effects) |
Modifier and Type | Method and Description |
---|---|
static Potion |
byId(String id) |
String |
finishTranslationKey(String prefix) |
List<StatusEffectInstance> |
getEffects() |
boolean |
hasInstantEffect() |
private final String baseName
private final ImmutableList<StatusEffectInstance> effects
public Potion(StatusEffectInstance[] effects)
public Potion(@Nullable String baseName, StatusEffectInstance[] effects)