Search in sources :

Example 1 with CraftStonecuttingRecipe

use of org.bukkit.craftbukkit.v.inventory.CraftStonecuttingRecipe in project Arclight by IzzelAliz.

the class StonecuttingRecipeMixin method bridge$toBukkitRecipe.

@Override
public Recipe bridge$toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftStonecuttingRecipe recipe = new CraftStonecuttingRecipe(CraftNamespacedKey.fromMinecraft(this.getId()), result, CraftRecipe.toBukkit(this.ingredient));
    recipe.setGroup(this.group);
    return recipe;
}
Also used : CraftItemStack(org.bukkit.craftbukkit.v.inventory.CraftItemStack) CraftStonecuttingRecipe(org.bukkit.craftbukkit.v.inventory.CraftStonecuttingRecipe)

Aggregations

CraftItemStack (org.bukkit.craftbukkit.v.inventory.CraftItemStack)1 CraftStonecuttingRecipe (org.bukkit.craftbukkit.v.inventory.CraftStonecuttingRecipe)1