public interface RecipeManager
Modifier and Type | Field and Description |
---|---|
static Value<RecipeManager> |
instance |
Modifier and Type | Method and Description |
---|---|
default void |
addShapedRecipe(Item result,
char[][] grid,
CraftTuple source)
Adds a shaped recipe using a single source
|
void |
addShapedRecipe(Item result,
char[][] grid,
List<CraftTuple> source)
Adds a recipe with a specified shape
|
default void |
addShapelessRecipe(Item result,
Item source)
Adds a shapeless recipe
|
void |
addShapelessRecipe(Item result,
List<Item> source)
Adds a recipe without a shape
|
default void |
addSmeltingFuel(Item source,
int burnTicks)
Adds a smelting fuel item
|
void |
addSmeltingFuel(Item source,
int burnTicks,
Item returnItem)
Adds a smelting fuel type
|
void |
addSmeltingRecipe(Item result,
Item source,
int smeltTicks,
float experience)
Adds a smelting recipe to the server
|
static RecipeManager |
instance()
Obtains an instance of the recipe manager
|
static final Value<RecipeManager> instance
static RecipeManager instance()
void addShapelessRecipe(Item result, List<Item> source)
result
- the result of the recipesource
- the items required to craft the resultvoid addShapedRecipe(Item result, char[][] grid, List<CraftTuple> source)
result
- the result of the recipegrid
- the shape of the recipesource
- the items required to craft the resultvoid addSmeltingRecipe(Item result, Item source, int smeltTicks, float experience)
result
- the result of smeltingsource
- the item to smeltsmeltTicks
- the ticks required to smelt the itemexperience
- the experience earned from smelting the itemvoid addSmeltingFuel(Item source, int burnTicks, Item returnItem)
source
- the fuelburnTicks
- the ticks to burnreturnItem
- the item to return TODO what?default void addShapelessRecipe(Item result, Item source)
result
- the result of the recipesource
- the item that the recipe consumesdefault void addShapedRecipe(Item result, char[][] grid, CraftTuple source)
result
- the result of the recipegrid
- the recipe shapesource
- the recipe ingredientsdefault void addSmeltingFuel(Item source, int burnTicks)
source
- the item typeburnTicks
- the ticks the item burns forCopyright © 2016. All rights reserved.