Class ConfigLootTable

java.lang.Object
com.ryandw11.structure.loottables.LootTable
com.ryandw11.structure.loottables.ConfigLootTable

public class ConfigLootTable extends LootTable
Represents a LootTable file.
  • Field Details

    • lootTablesFC

      public org.bukkit.configuration.file.FileConfiguration lootTablesFC
  • Constructor Details

    • ConfigLootTable

      public ConfigLootTable(String name)
      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

      public String getName()
      Get the name of the loot table.
      Specified by:
      getName in class LootTable
      Returns:
      The name of the loot table.
    • getRolls

      public int getRolls()
      Get the number of items chosen.
      Specified by:
      getRolls in class LootTable
      Returns:
      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.

      Specified by:
      setRolls in class LootTable
      Parameters:
      rolls - The number of rolls for the loot tables.