public final class SmeltingResult extends Object
SmeltingRecipe
.Constructor and Description |
---|
SmeltingResult(ItemStackSnapshot result,
double experience)
Creates a new
SmeltingResult . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getExperience()
Returns the amount of experience released after completing a recipe.
|
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 SmeltingResult(ItemStackSnapshot result, double experience)
SmeltingResult
.
Note that this may be replaced with a static of method in the future.
result
- The result of the smelting recipeexperience
- The experience that should be created from this
smelting resultpublic 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.SmeltingRecipe
public double getExperience()
SmeltingRecipe