All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.aurelium.auraskills.api.loot.LootManager Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package dev.aurelium.auraskills.api.loot;

import dev.aurelium.auraskills.api.registry.NamespacedId;
import org.jetbrains.annotations.Nullable;

public interface LootManager {

    /**
     * Gets a loot table from a given name.
     *
     * @param id the {@link NamespacedId} of the loot table
     * @return the loot table
     */
    @Nullable
    LootTable getLootTable(NamespacedId id);

    /**
     * Registers a new loot type with a given name and parser.
     *
     * @param name the name used in the loot file as the value of the type field
     * @param parser the parser
     */
    void registerLootType(String name, LootParser parser);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy