| 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); |
| } |
| |
| public ItemAetherFood(int healAmmount, float saturationAmmount) { |
| super(healAmmount, saturationAmmount, false); |
| 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_); |
| } |
| } |