PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\item\enchantment\EnchantingHelper Class Reference
+ Collaboration diagram for pocketmine\item\enchantment\EnchantingHelper:

Static Public Member Functions

static enchantItem (Item $item, array $enchantments)
 
static generateOptions (Position $tablePos, Item $input, int $seed)
 
static generateSeed ()
 

Detailed Description

Helper methods used for enchanting using the enchanting table.

Definition at line 48 of file EnchantingHelper.php.

Member Function Documentation

◆ enchantItem()

static pocketmine\item\enchantment\EnchantingHelper::enchantItem ( Item $item,
array $enchantments )
static
Parameters
EnchantmentInstance[]$enchantments

Definition at line 65 of file EnchantingHelper.php.

Referenced by pocketmine\command\defaults\EnchantCommand\execute().

+ Here is the caller graph for this function:

◆ generateOptions()

static pocketmine\item\enchantment\EnchantingHelper::generateOptions ( Position $tablePos,
Item $input,
int $seed )
static
Returns
EnchantingOption[]

Definition at line 78 of file EnchantingHelper.php.

◆ generateSeed()

static pocketmine\item\enchantment\EnchantingHelper::generateSeed ( )
static

Generates a new random seed for enchant option randomization.

Definition at line 58 of file EnchantingHelper.php.


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