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