public final class PotionData extends Object
Constructor and 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 and 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(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(PotionType type)
public PotionType getType()
public boolean isUpgraded()
public boolean isExtended()
Copyright © 2016. All rights reserved.