From e7fc43b52396f0718ec5a0fe97bf91177351adb6 Mon Sep 17 00:00:00 2001 From: bconlon Date: Fri, 19 Jun 2020 02:04:22 -0700 Subject: [PATCH] Enchanted Berry's name is now blue to keep consistent with all other enchanted items. --- .../java/com/legacy/aether/items/food/ItemAetherFood.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/legacy/aether/items/food/ItemAetherFood.java b/src/main/java/com/legacy/aether/items/food/ItemAetherFood.java index 397d08b..a51b506 100644 --- a/src/main/java/com/legacy/aether/items/food/ItemAetherFood.java +++ b/src/main/java/com/legacy/aether/items/food/ItemAetherFood.java @@ -1,10 +1,14 @@ package com.legacy.aether.items.food; +import com.legacy.aether.items.ItemsAether; +import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemFood; import com.legacy.aether.registry.creative_tabs.AetherCreativeTabs; +import net.minecraft.item.ItemStack; public class ItemAetherFood extends ItemFood { + public ItemAetherFood(int healAmmount) { super(healAmmount, false); this.setCreativeTab(AetherCreativeTabs.food); @@ -15,4 +19,8 @@ public class ItemAetherFood extends ItemFood { this.setCreativeTab(AetherCreativeTabs.food); } + @Override + public EnumRarity getRarity(ItemStack p_77613_1_) { + return p_77613_1_.getItem() == ItemsAether.enchanted_blueberry ? EnumRarity.rare : super.getRarity(p_77613_1_); + } } \ No newline at end of file