Java 类net.minecraft.server.ShapelessRecipes 实例源码

项目:Brynhildr    文件:CraftShapelessRecipe.java   
public void addToCraftingManager() {
    List<ItemStack> ingred = this.getIngredientList();
    NonNullList<RecipeItemStack> data = NonNullList.a(ingred.size(), RecipeItemStack.a);
    for (int i = 0; i < ingred.size(); i++) {
        data.set(i, RecipeItemStack.a(new net.minecraft.server.ItemStack[]{CraftItemStack.asNMSCopy(ingred.get(i))}));
    }

    CraftingManager.a(CraftNamespacedKey.toMinecraft(this.getKey()), new ShapelessRecipes("", CraftItemStack.asNMSCopy(this.getResult()), data));
}
项目:Brynhildr    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(CraftNamespacedKey.fromMinecraft(recipe.key), result);
    this.recipe = recipe;
}
项目:CraftBukkit    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}
项目:Craftbukkit    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}
项目:Almura-Server    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}
项目:Tweakkit-Server    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}
项目:SpigotSource    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}
项目:Craft-city    文件:CraftShapelessRecipe.java   
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
    this(result);
    this.recipe = recipe;
}