mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
SPIGOT-7809: Add ShieldMeta
This commit is contained in:
parent
3a3bea5205
commit
1fe2c75a21
1 changed files with 27 additions and 0 deletions
27
src/main/java/org/bukkit/inventory/meta/ShieldMeta.java
Normal file
27
src/main/java/org/bukkit/inventory/meta/ShieldMeta.java
Normal file
|
@ -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);
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue