#3861: Add shadowColor to ComponentBuilder

This commit is contained in:
Janmm14
2025-07-14 11:20:08 +02:00
committed by GitHub
parent f1a4a42d51
commit aea5870ac8

View File

@@ -1,6 +1,7 @@
package net.md_5.bungee.api.chat;
import com.google.common.base.Preconditions;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
@@ -351,6 +352,19 @@ public final class ComponentBuilder
return this;
}
/**
* Sets the shadow color of the current part.
*
* @param color the new shadow color
* @return this ComponentBuilder for chaining
* @since Minecraft 1.21.4-pre1
*/
public ComponentBuilder shadowColor(Color color)
{
getCurrentComponent().setShadowColor( color );
return this;
}
/**
* Sets the font of the current part.
*