Enchanted Berry's name is now blue to keep consistent with all other enchanted items.

This commit is contained in:
bconlon 2020-06-19 02:04:22 -07:00
parent b85d2a77b4
commit e7fc43b523

View file

@ -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_);
}
}