public final class PotionData extends Object
Constructor and Description |
---|
PotionData(@NotNull PotionType type) |
PotionData(@NotNull PotionType type,
boolean extended,
boolean upgraded)
Instantiates a final PotionData object to contain information about a
Potion
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
@NotNull 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 @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 @NotNull PotionType type)
@NotNull public @NotNull PotionType getType()
public boolean isUpgraded()
public boolean isExtended()
Copyright © 2021. All rights reserved.