SPIGOT-1936: LootTable API
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
parent
15d9fd30b9
commit
f50aec2a42
14 changed files with 421 additions and 8 deletions
|
@ -33,6 +33,7 @@ import org.bukkit.inventory.InventoryHolder;
|
|||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.Merchant;
|
||||
import org.bukkit.inventory.Recipe;
|
||||
import org.bukkit.loot.LootTable;
|
||||
import org.bukkit.map.MapView;
|
||||
import org.bukkit.permissions.Permissible;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
|
@ -1036,6 +1037,14 @@ public interface Server extends PluginMessageRecipient {
|
|||
*/
|
||||
<T extends Keyed> Tag<T> getTag(String registry, NamespacedKey tag, Class<T> clazz);
|
||||
|
||||
/**
|
||||
* Gets the specified {@link LootTable}.
|
||||
*
|
||||
* @param key the name of the LootTable
|
||||
* @return the LootTable, or null if no LootTable is found with that name
|
||||
*/
|
||||
LootTable getLootTable(NamespacedKey key);
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue