BeesPlus/src/main/java/com/tomff/beesplus/items/BeeProtectionLeggings.java

36 lines
985 B
Java

package com.tomff.beesplus.items;
import com.tomff.beesplus.core.items.CustomItem;
import com.tomff.beesplus.core.items.ItemBuilder;
import com.tomff.beesplus.localization.Localization;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import java.util.HashMap;
import java.util.Map;
public class BeeProtectionLeggings implements CustomItem {
public String[] getRecipe() {
return new String[] {
"SSS",
"SLS",
"SSS"
};
}
public Map<Character, Material> getIngredients() {
Map<Character, Material> ingredients = new HashMap<>();
ingredients.put('S', Material.STRING);
ingredients.put('L', Material.CHAINMAIL_LEGGINGS);
return ingredients;
}
public ItemStack getResult() {
return new ItemBuilder(Material.CHAINMAIL_LEGGINGS)
.setName(Localization.get(Localization.BEE_PROTECTION_LEGGINGS))
.build();
}
}