Cloneable
, Predicate<ItemStack>
, RecipeChoice
public static class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
Constructor | Description |
---|---|
MaterialChoice(List<Material> choices) |
|
MaterialChoice(Material choice) |
|
MaterialChoice(Material... choices) |
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 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 © 2020. All rights reserved.