public final class CraftingResult extends Object
CraftingRecipe.| Constructor and Description |
|---|
CraftingResult(ItemStackSnapshot result,
List<ItemStackSnapshot> remainingItems)
Creates a new
CraftingResult. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<ItemStackSnapshot> |
getRemainingItems()
Returns a list of
ItemStackSnapshot to be set in the input
CraftingGridInventory, contains ItemStackSnapshot.NONEs for
slots which should be cleared. |
ItemStackSnapshot |
getResult()
This method should be used instead of the
Recipe.getExemplaryResult() method, as it customizes the
result further depending on the specified ingredient
ItemStackSnapshot. |
int |
hashCode() |
String |
toString() |
public CraftingResult(ItemStackSnapshot result, List<ItemStackSnapshot> remainingItems)
CraftingResult.
Note that this may be replaced with a static of method in the future.
result - The result of the crafting reciperemainingItems - The remaining items to leave in the
crafting windowpublic ItemStackSnapshot getResult()
Recipe.getExemplaryResult() method, as it customizes the
result further depending on the specified ingredient
ItemStackSnapshot. It is advised to use the output of
Recipe.getExemplaryResult(), modify it accordingly, and
return it.CraftingRecipepublic List<ItemStackSnapshot> getRemainingItems()
ItemStackSnapshot to be set in the input
CraftingGridInventory, contains ItemStackSnapshot.NONEs for
slots which should be cleared.ItemStackSnapshots to be set in the input
CraftingGridInventory