Klasse Crafting.Recipe

java.lang.Object
net.risingworld.api.definitions.Crafting.Recipe
Umschließende Klasse:
Crafting

public final class Crafting.Recipe extends Object
  • Felddetails

    • id

      public short id
      Internal ID of the recipe
    • type

      public Crafting.RecipeType type
      Recipe type
    • name

      public String name
      Name of the craftable item. Depends on the recipe type, i.e. for objects, this is the object name, for constructions, it's the construction name, for items, it's the item name etc.
    • texture

      public int texture
      Target texture. Default: 0
    • amount

      public int amount
      Number of items you get when crafting this recipe
    • category

      public Crafting.Category category
      Recipe main category
    • subCategory

      public Crafting.SubCategory subCategory
      Recipe sub category
    • newLine

      public boolean newLine
      If true, a new line will be added to the crafting layer grid
    • ingredients

      public Crafting.Recipe.Ingredient[] ingredients
      Required ingredients to craft this item. If null or empty, this recipe does not require any ingredients
    • requiredCraftingStations

      public Crafting.CraftingStation[] requiredCraftingStations
      List of all required crafting stations. If null or empty, this recipe does not require any crafting stations
    • itemDef

      public Items.ItemDefinition itemDef
      Target item definition. Never null!
    • rawingredientstring

      public String rawingredientstring
      Raw ingredients string (as it was read from the database)
    • rawworkbenchesstring

      public String rawworkbenchesstring
      Raw workbenches string (as it was read from the database)
    • hasVariants

      public boolean hasVariants
    • parent

      public Crafting.Recipe parent
      Optional parent recipe (in this case, this recipe is a variant / subrecipe of the parent)
  • Methodendetails

    • synchronize

      public void synchronize()