Package net.neoforged.neoforge.event
Class LootTableLoadEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.LootTableLoadEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class LootTableLoadEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Fired when a
LootTable
is loaded from JSON.
Loot tables loaded from world save datapacks will not fire this event as they are considered user configuration files.
This event is fired whenever server resources are loaded or reloaded.
This event is cancellable, and does not have a result. If the event is cancelled, the loot table will be made empty.
This event is fired on the main Forge event bus, only on the logical server.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
name
-
table
-
-
Constructor Details
-
LootTableLoadEvent
-
-
Method Details
-
getName
-
getTable
-
setTable
-