mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
#2867: Add font setter to ComponentBuilder
This commit is contained in:
parent
3409fe6dd3
commit
c803f42a84
@ -324,6 +324,18 @@ public final class ComponentBuilder
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the font of the current part.
|
||||
*
|
||||
* @param font the new font
|
||||
* @return this ComponentBuilder for chaining
|
||||
*/
|
||||
public ComponentBuilder font(String font)
|
||||
{
|
||||
getCurrentComponent().setFont( font );
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether the current part is bold.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user