Skip to content
On this page

NeoForge

LootTableEvent

top.katton.api.eventneoforge/src/main/kotlin/top/katton/api/event/LootTableEvent.kt
Loot table events for NeoForge platform.

LootTableEvent

NeoForgeObject
kotlin
object LootTableEvent

Loot table events for NeoForge platform.

LootTableEvent.onLootTableReplace

NeoForgeProperty
kotlin
@JvmField
@JvmField val onLootTableReplace

Event triggered to replace a loot table entirely.

Returns

The replacement LootTable, or null to keep the original. Note: This is a placeholder for NeoForge compatibility.

LootTableEvent.onLootTableModify

NeoForgeProperty
kotlin
@JvmField
@JvmField val onLootTableModify

Event triggered to modify a loot table's contents. Use this to add or remove loot pool entries. Note: This is a placeholder for NeoForge compatibility.

LootTableEvent.onLootTableAllLoad

NeoForgeProperty
kotlin
@JvmField
@JvmField val onLootTableAllLoad

Event triggered when all loot tables have been loaded. Use this for post-processing after all tables are available. Note: This is a placeholder for NeoForge compatibility.

LootTableEvent.onLootTableModifyDrops

NeoForgeProperty
kotlin
@JvmField
@JvmField val onLootTableModifyDrops

Event triggered to modify the drops from a loot table. Use this to customize what items are actually dropped. Note: This is a placeholder for NeoForge compatibility.