Links
Tags
Creators
Details
Licensed GPL-3.0-only
Published 3 days ago
Updated 2 weeks ago
All versions
2.3.7
Release
CustomLootX 2.3.73 weeks ago 2
Compatibility
Minecraft: Java Edition
26.3
26.2
26.1.x
1.21.x
Platforms
Paper
Purpur
Changes
-
草稿與物品監聽效能優化 (GC / 磁碟 I/O)
DraftManager- 新增
activeDraftKeys(ConcurrentHashMap.newKeySet())記憶體快取集合 refreshActiveDrafts():啟動時掃描並載入所有草稿鍵值hasDraft():改為 O(1) 記憶體查詢,移除同步磁碟File.exists()呼叫saveDraft()、deleteDraft()、deleteDraftByOriginalName()、cleanExpiredDrafts():同步維護快取集合
- 新增
DraftItemListener- 新增
isPotentialDraftMaterial()材質快篩 - 於背包點擊、拖曳、丟棄、副手切換事件前增加材質判斷與
!item.hasItemMeta()檢查
- 新增
ItemManagerisCustomLootItem():加入材質快篩與!item.hasItemMeta()前置短路isDraftItem():加入材質快篩與!item.hasItemMeta()前置短路
-
生怪磚運算與視野守衛優化 (CPU / Packet)
SpawnerTemplateManagertickPreviewRotation():加入 48 格玩家視野守衛(View Guard)tickSpawnerStateGuard():加入 48 格玩家視野守衛;改用block.getState(false)tickPlayerDetection():加入冷卻前置短路;改用loc.getWorld().getNearbyPlayers(loc, detectRange)
TrialSpawnerNmsUtilsendClientPreviewItem():屏障方塊 NMS CompoundTag(barrierData)改為靜態常數重複使用- 發送封包前加入
nearbyPlayers.isEmpty()檢查
-
運行期狀態非同步持久化 (I/O)
VaultTemplateManagersaveRuntimeData(boolean sync):運行期使用runTaskAsynchronously非同步寫檔
SpawnerTemplateManagersaveRuntimeData(boolean sync):運行期使用runTaskAsynchronously非同步寫檔
CustomLootXonDisable():關閉伺服器時呼叫saveRuntimeData(true)同步存檔
-
方塊快照、座標快取、視覺排程與非同步區塊載入
VaultTemplateManager- 新增
locationCache(ConcurrentHashMap<String, Location>)座標物件快取 registerVault()/unregisterVault():同步更新與移除快取tickVaultStateGuard():加入 48 格玩家視野守衛;改用block.getState(false)
- 新增
SpawnerTemplateManager- 新增
locationCache(ConcurrentHashMap<String, Location>)座標物件快取 registerSpawner()/unregisterSpawner():同步更新與移除快取
- 新增
VaultBlockListenervisualKeeper:執行週期由 2 ticks 調整為 6 ticks;發包前加入周圍玩家非空判定
SpawnerBattleSessionvisualKeeper:執行週期由 2 ticks 調整為 6 ticks;發包前加入周圍玩家非空判定
ResetManagerexecuteReset():改用 Paperloc.getWorld().getChunkAtAsync()進行非同步區塊載入applyResetBlock():改用block.getState(false)提取方塊狀態
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:m5kKLxHh:BLMXKF4C"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:m5kKLxHh:BLMXKF4C"
}
