Interface FoodParams

Object used in Item.createFoodItem method to specify general food item parameters.

interface FoodParams {
    category?: number;
    food?: number;
    isTech?: boolean;
    stack?: number;
}

Hierarchy (view full)

Properties

category?: number

2.2.0b76

food?: number

Amount of hunger restored by this food in halfs.

1 // 0.5 hunger unit
isTech?: boolean

If true, the item will not be added to creative.

false
stack?: number

Maximum item in stack size.

64

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.