Cloneable, Predicate<ItemStack>, RecipeChoicepublic static class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice| Constructor | Description | 
|---|---|
MaterialChoice(List<Material> choices) | 
|
MaterialChoice(Material choice) | 
|
MaterialChoice(Material... choices) | 
|
MaterialChoice(Tag<Material> choices) | 
 Constructs a MaterialChoice with the current values of the specified
 tag. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
RecipeChoice.MaterialChoice | 
clone() | 
|
boolean | 
equals(Object obj) | 
|
List<Material> | 
getChoices() | 
|
ItemStack | 
getItemStack() | 
 Gets a single item stack representative of this stack choice. 
 | 
int | 
hashCode() | 
|
boolean | 
test(ItemStack t) | 
|
String | 
toString() | 
public MaterialChoice(@NotNull
                      Material choice)
public MaterialChoice(@NotNull
                      Material... choices)
public MaterialChoice(@NotNull
                      Tag<Material> choices)
choices - the tagpublic boolean test(@NotNull
                    ItemStack t)
test in interface Predicate<ItemStack>test in interface RecipeChoice@NotNull public ItemStack getItemStack()
RecipeChoicegetItemStack in interface RecipeChoice@NotNull public RecipeChoice.MaterialChoice clone()
clone in interface RecipeChoiceclone in class ObjectCopyright © 2019. All rights reserved.