aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/repo/ExpensiveItemCacheApi.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/repo/ExpensiveItemCacheApi.kt')
-rw-r--r--src/main/kotlin/repo/ExpensiveItemCacheApi.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/kotlin/repo/ExpensiveItemCacheApi.kt b/src/main/kotlin/repo/ExpensiveItemCacheApi.kt
new file mode 100644
index 0000000..eef95a6
--- /dev/null
+++ b/src/main/kotlin/repo/ExpensiveItemCacheApi.kt
@@ -0,0 +1,8 @@
+package moe.nea.firmament.repo
+
+/**
+ * Marker for functions that could potentially invoke DFU. Please do not call on a lot of objects at once, or try to make sure the item is cached and fall back to a more gentle function call using [SBItemStack.isWarm] and similar functions.
+ */
+@RequiresOptIn
+@Retention(AnnotationRetention.BINARY)
+annotation class ExpensiveItemCacheApi