Options
All
  • Public
  • Public/Protected
  • All
Menu

Object used to specify all common food properties and use them somewhere. Currently the only way to use this object is in ItemsModule.FoodValuesCallback function.

since

3.0

Hierarchy

Index

Constructors

Properties

class: Class<Object>

Methods

  • clone(): any
  • Adds potion effect to be applied when eating the food

    since

    3.0

    Parameters

    • eff: MobEffectInstance

      effect instance object

    • Optional chance: number

      chance for the effect to be applied, default is 1.0 = 100%

    Returns KEX.FoodItemComponent.Builder

    reference to itself to be used in sequential calls

  • equals(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • finalize(): void
  • hashCode(): number
  • notify(): void
  • notifyAll(): void
  • Sets the amount of nutrition points to be refilled by the food

    since

    3.0

    Parameters

    • nutr: number

    Returns KEX.FoodItemComponent.Builder

    reference to itself to be used in sequential calls

  • Sets the food's saturation modifier, used to calculate the amount of saturation points refilled by the food

    since

    3.0

    Parameters

    • sat: number

    Returns KEX.FoodItemComponent.Builder

    reference to itself to be used in sequential calls

  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void
  • Returns void

  • Parameters

    • param0: number

    Returns void

  • Parameters

    • param0: number
    • param1: number

    Returns void

Generated using TypeDoc