geforkt von Mirrors/Paper
Add a #getLootTable() method to LootTables enum
By: Parker Hawke <hawkeboyz2@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
3208cbdd7f
Commit
7b32fe4d18
@ -1,5 +1,6 @@
|
||||
package org.bukkit.loot;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Keyed;
|
||||
import org.bukkit.NamespacedKey;
|
||||
|
||||
@ -125,4 +126,14 @@ public enum LootTables implements Keyed {
|
||||
public NamespacedKey getKey() {
|
||||
return NamespacedKey.minecraft(location);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the {@link LootTable} corresponding to this constant. This is
|
||||
* equivalent to calling {@code Bukkit.getLootTable(this.getKey());}.
|
||||
*
|
||||
* @return the associated LootTable
|
||||
*/
|
||||
public LootTable getLootTable() {
|
||||
return Bukkit.getLootTable(getKey());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren