Java 类org.bukkit.craftbukkit.inventory.CraftShapelessRecipe 实例源码

项目:Cauldron    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe()
{
    CraftItemStack result = CraftItemStack.asCraftMirror(this.recipeOutput);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);

    for (ItemStack stack : (List<ItemStack>) this.recipeItems)
    {
        if (stack != null)
        {
            recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), stack.getItemDamage());
        }
    }

    return recipe;
}
项目:CraftBukkit    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);
    for (ItemStack stack : (List<ItemStack>) this.ingredients) {
        if (stack != null) {
            recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), stack.getData());
        }
    }
    return recipe;
}
项目:Almura-Server    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);
    for (ItemStack stack : (List<ItemStack>) this.ingredients) {
        if (stack != null) {
            recipe.addIngredient(org.bukkit.Material.getMaterial(stack.id), stack.getData());
        }
    }
    return recipe;
}
项目:Tweakkit-Server    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);
    for (ItemStack stack : (List<ItemStack>) this.ingredients) {
        if (stack != null) {
            recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), stack.getData());
        }
    }
    return recipe;
}
项目:SpigotSource    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);
    for (ItemStack stack : (List<ItemStack>) this.ingredients) {
        if (stack != null) {
            recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), stack.getData());
        }
    }
    return recipe;
}
项目:Craft-city    文件:ShapelessRecipes.java   
@SuppressWarnings("unchecked")
public org.bukkit.inventory.ShapelessRecipe toBukkitRecipe() {
    CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
    CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this);
    for (ItemStack stack : (List<ItemStack>) this.ingredients) {
        if (stack != null) {
            recipe.addIngredient(org.bukkit.Material.getMaterial(stack.id), stack.getData());
        }
    }
    return recipe;
}