From fa9505e5798adb69ddd20655ff0c52a60de0b11d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot <noreply+git-bukkit@papermc.io> Date: Sat, 20 Jul 2024 10:15:18 +1000 Subject: [PATCH] SPIGOT-7809: Add ShieldMeta By: Doc <nachito94@msn.com> --- .../org/bukkit/inventory/meta/ShieldMeta.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/inventory/meta/ShieldMeta.java diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/ShieldMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/ShieldMeta.java new file mode 100644 index 0000000000..7fcd2cdc2e --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/ShieldMeta.java @@ -0,0 +1,27 @@ +package org.bukkit.inventory.meta; + +import org.bukkit.DyeColor; +import org.jetbrains.annotations.Nullable; + +public interface ShieldMeta extends BannerMeta { + + /** + * Gets the base color for this shield. + * + * @return the base color or null + */ + @Nullable + DyeColor getBaseColor(); + + /** + * Sets the base color for this shield. + * <br> + * <b>Note:</b> If the shield contains a + * {@link org.bukkit.block.banner.Pattern}, then a null base color will + * retain the pattern but default the base color to {@link DyeColor#WHITE}. + * + * @param color the base color or null + */ + void setBaseColor(@Nullable DyeColor color); + +}