Class RecipeByproduct

java.lang.Object
ke.ric.cooking.data.RecipeByproduct

public final class RecipeByproduct extends Object
A separate immutable item output produced alongside the primary result.
  • Constructor Details

    • RecipeByproduct

      public RecipeByproduct(String itemId, int amount)
    • RecipeByproduct

      public RecipeByproduct(String itemId, int amount, boolean inheritMetadata)
    • RecipeByproduct

      public RecipeByproduct(RecipeItemRef itemRef, int amount)
    • RecipeByproduct

      public RecipeByproduct(RecipeItemRef itemRef, int amount, boolean inheritMetadata)
  • Method Details

    • itemRef

      public RecipeItemRef itemRef()
    • itemId

      public String itemId()
    • amount

      public int amount()
    • inheritMetadata

      public boolean inheritMetadata()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object