diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-06-20 23:25:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 23:25:00 +0200 |
commit | 1a32e5e1a6e338e87043d39d04b9a6b817544469 (patch) | |
tree | 9920cf33407378435b1aac5b34074be617fdc3b5 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 9b1894c738a16ec6ce2d59a29f7b85a9b9df9381 (diff) | |
download | skyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.tar.gz skyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.tar.bz2 skyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.zip |
Feature: Craftable Item List (#1334)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: Thunderblade73 <gaidermarkus@gmail.com>
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 262b768a4..bb2d3fd3e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -215,8 +215,9 @@ object NEUItems { fallbackItem } - fun isVanillaItem(item: ItemStack): Boolean = - manager.auctionManager.isVanillaItem(item.getInternalName().asString()) + fun isVanillaItem(item: ItemStack): Boolean = item.getInternalName().isVanillaItem() + + fun NEUInternalName.isVanillaItem(): Boolean = manager.auctionManager.isVanillaItem(this.asString()) const val itemFontSize = 2.0 / 3.0 |