public class ShapedRecipe extends Object implements CraftingRecipe
Recipe.Type| Constructor and Description |
|---|
ShapedRecipe() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte |
getHeight() |
Collection<RecipeItemStack> |
getIngredients() |
ItemStack |
getResult() |
UUID |
getUuid() |
byte |
getWidth() |
int |
hashCode() |
boolean |
matchesItems(CraftingContainer craftable) |
boolean |
matchesItems(ItemStack[][] items) |
static ShapedRecipe |
of(UUID uuid,
char[][] shape,
gnu.trove.map.TCharObjectMap<RecipeItemStack> ingredients,
ItemStack result) |
void |
writeTo(io.netty.buffer.ByteBuf buf) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitneedsCraftingTablegenerateRecipeUuid, isMultiRecipepublic static ShapedRecipe of(@Nonnull UUID uuid, @Nonnull char[][] shape, @Nonnull gnu.trove.map.TCharObjectMap<RecipeItemStack> ingredients, @Nonnull ItemStack result)
public Collection<RecipeItemStack> getIngredients()
getIngredients in interface Recipepublic boolean matchesItems(CraftingContainer craftable)
matchesItems in interface Recipepublic boolean matchesItems(ItemStack[][] items)
matchesItems in interface CraftingRecipepublic byte getHeight()
getHeight in interface CraftingRecipepublic byte getWidth()
getWidth in interface CraftingRecipeCopyright © 2017–2019 NukkitX. All rights reserved.