public RecipeManager(SCG plugin ){
this.plugin = plugin;
ItemStack ender = new ItemStack(Material.ENDER_STONE);
ShapedRecipe enderRecipe = new ShapedRecipe(ender);
enderRecipe.shape("*S*","SPS","*S*");
enderRecipe.setIngredient('*', Material.REDSTONE);
enderRecipe.setIngredient('S', Material.STONE);
enderRecipe.setIngredient('P', Material.PISTON_BASE);
Bukkit.addRecipe(enderRecipe);
ItemStack enderChest = new ItemStack(Material.ENDER_CHEST);
ShapedRecipe enderChestRecipe = new ShapedRecipe(enderChest);
enderChestRecipe.shape("***","*P*","***");
enderChestRecipe.setIngredient('*', Material.OBSIDIAN);
enderChestRecipe.setIngredient('P', Material.ENDER_PEARL);
Bukkit.addRecipe(enderChestRecipe);
// ItemStack obsidian = new ItemStack(Material.OBSIDIAN);
// ShapedRecipe obsidianRecipe = new ShapedRecipe(obsidian);
// obsidianRecipe.shape("***","***","***");
// obsidianRecipe.setIngredient('*', Material.COBBLESTONE);
// Bukkit.addRecipe(obsidianRecipe);
}
RecipeManager.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:SurvivalCG
作者:
评论列表
文章目录