RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.consume.FoodData Enum Reference

Public Member Functions

 FoodData (int id, int parent, int replacement, int heal, String name)
 FoodData (int id, int heal, String name)
int getId ()
int getReplacement ()
boolean isFast ()
int getHeal ()
String getName ()

Static Public Member Functions

static Optional< FoodDataforId (int id)

Detailed Description

Holds all the food data.

Author
Daniel.

Definition at line 57 of file FoodData.java.

Constructor & Destructor Documentation

◆ FoodData() [1/2]

com.osroyale.content.consume.FoodData.FoodData ( int id,
int parent,
int replacement,
int heal,
String name )
inline

The different consumables.

Parameters
idThe id of the item.
healThe amount of health received after consuming the item.
nameThe 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
idThe id of the item.
healThe amount of health received after consuming the item.
nameThe name of the consumable item.

Definition at line 167 of file FoodData.java.

Member Function Documentation

◆ forId()

Optional< FoodData > com.osroyale.content.consume.FoodData.forId ( int id)
inlinestatic

Gets the food data based on the item identification.

Parameters
idThe 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

Gets the id of the consumable.

Definition at line 212 of file FoodData.java.

◆ getName()

String com.osroyale.content.consume.FoodData.getName ( )
inline

Gets the name of the consumable.

Definition at line 232 of file FoodData.java.

◆ getReplacement()

int com.osroyale.content.consume.FoodData.getReplacement ( )
inline

Gets the replacement id.

Definition at line 217 of file FoodData.java.

◆ isFast()

boolean com.osroyale.content.consume.FoodData.isFast ( )
inline

Checks if this food is fast.

Definition at line 222 of file FoodData.java.


The documentation for this enum was generated from the following file: