public class OneChestItem
extends java.lang.Object
OneChest
Modifier and Type | Field and Description |
---|---|
private org.bukkit.Material |
material
The material of the item.
|
private int |
maxAmount
The maximum stack size of the item.
|
private int |
minAmount
The minimum stack size of the item.
|
private int |
probability
How common it is to find the item, relative to others.
|
Modifier | Constructor and Description |
---|---|
private |
OneChestItem(java.lang.String itemString)
Constructs an item of to put in a chest, based on an item string.
|
Modifier and Type | Method and Description |
---|---|
static void |
create(OneChest chest,
java.lang.String itemString)
Creates an item, based on the given item string.
|
org.bukkit.inventory.ItemStack |
generateItemStack()
Creates a normal item stack from the chest item.
|
org.bukkit.Material |
getMaterial() |
int |
getMaxAmount() |
int |
getMinAmount() |
int |
getProbability() |
private org.bukkit.Material material
private int probability
private int minAmount
private int maxAmount
private OneChestItem(java.lang.String itemString)
itemString
- The string, to parse the item stack from.public static void create(OneChest chest, java.lang.String itemString)
chest
- The chest, the item can be found in.itemString
- The string, to parse the item stack from.public org.bukkit.inventory.ItemStack generateItemStack()
public org.bukkit.Material getMaterial()
public int getProbability()
public int getMinAmount()
public int getMaxAmount()