Class ConfigLootTable
java.lang.Object
com.ryandw11.structure.loottables.LootTable
com.ryandw11.structure.loottables.ConfigLootTable
Represents a LootTable file.
-
Field Summary
Fields inherited from class com.ryandw11.structure.loottables.LootTable
randomCollection, types
-
Constructor Summary
-
Method Summary
Methods inherited from class com.ryandw11.structure.loottables.LootTable
addLootItem, addType, fillBrewerInventory, fillContainerInventory, fillFurnaceInventory, getItems, getRandomWeightedItem, getTypes, setTypes
-
Field Details
-
lootTablesFC
public org.bukkit.configuration.file.FileConfiguration lootTablesFC
-
-
Constructor Details
-
ConfigLootTable
Create a loot table with a certain name.This will try to load the loot table file with the specified name.
- Parameters:
name
- The name.
-
-
Method Details
-
getName
Get the name of the loot table. -
getRolls
public int getRolls()Get the number of items chosen. -
setRolls
public void setRolls(int rolls)Description copied from class:LootTable
Set the number of rolls for the loot table.An implementation of this method is not strictly necessary.
-