
package net.mcreator.azertymod.item;

import net.minecraftforge.registries.ObjectHolder;

import net.minecraft.item.UseAction;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.Item;
import net.minecraft.item.Food;

import net.mcreator.azertymod.AzertymodElements;

@AzertymodElements.ModElement.Tag
public class RecoltedMaisItem extends AzertymodElements.ModElement {
	@ObjectHolder("azertymod:recoltedmais")
	public static final Item block = null;
	public RecoltedMaisItem(AzertymodElements instance) {
		super(instance, 24);
	}

	@Override
	public void initElements() {
		elements.items.add(() -> new FoodItemCustom());
	}
	public static class FoodItemCustom extends Item {
		public FoodItemCustom() {
			super(new Item.Properties().group(ItemGroup.FOOD).maxStackSize(64).food((new Food.Builder()).hunger(1).saturation(0.2f).build()));
			setRegistryName("recoltedmais");
		}

		@Override
		public int getUseDuration(ItemStack stack) {
			return 45;
		}

		@Override
		public UseAction getUseAction(ItemStack par1ItemStack) {
			return UseAction.EAT;
		}
	}
}
