cn.nukkit.inventory.CraftingRecipe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.inventory;
import cn.nukkit.api.Since;
import cn.nukkit.item.Item;
import java.util.List;
import java.util.UUID;
/**
* @author CreeperFace
*/
public interface CraftingRecipe extends Recipe {
String getRecipeId();
UUID getId();
void setId(UUID id);
boolean requiresCraftingTable();
List- getExtraResults();
List
- getAllResults();
int getPriority();
/**
* Returns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT
* include the primary result item.
*
* @param inputList list of items taken from the crafting grid
* @param extraOutputList list of items put back into the crafting grid (secondary results)
* @return bool
*/
@Since("1.3.0.0-PN")
boolean matchItems(List
- inputList, List
- extraOutputList);
@Since("1.3.0.0-PN")
boolean matchItems(List
- inputList, List
- extraOutputList, int multiplier);
@Since("1.3.0.0-PN")
List
- getIngredientsAggregate();
}