diff options
author | Linnea Gräf <nea@nea.moe> | 2025-06-22 16:09:43 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-06-22 16:09:43 +0200 |
commit | cbc8eff63ac1fd6caebbd93348877124896f2d80 (patch) | |
tree | 258e36dfdedc16fe8b36fa6e04fc286360d6009e /src/main/kotlin/repo/ExpensiveItemCacheApi.kt | |
parent | 7c45e48050e8ee792f391fc660232950a36c494b (diff) | |
download | Firmament-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.kt | 8 |
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 |