Package net.minecraftforge.event
Class LootTableLoadEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.LootTableLoadEvent
public class LootTableLoadEvent
extends net.minecraftforge.eventbus.api.Event
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.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
name
-
table
-
-
Constructor Details
-
LootTableLoadEvent
-
-
Method Details
-
getName
-
getTable
-
setTable
-