public class RecipeIngredient extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<RecipeIngredient>
Constructor and Description |
---|
RecipeIngredient(org.bukkit.inventory.ItemStack itemStack) |
RecipeIngredient(org.bukkit.Material material) |
RecipeIngredient(org.bukkit.Material material,
byte blockData) |
Modifier and Type | Method and Description |
---|---|
boolean |
blockDataEquals(RecipeIngredient that) |
RecipeIngredient |
clone() |
int |
compareTo(RecipeIngredient ingredient) |
boolean |
equals(java.lang.Object obj) |
byte |
getBlockData() |
org.bukkit.Material |
getMaterial() |
int |
hashCode() |
boolean |
materialEquals(RecipeIngredient that) |
RecipeIngredient |
setBlockData(java.lang.Byte blockData) |
RecipeIngredient |
setMaterial(org.bukkit.Material material) |
public RecipeIngredient(org.bukkit.Material material)
public RecipeIngredient(org.bukkit.Material material, byte blockData)
public RecipeIngredient(org.bukkit.inventory.ItemStack itemStack)
public org.bukkit.Material getMaterial()
public RecipeIngredient setMaterial(org.bukkit.Material material)
material
- the material to setpublic byte getBlockData()
public RecipeIngredient setBlockData(java.lang.Byte blockData)
blockData
- the blockData to setpublic RecipeIngredient clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean materialEquals(RecipeIngredient that)
public boolean blockDataEquals(RecipeIngredient that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(RecipeIngredient ingredient)
compareTo
in interface java.lang.Comparable<RecipeIngredient>