RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.ItemCreation Class Reference

Handles creating items with the use item packet listener. More...

Classes

enum  CreationData
 Holds the creation data. More...

Static Public Member Functions

static Item onDeath (Item item)
 Handles creation items on death.

Detailed Description

Handles creating items with the use item packet listener.

Author
Daniel

Definition at line 14 of file ItemCreation.java.

Member Function Documentation

◆ onDeath()

Item com.runehive.content.ItemCreation.onDeath ( Item item)
static

Handles creation items on death.

Definition at line 143 of file ItemCreation.java.

143 {
144 Optional<CreationData> data = CreationData.forItem(item);
145 return data.isPresent() && data.get().dropped != null ? data.get().dropped : item;
146 }

References com.runehive.content.ItemCreation.CreationData.forItem().

Here is the call graph for this function:

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