aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/repo/ExpensiveItemCacheApi.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-06-22 16:09:43 +0200
committerLinnea Gräf <nea@nea.moe>2025-06-22 16:09:43 +0200
commitcbc8eff63ac1fd6caebbd93348877124896f2d80 (patch)
tree258e36dfdedc16fe8b36fa6e04fc286360d6009e /src/main/kotlin/repo/ExpensiveItemCacheApi.kt
parent7c45e48050e8ee792f391fc660232950a36c494b (diff)
downloadFirmament-cbc8eff63ac1fd6caebbd93348877124896f2d80.tar.gz
Firmament-cbc8eff63ac1fd6caebbd93348877124896f2d80.tar.bz2
Firmament-cbc8eff63ac1fd6caebbd93348877124896f2d80.zip
feat: Allow breaking itemstacks even further for faster repo reloads
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