diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorph.java b/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorph.java new file mode 100644 index 0000000000..98d634988d --- /dev/null +++ b/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorph.java @@ -0,0 +1,393 @@ +/* + * Copyright (c) 2019, ganom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package net.runelite.client.plugins.tmorph; + +import com.google.inject.Provides; +import javax.inject.Inject; +import net.runelite.api.Client; +import net.runelite.api.GameState; +import net.runelite.api.InventoryID; +import net.runelite.api.Player; +import net.runelite.api.events.GameStateChanged; +import net.runelite.api.events.ItemContainerChanged; +import net.runelite.api.kit.KitType; +import net.runelite.client.config.ConfigManager; +import net.runelite.client.eventbus.Subscribe; +import net.runelite.client.plugins.Plugin; +import net.runelite.client.plugins.PluginDescriptor; +import net.runelite.client.plugins.PluginType; +import org.apache.commons.lang3.ObjectUtils; + +@PluginDescriptor( + name = "TMorph", + description = "Want to wear a infernal cape? well now you can!", + tags = {"transform", "model", "item", "morph"}, + type = PluginType.UTILITY +) + +public class TMorph extends Plugin +{ + @Inject + private Client client; + + @Inject + private TMorphConfig config; + + @Provides + TMorphConfig provideConfig(ConfigManager configManager) + { + return configManager.getConfig(TMorphConfig.class); + } + + @Subscribe + public void onItemContainerChanged(final ItemContainerChanged event) + { + if (event.getItemContainer() != client.getItemContainer(InventoryID.EQUIPMENT)) + { + return; + } + + updateEquip(); + } + + @Subscribe + public void onGameStateChanged(GameStateChanged event) + { + if (event.getGameState() != GameState.LOGGED_IN) + { + return; + } + updateEquip(); + } + + private void updateEquip() + { + Player player = client.getLocalPlayer(); + + final int mainhandID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.WEAPON), 0); + final int offhandID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.SHIELD), 0); + final int helmetID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.HELMET), 0); + final int capeID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.CAPE), 0); + final int neckID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.AMULET), 0); + final int bodyID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.TORSO), 0); + final int legsID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.LEGS), 0); + final int bootsID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.BOOTS), 0); + final int glovesID = ObjectUtils.defaultIfNull(player.getPlayerComposition(). + getEquipmentId(KitType.HANDS), 0); + + //Mage Swap + + if (config.mageSwap()) + { + if (config.MainhandMage() > 0) + { + if (config.targetMainhandMage() > 0) + { + if (mainhandID == config.targetMainhandMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.WEAPON.getIndex()] = config.MainhandMage() + 512; + } + } + } + if (config.OffhandMage() > 0) + { + if (config.targetOffhandMage() > 0) + { + if (offhandID == config.targetOffhandMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.SHIELD.getIndex()] = config.OffhandMage() + 512; + } + } + } + if (config.HelmetMage() > 0) + { + if (config.targetHelmetMage() > 0) + { + if (helmetID == config.targetHelmetMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HELMET.getIndex()] = config.HelmetMage() + 512; + } + } + } + if (config.CapeMage() > 0) + { + if (config.targetCapeMage() > 0) + { + if (capeID == config.targetCapeMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.CAPE.getIndex()] = config.CapeMage() + 512; + } + } + } + if (config.NeckMage() > 0) + { + if (config.targetNeckMage() > 0) + { + if (neckID == config.targetNeckMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.AMULET.getIndex()] = config.NeckMage() + 512; + } + } + } + if (config.BodyMage() > 0) + { + if (config.targetBodyMage() > 0) + { + if (bodyID == config.targetBodyMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.TORSO.getIndex()] = config.BodyMage() + 512; + } + } + } + if (config.LegsMage() > 0) + { + if (config.targetLegsMage() > 0) + { + if (legsID == config.targetLegsMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.LEGS.getIndex()] = config.LegsMage() + 512; + } + } + } + if (config.BootsMage() > 0) + { + if (config.targetBootsMage() > 0) + { + if (bootsID == config.targetBootsMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.BOOTS.getIndex()] = config.BootsMage() + 512; + } + } + } + if (config.GlovesMage() > 0) + { + if (config.targetGlovesMage() > 0) + { + if (glovesID == config.targetGlovesMage()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HANDS.getIndex()] = config.GlovesMage() + 512; + } + } + } + } + + //Range Swap + + if (config.rangeSwap()) + { + if (config.MainhandRange() > 0) + { + if (config.targetMainhandRange() > 0) + { + if (mainhandID == config.targetMainhandRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.WEAPON.getIndex()] = config.MainhandRange() + 512; + } + } + } + if (config.OffhandRange() > 0) + { + if (config.targetOffhandRange() > 0) + { + if (offhandID == config.targetOffhandRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.SHIELD.getIndex()] = config.OffhandRange() + 512; + } + } + } + if (config.HelmetRange() > 0) + { + if (config.targetHelmetRange() > 0) + { + if (helmetID == config.targetHelmetRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HELMET.getIndex()] = config.HelmetRange() + 512; + } + } + } + if (config.CapeRange() > 0) + { + if (config.targetCapeRange() > 0) + { + if (capeID == config.targetCapeRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.CAPE.getIndex()] = config.CapeRange() + 512; + } + } + } + if (config.NeckRange() > 0) + { + if (config.targetNeckRange() > 0) + { + if (neckID == config.targetNeckRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.AMULET.getIndex()] = config.NeckRange() + 512; + } + } + } + if (config.BodyRange() > 0) + { + if (config.targetBodyRange() > 0) + { + if (bodyID == config.targetBodyRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.TORSO.getIndex()] = config.BodyRange() + 512; + } + } + } + if (config.LegsRange() > 0) + { + if (config.targetLegsRange() > 0) + { + if (legsID == config.targetLegsRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.LEGS.getIndex()] = config.LegsRange() + 512; + } + } + } + if (config.BootsRange() > 0) + { + if (config.targetBootsRange() > 0) + { + if (bootsID == config.targetBootsRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.BOOTS.getIndex()] = config.BootsRange() + 512; + } + } + } + if (config.GlovesRange() > 0) + { + if (config.targetGlovesRange() > 0) + { + if (glovesID == config.targetGlovesRange()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HANDS.getIndex()] = config.GlovesRange() + 512; + } + } + } + } + if (config.meleeSwap()) + { + if (config.MainhandMelee() > 0) + { + if (config.targetMainhandMelee() > 0) + { + if (mainhandID == config.targetMainhandMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.WEAPON.getIndex()] = config.MainhandMelee() + 512; + } + } + } + if (config.OffhandMelee() > 0) + { + if (config.targetOffhandMelee() > 0) + { + if (offhandID == config.targetOffhandMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.SHIELD.getIndex()] = config.OffhandMelee() + 512; + } + } + } + if (config.HelmetMelee() > 0) + { + if (config.targetHelmetMelee() > 0) + { + if (helmetID == config.targetHelmetMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HELMET.getIndex()] = config.HelmetMelee() + 512; + } + } + } + if (config.CapeMelee() > 0) + { + if (config.targetCapeMelee() > 0) + { + if (capeID == config.targetCapeMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.CAPE.getIndex()] = config.CapeMelee() + 512; + } + } + } + if (config.NeckMelee() > 0) + { + if (config.targetNeckMelee() > 0) + { + if (neckID == config.targetNeckMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.AMULET.getIndex()] = config.NeckMelee() + 512; + } + } + } + if (config.BodyMelee() > 0) + { + if (config.targetBodyMelee() > 0) + { + if (bodyID == config.targetBodyMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.TORSO.getIndex()] = config.BodyMelee() + 512; + } + } + } + if (config.LegsMelee() > 0) + { + if (config.targetLegsMelee() > 0) + { + if (legsID == config.targetLegsMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.LEGS.getIndex()] = config.LegsMelee() + 512; + } + } + } + if (config.BootsMelee() > 0) + { + if (config.targetBootsMelee() > 0) + { + if (bootsID == config.targetBootsMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.BOOTS.getIndex()] = config.BootsMelee() + 512; + } + } + } + if (config.GlovesMelee() > 0) + { + if (config.targetGlovesMelee() > 0) + { + if (glovesID == config.targetGlovesMelee()) + { + player.getPlayerComposition().getEquipmentIds()[KitType.HANDS.getIndex()] = config.GlovesMelee() + 512; + } + } + } + } + player.getPlayerComposition().setHash(); + } +} diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorphConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorphConfig.java new file mode 100644 index 0000000000..11210905f2 --- /dev/null +++ b/runelite-client/src/main/java/net/runelite/client/plugins/tmorph/TMorphConfig.java @@ -0,0 +1,788 @@ +/* + * Copyright (c) 2019, ganom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package net.runelite.client.plugins.tmorph; + +import net.runelite.client.config.Config; +import net.runelite.client.config.ConfigGroup; +import net.runelite.client.config.ConfigItem; +import net.runelite.client.config.Stub; + +@ConfigGroup("TMorph") +public interface TMorphConfig extends Config +{ + @ConfigItem( + keyName = "swaps", + name = "Morphers", + description = "", + position = 0 + ) + default Stub swaps() + { + return new Stub(); + } + + @ConfigItem( + keyName = "mageSwap", + name = "Swap Mage Set", + description = "this will swap your mage set with the set you've chosen.", + parent = "swaps", + position = 1 + ) + default boolean mageSwap() + { + return true; + } + + @ConfigItem( + keyName = "rangeSwap", + name = "Swap Range Set", + description = "this will swap your Range set with the set you've chosen.", + parent = "swaps", + position = 2 + ) + default boolean rangeSwap() + { + return true; + } + + @ConfigItem( + keyName = "meleeSwap", + name = "Swap Melee Set", + description = "this will swap your Melee set with the set you've chosen.", + parent = "swaps", + position = 3 + ) + default boolean meleeSwap() + { + return true; + } + + //////////////////Mage + + @ConfigItem( + keyName = "MainhandMage", + name = "Mainhand", + description = "ID", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int MainhandMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetMainhandMage", + name = "Target Mainhand", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetMainhandMage() + { + return 0; + } + + @ConfigItem( + keyName = "OffhandMage", + name = "Offhand", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int OffhandMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetOffhandMage", + name = "Target Offhand", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetOffhandMage() + { + return 0; + } + + @ConfigItem( + keyName = "HelmetMage", + name = "Helmet", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int HelmetMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetHelmetMage", + name = "Target Helmet", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetHelmetMage() + { + return 0; + } + + @ConfigItem( + keyName = "CapeMage", + name = "Cape", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int CapeMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetCapeMage", + name = "Target Cape", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetCapeMage() + { + return 0; + } + + @ConfigItem( + keyName = "NeckMage", + name = "Neck", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int NeckMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetNeckMage", + name = "Target Neck", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetNeckMage() + { + return 0; + } + + @ConfigItem( + keyName = "BodyMage", + name = "Body", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int BodyMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBodyMage", + name = "Target Body", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetBodyMage() + { + return 0; + } + + @ConfigItem( + keyName = "LegsMage", + name = "Legs", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int LegsMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetLegsMage", + name = "Target Legs", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetLegsMage() + { + return 0; + } + + @ConfigItem( + keyName = "BootsMage", + name = "Boots", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int BootsMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBootsMage", + name = "Target Boots", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetBootsMage() + { + return 0; + } + + @ConfigItem( + keyName = "GlovesMage", + name = "Gloves", + description = "Item you want to swap to", + group = "Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int GlovesMage() + { + return 0; + } + + @ConfigItem( + keyName = "TargetGlovesMage", + name = "Target Gloves", + description = "If you're wearing this, then it will swap.", + group = "Target Mage Swap", + hidden = true, + unhide = "mageSwap" + ) + default int targetGlovesMage() + { + return 0; + } + + ///////////////////Range + + @ConfigItem( + keyName = "MainhandRange", + name = "Mainhand", + description = "ID", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int MainhandRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetMainhandRange", + name = "Target Mainhand", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetMainhandRange() + { + return 0; + } + + @ConfigItem( + keyName = "OffhandRange", + name = "Offhand", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int OffhandRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetOffhandRange", + name = "Target Offhand", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetOffhandRange() + { + return 0; + } + + @ConfigItem( + keyName = "HelmetRange", + name = "Helmet", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int HelmetRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetHelmetRange", + name = "Target Helmet", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetHelmetRange() + { + return 0; + } + + @ConfigItem( + keyName = "CapeRange", + name = "Cape", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int CapeRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetCapeRange", + name = "Target Cape", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetCapeRange() + { + return 0; + } + + @ConfigItem( + keyName = "NeckRange", + name = "Neck", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int NeckRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetNeckRange", + name = "Target Neck", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetNeckRange() + { + return 0; + } + + @ConfigItem( + keyName = "BodyRange", + name = "Body", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int BodyRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBodyRange", + name = "Target Body", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetBodyRange() + { + return 0; + } + + @ConfigItem( + keyName = "LegsRange", + name = "Legs", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int LegsRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetLegsRange", + name = "Target Legs", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetLegsRange() + { + return 0; + } + + @ConfigItem( + keyName = "BootsRange", + name = "Boots", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int BootsRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBootsRange", + name = "Target Boots", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetBootsRange() + { + return 0; + } + + @ConfigItem( + keyName = "GlovesRange", + name = "Gloves", + description = "Item you want to swap to", + group = "Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int GlovesRange() + { + return 0; + } + + @ConfigItem( + keyName = "TargetGlovesRange", + name = "Target Gloves", + description = "If you're wearing this, then it will swap.", + group = "Target Range Swap", + hidden = true, + unhide = "rangeSwap" + ) + default int targetGlovesRange() + { + return 0; + } + + ////////////////////MELEE + + @ConfigItem( + keyName = "MainhandMelee", + name = "Mainhand", + description = "ID", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int MainhandMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetMainhandMelee", + name = "Target Mainhand", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetMainhandMelee() + { + return 0; + } + + @ConfigItem( + keyName = "OffhandMelee", + name = "Offhand", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int OffhandMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetOffhandMelee", + name = "Target Offhand", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetOffhandMelee() + { + return 0; + } + + @ConfigItem( + keyName = "HelmetMelee", + name = "Helmet", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int HelmetMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetHelmetMelee", + name = "Target Helmet", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetHelmetMelee() + { + return 0; + } + + @ConfigItem( + keyName = "CapeMelee", + name = "Cape", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int CapeMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetCapeMelee", + name = "Target Cape", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetCapeMelee() + { + return 0; + } + + @ConfigItem( + keyName = "NeckMelee", + name = "Neck", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int NeckMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetNeckMelee", + name = "Target Neck", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetNeckMelee() + { + return 0; + } + + @ConfigItem( + keyName = "BodyMelee", + name = "Body", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int BodyMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBodyMelee", + name = "Target Body", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetBodyMelee() + { + return 0; + } + + @ConfigItem( + keyName = "LegsMelee", + name = "Legs", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int LegsMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetLegsMelee", + name = "Target Legs", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetLegsMelee() + { + return 0; + } + + @ConfigItem( + keyName = "BootsMelee", + name = "Boots", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int BootsMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetBootsMelee", + name = "Target Boots", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetBootsMelee() + { + return 0; + } + + @ConfigItem( + keyName = "GlovesMelee", + name = "Gloves", + description = "Item you want to swap to", + group = "Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int GlovesMelee() + { + return 0; + } + + @ConfigItem( + keyName = "TargetGlovesMelee", + name = "Target Gloves", + description = "If you're wearing this, then it will swap.", + group = "Target Melee Swap", + hidden = true, + unhide = "meleeSwap" + ) + default int targetGlovesMelee() + { + return 0; + } +}