跳转至

ItemFoodComponent

文档版本:1.21.0.24

ItemFoodComponent类,扩展自ItemComponent。script_api.minecraft/server.itemfoodcomponent.description

常量

componentId
static read-only componentId = "minecraft:food";

属性

canAlwaysEat
read-only canAlwaysEat: boolean;
nutrition
read-only nutrition: int32;
saturationModifier
read-only saturationModifier: float;
usingConvertsTo
read-only usingConvertsTo: string;