public final class PotionData
extends java.lang.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(java.lang.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()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018. All rights reserved.