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
|
||||
* </p>
|
||||
*/
|
||||
public class ComponentBuilder
|
||||
public final class ComponentBuilder
|
||||
{
|
||||
|
||||
private BaseComponent current;
|
||||
|
@ -7,7 +7,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@ToString
|
||||
@RequiredArgsConstructor
|
||||
final public class HoverEvent
|
||||
public final class HoverEvent
|
||||
{
|
||||
|
||||
private final Action action;
|
||||
|
@ -10,7 +10,7 @@ import net.md_5.bungee.api.ChatColor;
|
||||
@Setter
|
||||
@ToString
|
||||
@NoArgsConstructor
|
||||
public class KeybindComponent extends BaseComponent
|
||||
public final class KeybindComponent extends BaseComponent
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import java.util.regex.Pattern;
|
||||
@Getter
|
||||
@Setter
|
||||
@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*)?$" );
|
||||
|
@ -16,7 +16,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@ToString
|
||||
@NoArgsConstructor
|
||||
public class TranslatableComponent extends BaseComponent
|
||||
public final class TranslatableComponent extends BaseComponent
|
||||
{
|
||||
|
||||
private final ResourceBundle locales = ResourceBundle.getBundle( "mojang-translations/en_US" );
|
||||
|
Loading…
Reference in New Issue
Block a user