Interface VillagerFood
@NonExtendable
public interface VillagerFood
Represents items that villagers can eat.
Villagers will pick up items with this component in addition to items in the
Tag.ITEMS_VILLAGER_PICKS_UP tag.- Since:
- 26.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Positive intGets the nutrition value of this item.static VillagerFoodvillagerFood(@Positive int nutrition)
-
Method Details
-
villagerFood
- Since:
- 26.3
-
nutrition
@Contract(pure=true) @Positive int nutrition()Gets the nutrition value of this item.- Returns:
- the nutrition value
- Since:
- 26.3
-