Skip to content

Commit

Permalink
Add missing EnchantmentBuilder#maxLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jan 11, 2024
1 parent 3804f35 commit 9db0abd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ class EnchantmentBuilder internal constructor(id: ResourceLocation) : RegistryEl

internal constructor(addon: Addon, name: String) : this(ResourceLocation(addon, name))

/**
* Configures the maximum level of this enchantment. Defaults to `1`.
*/
fun maxLevel(maxLevel: Int): EnchantmentBuilder {
this.maxLevel = maxLevel
return this
}

/**
* Configures the categories that this enchantment belongs to.
*/
Expand Down

0 comments on commit 9db0abd

Please sign in to comment.