/u/JJwheel336
Guest
Member
I've been trying to wrap my head around the FoodComponent interface to turn a non-food item into an food-item. However, whenever I try, I either do it wrong and I have to rewrite it, or it throws a CastClassException whenever it attempts to run.
Here's the method without the FoodComponent, but I just need someone to explain it to me cause there's no information regarding on how to actually use it.
submitted by /u/JJwheel336
[link] [comments]
Continue reading...
free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
Here's the method without the FoodComponent, but I just need someone to explain it to me cause there's no information regarding on how to actually use it.
public MerchantRecipe createLeafTrade() { ItemStack editableLeaf = new ItemStack(Material. JUNGLE_LEAVES ); ItemMeta editableLeafMeta = editableLeaf.getItemMeta(); editableLeafMeta.displayName(Component. text ("Leaf").color(NamedTextColor. DARK_GREEN ).decorate(TextDecoration. BOLD )); ArrayList<Component> editableLeafLore = new ArrayList<Component>(); editableLeafLore.add(Component. text ("Resourceful, and Editable!").color(NamedTextColor. GRAY )); editableLeafMeta.lore(editableLeafLore); editableLeafMeta.addItemFlags(ItemFlag. HIDE_ATTRIBUTES ); editableLeaf.setItemMeta(editableLeafMeta); ItemStack dirtRequirement = new ItemStack(Material. DIRT , 20); MerchantRecipe leafRecipe = new MerchantRecipe(editableLeaf, 0); leafRecipe.addIngredient(dirtRequirement); leafRecipe.setExperienceReward(true); return leafRecipe; }
submitted by /u/JJwheel336
[link] [comments]
Continue reading...
free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons