All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.inventory.CraftingRecipe Maven / Gradle / Ivy

Go to download

A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.

There is a newer version: 1.6.0.1-PN
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy