aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
index f51b625e6..9b93e5293 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
@@ -8,6 +8,7 @@ import at.hannibal2.skyhanni.events.RepositoryReloadEvent
import at.hannibal2.skyhanni.features.bazaar.BazaarApi
import at.hannibal2.skyhanni.features.garden.composter.ComposterOverlay
import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorFeatures
+import at.hannibal2.skyhanni.features.rift.everywhere.RiftAPI
import at.hannibal2.skyhanni.features.rift.everywhere.RiftAPI.motesNpcPrice
import at.hannibal2.skyhanni.utils.*
import at.hannibal2.skyhanni.utils.InventoryUtils.getInventoryName
@@ -16,6 +17,8 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.isEnchanted
import at.hannibal2.skyhanni.utils.ItemUtils.isVanilla
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRiftExportable
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRiftTransferable
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import com.google.gson.JsonObject
import net.minecraft.client.Minecraft
@@ -172,15 +175,34 @@ class HideNotClickableItems {
hideYourEquipment(chestName, stack) -> true
hideComposter(chestName, stack) -> true
hideRiftMotesGrubber(chestName, stack) -> true
+ hideRiftTransferChest(chestName, stack) -> true
else -> {
false
}
}
}
- private fun hideRiftMotesGrubber(chestName: String, stack: ItemStack): Boolean {
-// if (!RiftAPI.inRift()) return false
+ private fun hideRiftTransferChest(chestName: String, stack: ItemStack): Boolean {
+ if (chestName != "Rift Transfer Chest") return false
+
+ reverseColor = true
+ val riftTransferable = stack.isRiftTransferable() ?: return true
+ if (riftTransferable) {
+ return false
+ }
+ if (RiftAPI.inRift()) {
+ val riftExportable = stack.isRiftExportable() ?: return true
+ if (riftExportable) {
+ return false
+ }
+ }
+
+ hideReason = "Not Rift-Transferable!"
+ return true
+ }
+ private fun hideRiftMotesGrubber(chestName: String, stack: ItemStack): Boolean {
+ if (!RiftAPI.inRift()) return false
if (chestName != "Motes Grubber") return false
reverseColor = true