FoodProperties
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Static Methods
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter nutrition | Type int |
Parameter saturationModifier | Type float |
Methods
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter effect | Type MobEffectInstance |
Parameter probability | Type float |
Return Type: boolean
Return Type: stdlib.List<Pair<MobEffectInstance,float?>>
Return Type: int
Return Type: float
Return Type: boolean
Return Type: boolean
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter effect | Type MobEffect |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter effect | Type MobEffectInstance |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter canAlwaysEat | Type boolean |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter fastFood | Type boolean |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter isMeat | Type boolean |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter nutrition | Type int |
Return Type: FoodProperties
Parameter | Type |
---|---|
Parameter saturationModifier | Type float |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name canAlwaysEat | Type boolean | Has Getter true | Has Setter true |
Name effects | Type stdlib.List<Pair<MobEffectInstance,float?>> | Has Getter true | Has Setter false |
Name isFastFood | Type boolean | Has Getter true | Has Setter true |
Name isMeat | Type boolean | Has Getter true | Has Setter true |
Name nutrition | Type int | Has Getter true | Has Setter true |
Name saturationModifier | Type float | Has Getter true | Has Setter true |