Query.Types
Constructor and Description |
---|
PotionQuery(ItemQuery query) |
PotionQuery(java.util.List<org.bukkit.potion.PotionType> type,
java.util.List<java.lang.Integer> level,
java.util.List<java.lang.Boolean> extended,
java.util.List<java.lang.Boolean> splash) |
PotionQuery(org.bukkit.potion.Potion potionObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static PotionQuery |
fromAny()
Universal query.
|
static PotionQuery |
fromAny(org.bukkit.potion.PotionType type) |
static PotionQuery |
fromAny(org.bukkit.potion.PotionType type,
java.lang.Integer level) |
static PotionQuery |
fromAny(org.bukkit.potion.PotionType type,
java.lang.Integer level,
java.lang.Boolean extended,
java.lang.Boolean splash) |
static PotionQuery |
fromExact(org.bukkit.potion.PotionType type,
java.lang.Integer level,
java.lang.Boolean extended,
java.lang.Boolean splash) |
java.util.List<java.lang.Boolean> |
getExtended() |
java.util.List<java.lang.Integer> |
getLevel() |
Query.Types |
getQueryType() |
java.util.List<java.lang.Boolean> |
getSplash() |
java.util.List<org.bukkit.potion.PotionType> |
getType() |
boolean |
hasExtended() |
int |
hashCode() |
boolean |
hasLevel() |
boolean |
hasSplash() |
boolean |
hasType() |
boolean |
match(Query other)
Determines if the given query matches the current query.
|
ItemQuery |
toItemQuery(boolean pickRandom)
Converts this potion query to an item query.
|
java.lang.String |
toString() |
public PotionQuery(java.util.List<org.bukkit.potion.PotionType> type, java.util.List<java.lang.Integer> level, java.util.List<java.lang.Boolean> extended, java.util.List<java.lang.Boolean> splash)
public PotionQuery(org.bukkit.potion.Potion potionObject)
public PotionQuery(ItemQuery query)
public static PotionQuery fromAny()
public static PotionQuery fromAny(org.bukkit.potion.PotionType type)
public static PotionQuery fromAny(org.bukkit.potion.PotionType type, java.lang.Integer level)
public static PotionQuery fromAny(org.bukkit.potion.PotionType type, java.lang.Integer level, java.lang.Boolean extended, java.lang.Boolean splash)
public static PotionQuery fromExact(org.bukkit.potion.PotionType type, java.lang.Integer level, java.lang.Boolean extended, java.lang.Boolean splash)
public java.util.List<org.bukkit.potion.PotionType> getType()
public java.util.List<java.lang.Integer> getLevel()
public java.util.List<java.lang.Boolean> getExtended()
public java.util.List<java.lang.Boolean> getSplash()
public boolean hasType()
public boolean hasLevel()
public boolean hasExtended()
public boolean hasSplash()
public ItemQuery toItemQuery(boolean pickRandom)
If this query contains multiple conflicting parameters, a value will be picked at random if pickRandom is set to TRUE. If it is FALSE, an exception will be thrown.
pickRandom
- - TRUE to solve conflicts by picking values at random.java.lang.IllegalArgumentException
- - if pickRandom is FALSE and there are conflicting parameters,public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean match(Query other)
Query
If a query can be considered to be a subset of the universe of items, then this operation determines if the current set (A) has a non-empty intersection with the other set (B).
public java.lang.String toString()
toString
in class java.lang.Object
public Query.Types getQueryType()
getQueryType
in interface Query