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