mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
probably finished sub setting gui
This commit is contained in:
parent
277cf5bedb
commit
a239a063ae
3 changed files with 194 additions and 58 deletions
|
|
@ -13,9 +13,7 @@ class EnchantConflictGroup(
|
|||
fun addEnchantment(enchant: Enchantment){
|
||||
enchantments.add(enchant)
|
||||
}
|
||||
fun removeEnchantment(enchant: Enchantment){
|
||||
enchantments.remove(enchant)
|
||||
}
|
||||
|
||||
fun allowed(enchants: Set<Enchantment>, mat: Material) : Boolean{
|
||||
if(enchantments.size < minBeforeBlock){
|
||||
return true
|
||||
|
|
@ -45,4 +43,9 @@ class EnchantConflictGroup(
|
|||
return enchantments
|
||||
}
|
||||
|
||||
fun setEnchants(enchants: Set<Enchantment>) {
|
||||
enchantments.clear()
|
||||
enchantments.addAll(enchants)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue