Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Add Enchantment#isTreasure()Z
Determines if the enchantment is a treasure enchantment - only available via means other than the enchantment table.
Dieser Commit ist enthalten in:
Ursprung
251a5b6382
Commit
709783c131
@ -54,6 +54,11 @@ public class CraftEnchantment extends Enchantment {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTreasure() {
|
||||
return target.e(); // PAIL: isTreasure
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canEnchantItem(ItemStack item) {
|
||||
return target.canEnchant(CraftItemStack.asNMSCopy(item));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren