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 LootTableManager
private final ResourceLocation
private LootTable
-
Constructor Summary
ConstructorDescriptionLootTableLoadEvent
(ResourceLocation name, LootTable table, LootTableManager lootTableManager) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
name
-
table
-
lootTableManager
-
-
Constructor Details
-
LootTableLoadEvent
public LootTableLoadEvent(ResourceLocation name, LootTable table, LootTableManager lootTableManager)
-
-
Method Details
-
getName
-
getTable
-
getLootTableManager
-
setTable
-