public class Entry extends Object
Constructor and Description |
---|
Entry(org.json.simple.JSONObject entry)
Instantiates an Entry from a JSON representation.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
getItem(Random r)
Fetches a single ItemStack from the Entry, applying all functions to it.
|
long |
getWeight()
Gets the weight attribute of the Entry.
|
public Entry(org.json.simple.JSONObject entry)
entry
- The JSON Object to instantiate from.public org.bukkit.inventory.ItemStack getItem(Random r)
r
- The Random instance to apply functions withpublic long getWeight()
Copyright © 2020. All rights reserved.