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.
-
-
Field Summary
Fields Modifier and Type Field Description private LootTableManager
lootTableManager
private ResourceLocation
name
private LootTable
table
-
Constructor Summary
Constructors Constructor Description LootTableLoadEvent(ResourceLocation name, LootTable table, LootTableManager lootTableManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootTableManager
getLootTableManager()
ResourceLocation
getName()
LootTable
getTable()
void
setTable(LootTable table)
-
-
-
Field Detail
-
name
private final ResourceLocation name
-
table
private LootTable table
-
lootTableManager
private LootTableManager lootTableManager
-
-
Constructor Detail
-
LootTableLoadEvent
public LootTableLoadEvent(ResourceLocation name, LootTable table, LootTableManager lootTableManager)
-
-
Method Detail
-
getName
public ResourceLocation getName()
-
getTable
public LootTable getTable()
-
getLootTableManager
public LootTableManager getLootTableManager()
-
setTable
public void setTable(LootTable table)
-
-