Make bungeecord-chat API classes final - the API does not (nor should) support subclassing.

This commit is contained in:
md_5 2017-12-26 15:30:48 +11:00
parent 9fd98436af
commit dda0638869
5 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ import java.util.List;
* part's formatting
* </p>
*/
public class ComponentBuilder
public final class ComponentBuilder
{
private BaseComponent current;

View File

@ -7,7 +7,7 @@ import lombok.ToString;
@Getter
@ToString
@RequiredArgsConstructor
final public class HoverEvent
public final class HoverEvent
{
private final Action action;

View File

@ -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
{
/**

View File

@ -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*)?$" );

View File

@ -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" );