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.
Can be used to modify the loot table, cancel loading it, or outright replace it.
This event is currently fired for all loot tables coming from vanilla, mods, and user datapacks.
This event is fired whenever server resources are loaded or reloaded.
This event is cancellable, and does not
.
If the event is cancelled, the loot table will be made empty.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-