geforkt von Mirrors/Paper
Added Enchantment.values() for retrieving all enchantments
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
2aca23d84a
Commit
159c512a9f
@ -226,4 +226,13 @@ public abstract class Enchantment {
|
||||
public static Enchantment getByName(String name) {
|
||||
return byName.get(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an array of all the registered {@link Enchantment}s
|
||||
*
|
||||
* @return Array of enchantments
|
||||
*/
|
||||
public static Enchantment[] values() {
|
||||
return byId.values().toArray(new Enchantment[byId.size()]);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren