public static class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
Constructor and Description |
---|
MaterialChoice(List<Material> choices) |
MaterialChoice(Material... choices) |
MaterialChoice(Material choice) |
MaterialChoice(Tag<Material> choices)
Constructs a MaterialChoice with the current values of the specified
tag.
|
Modifier and Type | Method and 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()
RecipeChoice
getItemStack
in interface RecipeChoice
@NotNull public RecipeChoice.MaterialChoice clone()
clone
in interface RecipeChoice
clone
in class Object
Copyright © 2022. All rights reserved.