MCFood
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.
import crafttweaker.api.food.MCFood;
Constructors
No Description Provided
new MCFood(healing as int, saturation as float) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter healing | Type int | Description No Description Provided |
Parameter saturation | Type float | Description No Description Provided |
Methods
Return Type: MCFood
MCFood.addEffect(effect as MCPotionEffectInstance, probability as float) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter effect | Type MCPotionEffectInstance | Description No Description Provided |
Parameter probability | Type float | Description No Description Provided |
Return Type: void
// MCFood.clearEffects() as void
myMCFood.clearEffects();
Return Type: MCFood
MCFood.removeEffect(effect as MCPotionEffectInstance) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter effect | Type MCPotionEffectInstance | Description No Description Provided |
Return Type: MCFood
MCFood.setCanEatWhenFull(canEatWhenFull as boolean) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter canEatWhenFull | Type boolean | Description No Description Provided |
Return Type: MCFood
MCFood.setFastEating(fastEating as boolean) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter fastEating | Type boolean | Description No Description Provided |
Return Type: MCFood
MCFood.setHealing(healing as int) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter healing | Type int | Description No Description Provided |
Return Type: MCFood
MCFood.setMeat(meat as boolean) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter meat | Type boolean | Description No Description Provided |
Return Type: MCFood
MCFood.setSaturation(saturation as float) as MCFood
Parameter | Type | Description |
---|---|---|
Parameter saturation | Type float | Description No Description Provided |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name canEatWhenFull | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name healing | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name isFastEating | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name meat | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name saturation | Type float | Has Getter true | Has Setter false | Description No Description Provided |