Rename EnchantHelper related stuff

Perhaps this and EnchantOption should be called EnchantingHelper and EnchantingOption respectively. The terminology used is rather inconsistent, but 'enchantment' definitely isn't the right word here.
This commit is contained in:
Dylan K. Taylor
2023-08-23 16:07:02 +01:00
parent d942748203
commit bf668c0f6c
5 changed files with 14 additions and 11 deletions

View File

@@ -42,7 +42,10 @@ use function mt_rand;
use function ord;
use function round;
final class EnchantmentHelper{
/**
* Helper methods used for enchanting using the enchanting table.
*/
final class EnchantHelper{
private const MAX_BOOKSHELF_COUNT = 15;
private function __construct(){
@@ -72,7 +75,7 @@ final class EnchantmentHelper{
/**
* @return EnchantOption[]
*/
public static function getEnchantOptions(Position $tablePos, Item $input, int $seed) : array{
public static function generateOptions(Position $tablePos, Item $input, int $seed) : array{
if($input->isNull() || $input->hasEnchantments()){
return [];
}