mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
25 lines
1 KiB
Diff
25 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: SoSeDiK <mrsosedik@gmail.com>
|
|
Date: Wed, 1 May 2024 10:58:50 +0300
|
|
Subject: [PATCH] Expose #hasColor to leather armor
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/meta/LeatherArmorMeta.java b/src/main/java/org/bukkit/inventory/meta/LeatherArmorMeta.java
|
|
index 4eadbcf766e69459c036a28f6e43523170558308..c933fae0fb87f3a58e8f549e8870fba436288fa8 100644
|
|
--- a/src/main/java/org/bukkit/inventory/meta/LeatherArmorMeta.java
|
|
+++ b/src/main/java/org/bukkit/inventory/meta/LeatherArmorMeta.java
|
|
@@ -33,4 +33,14 @@ public interface LeatherArmorMeta extends ItemMeta {
|
|
@Override
|
|
@NotNull
|
|
LeatherArmorMeta clone();
|
|
+
|
|
+ // Paper start - Expose #hasColor to leather armor
|
|
+ /**
|
|
+ * Checks whether this leather armor is dyed
|
|
+ * (i.e. has a color different from {@link ItemFactory#getDefaultLeatherColor()})
|
|
+ *
|
|
+ * @return whether this leather armor is dyed
|
|
+ */
|
|
+ boolean isDyed();
|
|
+ // Paper end - Expose #hasColor to leather armor
|
|
}
|