Make bungeecord-chat API classes final - the API does not (nor should) support subclassing.
This commit is contained in:
parent
9fd98436af
commit
dda0638869
@ -23,7 +23,7 @@ import java.util.List;
|
|||||||
* part's formatting
|
* part's formatting
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public class ComponentBuilder
|
public final class ComponentBuilder
|
||||||
{
|
{
|
||||||
|
|
||||||
private BaseComponent current;
|
private BaseComponent current;
|
||||||
|
@ -7,7 +7,7 @@ import lombok.ToString;
|
|||||||
@Getter
|
@Getter
|
||||||
@ToString
|
@ToString
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
final public class HoverEvent
|
public final class HoverEvent
|
||||||
{
|
{
|
||||||
|
|
||||||
private final Action action;
|
private final Action action;
|
||||||
|
@ -10,7 +10,7 @@ import net.md_5.bungee.api.ChatColor;
|
|||||||
@Setter
|
@Setter
|
||||||
@ToString
|
@ToString
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class KeybindComponent extends BaseComponent
|
public final class KeybindComponent extends BaseComponent
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ import java.util.regex.Pattern;
|
|||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class TextComponent extends BaseComponent
|
public final class TextComponent extends BaseComponent
|
||||||
{
|
{
|
||||||
|
|
||||||
private static final Pattern url = Pattern.compile( "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$" );
|
private static final Pattern url = Pattern.compile( "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$" );
|
||||||
|
@ -16,7 +16,7 @@ import lombok.ToString;
|
|||||||
@Setter
|
@Setter
|
||||||
@ToString
|
@ToString
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class TranslatableComponent extends BaseComponent
|
public final class TranslatableComponent extends BaseComponent
|
||||||
{
|
{
|
||||||
|
|
||||||
private final ResourceBundle locales = ResourceBundle.getBundle( "mojang-translations/en_US" );
|
private final ResourceBundle locales = ResourceBundle.getBundle( "mojang-translations/en_US" );
|
||||||
|
Loading…
Reference in New Issue
Block a user