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
Event fired when a LootTable json is loaded from json.
This event is fired whenever resources are loaded, or when the server starts.
This event will NOT be fired for LootTables loaded from the world folder, these are
considered configurations files and should not be modified by mods.
Canceling the event will make it load a empty loot table.
-
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
Modifier and TypeFieldDescriptionprivate LootTables
private final ResourceLocation
private LootTable
-
Constructor Summary
ConstructorDescriptionLootTableLoadEvent
(ResourceLocation name, LootTable table, LootTables lootTableManager) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
name
-
table
-
lootTableManager
-
-
Constructor Details
-
LootTableLoadEvent
-
-
Method Details
-
getName
-
getTable
-
getLootTableManager
-
setTable
-