public final class PotionData extends Object
| Constructor | Description |
|---|---|
PotionData(PotionType type) |
|
PotionData(PotionType type,
boolean extended,
boolean upgraded) |
Instantiates a final PotionData object to contain information about a
Potion
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
PotionType |
getType() |
Gets the type of the potion, Type matches up with each kind of craftable
potion
|
int |
hashCode() |
|
boolean |
isExtended() |
Checks if the potion is in an extended state.
|
boolean |
isUpgraded() |
Checks if the potion is in an upgraded state.
|
public PotionData(@NotNull
PotionType type,
boolean extended,
boolean upgraded)
type - the type of the Potionextended - whether the potion is extended PotionType#isExtendable()
must be trueupgraded - whether the potion is upgraded PotionType#isUpgradable()
must be truepublic PotionData(@NotNull
PotionType type)
@NotNull public PotionType getType()
public boolean isUpgraded()
public boolean isExtended()
Copyright © 2020. All rights reserved.