Package net.risingworld.api.definitions
Class Crafting.Recipe
java.lang.Object
net.risingworld.api.definitions.Crafting.Recipe
- Enclosing class:
Crafting
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of items you get when crafting this recipeRecipe main categoryboolean
short
Internal ID of the recipeRequired ingredients to craft this item.Target item definition.Name of the craftable item.boolean
If true, a new line will be added to the crafting layer gridOptional parent recipe (in this case, this recipe is a variant / subrecipe of the parent)Raw ingredients string (as it was read from the database)Raw workbenches string (as it was read from the database)List of all required crafting stations.Recipe sub categoryint
Target texture.Recipe type -
Method Summary
-
Field Details
-
id
public short idInternal ID of the recipe -
type
Recipe type -
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 textureTarget texture. Default: 0 -
amount
public int amountNumber of items you get when crafting this recipe -
category
Recipe main category -
subCategory
Recipe sub category -
newLine
public boolean newLineIf true, a new line will be added to the crafting layer grid -
ingredients
Required ingredients to craft this item. If null or empty, this recipe does not require any ingredients -
requiredCraftingStations
List of all required crafting stations. If null or empty, this recipe does not require any crafting stations -
itemDef
Target item definition. Never null! -
rawingredientstring
Raw ingredients string (as it was read from the database) -
rawworkbenchesstring
Raw workbenches string (as it was read from the database) -
hasVariants
public boolean hasVariants -
parent
Optional parent recipe (in this case, this recipe is a variant / subrecipe of the parent)
-
-
Method Details
-
synchronize
public void synchronize()
-