We do a little import optimising

This commit is contained in:
Will FP 2023-12-09 15:59:18 +00:00
parent 2e27183a83
commit 67c6356f23
17 changed files with 2 additions and 19 deletions

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_17_R1
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_17_R1.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_17_R1.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_18_R1
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_18_R1.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_18_R1.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_18_R2
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_18_R2.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_18_R2.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_19_R1
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_19_R1.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_19_R1.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_19_R2
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_19_R2.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_19_R2.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_19_R3
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_19_R3.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_19_R3.enchantments.CraftEnchantment

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.proxy.v1_20_R1
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_20_R1.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_20_R1.enchantments.CraftEnchantment

View File

@ -2,9 +2,7 @@ package com.willfp.ecoenchants.proxy.v1_20_R2
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.VanillaEnchantmentData import com.willfp.ecoenchants.enchant.VanillaEnchantmentData
import com.willfp.ecoenchants.enchant.registration.legacy.LegacyDelegatedEnchantment
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import org.bukkit.NamespacedKey
import org.bukkit.craftbukkit.v1_20_R2.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_20_R2.enchantments.CraftEnchantment
class EcoCraftEnchantment( class EcoCraftEnchantment(

View File

@ -1,6 +1,5 @@
package com.willfp.ecoenchants.proxy.v1_20_R3 package com.willfp.ecoenchants.proxy.v1_20_R3
import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.EcoEnchants import com.willfp.ecoenchants.enchant.EcoEnchants
import com.willfp.ecoenchants.enchant.impl.EcoEnchantBase import com.willfp.ecoenchants.enchant.impl.EcoEnchantBase
import com.willfp.ecoenchants.enchant.registration.modern.ModernEnchantmentRegistererProxy import com.willfp.ecoenchants.enchant.registration.modern.ModernEnchantmentRegistererProxy

View File

@ -11,7 +11,6 @@ import net.minecraft.world.inventory.AnvilMenu
import net.minecraft.world.item.ItemStack import net.minecraft.world.item.ItemStack
import net.minecraft.world.item.enchantment.Enchantment import net.minecraft.world.item.enchantment.Enchantment
import net.minecraft.world.item.enchantment.EnchantmentCategory import net.minecraft.world.item.enchantment.EnchantmentCategory
import net.minecraft.world.item.enchantment.EnchantmentHelper
import org.bukkit.craftbukkit.v1_20_R3.enchantments.CraftEnchantment import org.bukkit.craftbukkit.v1_20_R3.enchantments.CraftEnchantment
import org.bukkit.craftbukkit.v1_20_R3.inventory.CraftItemStack import org.bukkit.craftbukkit.v1_20_R3.inventory.CraftItemStack
import java.util.Objects import java.util.Objects

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.commands
import com.willfp.eco.core.EcoPlugin import com.willfp.eco.core.EcoPlugin
import com.willfp.eco.core.Prerequisite import com.willfp.eco.core.Prerequisite
import com.willfp.eco.core.command.impl.Subcommand import com.willfp.eco.core.command.impl.Subcommand
import com.willfp.eco.util.StringUtils
import org.bukkit.command.CommandSender import org.bukkit.command.CommandSender
class CommandReload(plugin: EcoPlugin) : Subcommand(plugin, "reload", "ecoenchants.command.reload", false) { class CommandReload(plugin: EcoPlugin) : Subcommand(plugin, "reload", "ecoenchants.command.reload", false) {

View File

@ -6,7 +6,6 @@ import com.willfp.eco.core.placeholder.context.placeholderContext
import com.willfp.eco.util.NumberUtils import com.willfp.eco.util.NumberUtils
import com.willfp.eco.util.StringUtils import com.willfp.eco.util.StringUtils
import com.willfp.eco.util.formatEco import com.willfp.eco.util.formatEco
import com.willfp.ecoenchants.EcoEnchantsPlugin
import com.willfp.ecoenchants.enchant.EcoEnchantLike import com.willfp.ecoenchants.enchant.EcoEnchantLike
import org.bukkit.entity.Player import org.bukkit.entity.Player

View File

@ -5,8 +5,6 @@ import com.willfp.eco.util.containsIgnoreCase
import com.willfp.ecoenchants.EcoEnchantsPlugin import com.willfp.ecoenchants.EcoEnchantsPlugin
import com.willfp.ecoenchants.enchant.EcoEnchantLevel import com.willfp.ecoenchants.enchant.EcoEnchantLevel
import com.willfp.ecoenchants.enchant.MissingDependencyException import com.willfp.ecoenchants.enchant.MissingDependencyException
import com.willfp.libreforge.BlankHolder.conditions
import com.willfp.libreforge.BlankHolder.effects
import com.willfp.libreforge.SilentViolationContext import com.willfp.libreforge.SilentViolationContext
import com.willfp.libreforge.effects.EffectList import com.willfp.libreforge.effects.EffectList
import com.willfp.libreforge.effects.Effects import com.willfp.libreforge.effects.Effects

View File

@ -9,8 +9,8 @@ import com.willfp.eco.core.drops.DropQueue
import com.willfp.eco.core.fast.fast import com.willfp.eco.core.fast.fast
import com.willfp.eco.core.items.Items import com.willfp.eco.core.items.Items
import com.willfp.ecoenchants.EcoEnchantsPlugin import com.willfp.ecoenchants.EcoEnchantsPlugin
import com.willfp.ecoenchants.enchant.impl.HardcodedEcoEnchant
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.impl.HardcodedEcoEnchant
import com.willfp.ecoenchants.target.EnchantLookup.getActiveEnchantLevelInSlot import com.willfp.ecoenchants.target.EnchantLookup.getActiveEnchantLevelInSlot
import com.willfp.ecoenchants.target.EnchantLookup.hasEnchantActive import com.willfp.ecoenchants.target.EnchantLookup.hasEnchantActive
import org.bukkit.entity.Player import org.bukkit.entity.Player

View File

@ -3,7 +3,6 @@ package com.willfp.ecoenchants.target
import com.github.benmanes.caffeine.cache.Caffeine import com.github.benmanes.caffeine.cache.Caffeine
import com.willfp.eco.core.fast.fast import com.willfp.eco.core.fast.fast
import com.willfp.eco.core.items.HashedItem import com.willfp.eco.core.items.HashedItem
import com.willfp.ecoenchants.EcoEnchantsPlugin
import com.willfp.ecoenchants.enchant.EcoEnchant import com.willfp.ecoenchants.enchant.EcoEnchant
import com.willfp.ecoenchants.enchant.EcoEnchantLevel import com.willfp.ecoenchants.enchant.EcoEnchantLevel
import com.willfp.ecoenchants.enchant.FoundEcoEnchantLevel import com.willfp.ecoenchants.enchant.FoundEcoEnchantLevel

View File

@ -5,7 +5,6 @@ import com.willfp.eco.core.items.Items
import com.willfp.eco.core.items.TestableItem import com.willfp.eco.core.items.TestableItem
import com.willfp.eco.core.recipe.parts.EmptyTestableItem import com.willfp.eco.core.recipe.parts.EmptyTestableItem
import com.willfp.eco.core.registry.Registrable import com.willfp.eco.core.registry.Registrable
import com.willfp.ecoenchants.EcoEnchantsPlugin
import com.willfp.ecoenchants.plugin import com.willfp.ecoenchants.plugin
import com.willfp.libreforge.slot.SlotType import com.willfp.libreforge.slot.SlotType
import com.willfp.libreforge.slot.SlotTypes import com.willfp.libreforge.slot.SlotTypes

View File

@ -6,7 +6,7 @@ import com.willfp.eco.core.registry.Registrable
import com.willfp.ecoenchants.libreforge.TriggerEnchantType import com.willfp.ecoenchants.libreforge.TriggerEnchantType
import com.willfp.ecoenchants.mechanics.infiniteIfNegative import com.willfp.ecoenchants.mechanics.infiniteIfNegative
import com.willfp.libreforge.triggers.Triggers import com.willfp.libreforge.triggers.Triggers
import java.util.* import java.util.Objects
class EnchantmentType( class EnchantmentType(
private val plugin: EcoPlugin, private val plugin: EcoPlugin,