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