private void addIronDurabilityRecipe() {
ItemStack chestStack = new ItemStack(Material.IRON_CHESTPLATE, 1);
chestStack.setDurability((short)-IronChestplateAugmentedDurability);
ShapedRecipe chestRecipe = new ShapedRecipe( chestStack );
chestRecipe.shape("LLL","LIL","LLL");
chestRecipe.setIngredient('L', Material.LEATHER);
chestRecipe.setIngredient('I', Material.IRON_CHESTPLATE);
getServer().addRecipe(chestRecipe);
ItemStack leggingsStack = new ItemStack(Material.IRON_LEGGINGS, 1);
leggingsStack.setDurability((short)-IronLeggingsAugmentedDurability);
ShapedRecipe leggingsRecipe = new ShapedRecipe( leggingsStack );
leggingsRecipe.shape("LLL","LIL","LLL");
leggingsRecipe.setIngredient('L', Material.LEATHER);
leggingsRecipe.setIngredient('I', Material.IRON_LEGGINGS);
getServer().addRecipe(leggingsRecipe);
ItemStack bootsStack = new ItemStack(Material.IRON_BOOTS, 1);
bootsStack.setDurability((short)-IronBootsAugmentedDurability);
ShapedRecipe bootsRecipe = new ShapedRecipe( bootsStack );
bootsRecipe.shape("LLL","LIL","LLL");
bootsRecipe.setIngredient('L', Material.LEATHER);
bootsRecipe.setIngredient('I', Material.IRON_BOOTS);
getServer().addRecipe(bootsRecipe);
ItemStack helmetStack = new ItemStack(Material.IRON_HELMET, 1);
helmetStack.setDurability((short)-IronHelmetAugmentedDurability);
ShapedRecipe helmetRecipe = new ShapedRecipe( helmetStack );
helmetRecipe.shape("LLL","LIL","LLL");
helmetRecipe.setIngredient('L', Material.LEATHER);
helmetRecipe.setIngredient('I', Material.IRON_HELMET);
getServer().addRecipe(helmetRecipe);
}
SpecialItemsPlugin.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:world-of-icerealm
作者:
评论列表
文章目录