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

项目:CraftBukkit    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        net.minecraft.server.ItemStack item;
        if (smeltingCustom.hasNext()) {
            removeFrom = smeltingCustom;
            item = smeltingCustom.next();
        } else {
            removeFrom = smeltingVanilla;
            item = smeltingVanilla.next();
        }

        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(item));

        return new CraftFurnaceRecipe(stack, CraftItemStack.asCraftMirror(item));
    }
}
项目:Craftbukkit    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        net.minecraft.server.ItemStack item;
        if (smeltingCustom.hasNext()) {
            removeFrom = smeltingCustom;
            item = smeltingCustom.next();
        } else {
            removeFrom = smeltingVanilla;
            item = smeltingVanilla.next();
        }

        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(item));

        return new CraftFurnaceRecipe(stack, CraftItemStack.asCraftMirror(item));
    }
}
项目:Tweakkit-Server    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        net.minecraft.server.ItemStack item;
        if (smeltingCustom.hasNext()) {
            removeFrom = smeltingCustom;
            item = smeltingCustom.next();
        } else {
            removeFrom = smeltingVanilla;
            item = smeltingVanilla.next();
        }

        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(item));

        return new CraftFurnaceRecipe(stack, CraftItemStack.asCraftMirror(item));
    }
}
项目:SpigotSource    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        net.minecraft.server.ItemStack item;
        if (smeltingCustom.hasNext()) {
            removeFrom = smeltingCustom;
            item = smeltingCustom.next();
        } else {
            removeFrom = smeltingVanilla;
            item = smeltingVanilla.next();
        }

        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(item));

        return new CraftFurnaceRecipe(stack, CraftItemStack.asCraftMirror(item));
    }
}
项目:Almura-Server    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        removeFrom = smelting;
        int id = smelting.next();
        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(id));

        return new CraftFurnaceRecipe(stack, new ItemStack(id, 1, (short) -1));
    }
}
项目:Craft-city    文件:RecipeIterator.java   
public Recipe next() {
    if (recipes.hasNext()) {
        removeFrom = recipes;
        return recipes.next().toBukkitRecipe();
    } else {
        removeFrom = smelting;
        int id = smelting.next();
        CraftItemStack stack = CraftItemStack.asCraftMirror(RecipesFurnace.getInstance().getResult(id));

        return new CraftFurnaceRecipe(stack, new ItemStack(id, 1, (short) -1));
    }
}
项目:DiffUtils    文件:CraftServer_1710.java   
@Override
public void clearRecipes() {
    CraftingManager.getInstance().recipes.clear();
    RecipesFurnace.getInstance().recipes.clear();
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:DiffUtils    文件:CraftServer_1710.java   
@Override
public void resetRecipes() {
    CraftingManager.getInstance().recipes = new CraftingManager().recipes;
    RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:CraftBukkit    文件:CraftFurnaceRecipe.java   
@Override
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(CraftItemStack.asNMSCopy(input), CraftItemStack.asNMSCopy(result));
}
项目:CraftBukkit    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smeltingCustom = RecipesFurnace.getInstance().customRecipes.keySet().iterator();
    this.smeltingVanilla = RecipesFurnace.getInstance().recipes.keySet().iterator();
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
public void clearRecipes() {
    CraftingManager.getInstance().recipes.clear();
    RecipesFurnace.getInstance().recipes.clear();
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
public void resetRecipes() {
    CraftingManager.getInstance().recipes = new CraftingManager().recipes;
    RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:Craftbukkit    文件:CraftFurnaceRecipe.java   
@Override
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(CraftItemStack.asNMSCopy(input), CraftItemStack.asNMSCopy(result));
}
项目:Craftbukkit    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smeltingCustom = RecipesFurnace.getInstance().customRecipes.keySet().iterator();
    this.smeltingVanilla = RecipesFurnace.getInstance().recipes.keySet().iterator();
}
项目:Almura-Server    文件:CraftFurnaceRecipe.java   
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(input.getTypeId(), CraftItemStack.asNMSCopy(result), 0.1f);
}
项目:Almura-Server    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smelting = RecipesFurnace.getInstance().getRecipes().keySet().iterator();
}
项目:Almura-Server    文件:CraftServer.java   
public void clearRecipes() {
    CraftingManager.getInstance().recipes.clear();
    RecipesFurnace.getInstance().recipes.clear();
}
项目:Almura-Server    文件:CraftServer.java   
public void resetRecipes() {
    CraftingManager.getInstance().recipes = new CraftingManager().recipes;
    RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
}
项目:Tweakkit-Server    文件:CraftFurnaceRecipe.java   
@Override
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(CraftItemStack.asNMSCopy(input), CraftItemStack.asNMSCopy(result));
}
项目:Tweakkit-Server    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smeltingCustom = RecipesFurnace.getInstance().customRecipes.keySet().iterator();
    this.smeltingVanilla = RecipesFurnace.getInstance().recipes.keySet().iterator();
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
public void clearRecipes() {
    CraftingManager.getInstance().recipes.clear();
    RecipesFurnace.getInstance().recipes.clear();
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
public void resetRecipes() {
    CraftingManager.getInstance().recipes = new CraftingManager().recipes;
    RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
    RecipesFurnace.getInstance().customRecipes.clear();
}
项目:SpigotSource    文件:CraftFurnaceRecipe.java   
@Override
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(CraftItemStack.asNMSCopy(input), CraftItemStack.asNMSCopy(result), getExperience());
}
项目:SpigotSource    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smeltingCustom = RecipesFurnace.getInstance().customRecipes.keySet().iterator();
    this.smeltingVanilla = RecipesFurnace.getInstance().recipes.keySet().iterator();
}
项目:Craft-city    文件:CraftFurnaceRecipe.java   
public void addToCraftingManager() {
    ItemStack result = this.getResult();
    ItemStack input = this.getInput();
    RecipesFurnace.getInstance().registerRecipe(input.getTypeId(), CraftItemStack.asNMSCopy(result), 0.1f);
}
项目:Craft-city    文件:RecipeIterator.java   
public RecipeIterator() {
    this.recipes = CraftingManager.getInstance().getRecipes().iterator();
    this.smelting = RecipesFurnace.getInstance().getRecipes().keySet().iterator();
}
项目:Craft-city    文件:CraftServer.java   
public void clearRecipes() {
    CraftingManager.getInstance().recipes.clear();
    RecipesFurnace.getInstance().recipes.clear();
}
项目:Craft-city    文件:CraftServer.java   
public void resetRecipes() {
    CraftingManager.getInstance().recipes = new CraftingManager().recipes;
    RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
}