public abstract class Potion extends Object
| Constructor and Description |
|---|
Potion(PotionType type) |
Potion(PotionType type,
boolean splash) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyPotion(Entity entity) |
int |
getDuration() |
abstract Effect |
getEffect() |
int |
getLevel() |
PotionType |
getType() |
boolean |
isInstant() |
boolean |
isSplash() |
Potion |
setSplash(boolean splash) |
public Potion(PotionType type)
public Potion(PotionType type, boolean splash)
public PotionType getType()
public abstract Effect getEffect()
public abstract void applyPotion(Entity entity)
public int getDuration()
public int getLevel()
public boolean isSplash()
public Potion setSplash(boolean splash)
public boolean isInstant()
Copyright © 2021. All rights reserved.