public class DefaultLootItem extends Object
Constructor and Description |
---|
DefaultLootItem(org.json.simple.JSONObject object)
Parses a loot-table entry from JSON.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
LootRandomValues |
getCount() |
Optional<ProbableValue<Integer>> |
getData() |
Optional<ReflectiveValue<Integer>> |
getReflectiveData() |
ProbableValue<String> |
getType() |
int |
hashCode() |
String |
toString() |
public DefaultLootItem(org.json.simple.JSONObject object)
object
- a loot-table entry in JSON format.public LootRandomValues getCount()
public ProbableValue<String> getType()
public Optional<ProbableValue<Integer>> getData()
public Optional<ReflectiveValue<Integer>> getReflectiveData()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.