public class ConditionalLootItem extends Object
Constructor and Description |
---|
ConditionalLootItem(org.json.simple.JSONObject object)
Parses a conditional loot item from its JSONObject form.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getCondition() |
Optional<LootRandomValues> |
getCount() |
Optional<ProbableValue<Integer>> |
getData() |
Optional<ReflectiveValue<Integer>> |
getReflectiveData() |
Optional<ProbableValue<String>> |
getType() |
int |
hashCode() |
String |
toString() |
public ConditionalLootItem(org.json.simple.JSONObject object)
object
- a JSON object describing the loot itempublic Optional<ProbableValue<String>> getType()
public String getCondition()
public Optional<LootRandomValues> getCount()
public Optional<ProbableValue<Integer>> getData()
public Optional<ReflectiveValue<Integer>> getReflectiveData()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.