Holds all the food data.
- Author
- Daniel.
Definition at line 57 of file FoodData.java.
◆ FoodData() [1/2]
com.osroyale.content.consume.FoodData.FoodData |
( |
int | id, |
|
|
int | parent, |
|
|
int | replacement, |
|
|
int | heal, |
|
|
String | name ) |
|
inline |
The different consumables.
- Parameters
-
id | The id of the item. |
heal | The amount of health received after consuming the item. |
name | The name of the consumable item. |
Definition at line 152 of file FoodData.java.
◆ FoodData() [2/2]
com.osroyale.content.consume.FoodData.FoodData |
( |
int | id, |
|
|
int | heal, |
|
|
String | name ) |
|
inline |
The different consumables.
- Parameters
-
id | The id of the item. |
heal | The amount of health received after consuming the item. |
name | The name of the consumable item. |
Definition at line 167 of file FoodData.java.
◆ forId()
Optional< FoodData > com.osroyale.content.consume.FoodData.forId |
( |
int | id | ) |
|
|
inlinestatic |
Gets the food data based on the item identification.
- Parameters
-
id | The item identification. |
- Returns
- The food data.
Definition at line 177 of file FoodData.java.
◆ getHeal()
int com.osroyale.content.consume.FoodData.getHeal |
( |
| ) |
|
|
inline |
Gets the healing amount of the consumable.
Definition at line 227 of file FoodData.java.
◆ getId()
int com.osroyale.content.consume.FoodData.getId |
( |
| ) |
|
|
inline |
◆ getName()
String com.osroyale.content.consume.FoodData.getName |
( |
| ) |
|
|
inline |
◆ getReplacement()
int com.osroyale.content.consume.FoodData.getReplacement |
( |
| ) |
|
|
inline |
◆ isFast()
boolean com.osroyale.content.consume.FoodData.isFast |
( |
| ) |
|
|
inline |
The documentation for this enum was generated from the following file: