Skip to content

Commit 3f2f152

Browse files
committed
Make more stuff extend Stringable
1 parent cfbd0d8 commit 3f2f152

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
import org.spongepowered.configurate.ConfigurationNode;
1212

13+
import xyz.srnyx.javautilities.parents.Stringable;
14+
1315
import xyz.srnyx.lazylibrary.settings.LazySettings;
1416

1517
import java.awt.*;
@@ -26,7 +28,7 @@
2628
* A class for building {@link MessageEmbed MessageEmbeds} quickly and nicely
2729
*/
2830
@SuppressWarnings("UnusedReturnValue")
29-
public class LazyEmbed {
31+
public class LazyEmbed extends Stringable {
3032
/**
3133
* The {@link EmbedBuilder embed builder} that is used to build the {@link MessageEmbed}
3234
*/

src/main/java/xyz/srnyx/lazylibrary/LazyFile.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.spongepowered.configurate.yaml.NodeStyle;
77
import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
88

9+
import xyz.srnyx.javautilities.parents.Stringable;
10+
911
import java.io.File;
1012
import java.io.FileOutputStream;
1113
import java.io.IOException;
@@ -16,7 +18,7 @@
1618
/**
1719
* Class for file management (loading, creating, saving, etc...)
1820
*/
19-
public class LazyFile {
21+
public class LazyFile extends Stringable {
2022
/**
2123
* The path to the file
2224
*/

src/main/java/xyz/srnyx/lazylibrary/LazyLibrary.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import org.slf4j.Logger;
1414
import org.slf4j.LoggerFactory;
1515

16+
import xyz.srnyx.javautilities.parents.Stringable;
17+
1618
import xyz.srnyx.lazylibrary.settings.ApplicationDependency;
1719
import xyz.srnyx.lazylibrary.settings.LazySettings;
1820

@@ -25,7 +27,7 @@
2527
* The main class for the bot
2628
*/
2729
@SuppressWarnings("EmptyMethod")
28-
public class LazyLibrary {
30+
public class LazyLibrary extends Stringable {
2931
/**
3032
* The {@link Logger} instance
3133
*/

src/main/java/xyz/srnyx/lazylibrary/settings/FileSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import org.spongepowered.configurate.serialize.SerializationException;
1313
import org.spongepowered.configurate.yaml.NodeStyle;
1414

15+
import xyz.srnyx.javautilities.parents.Stringable;
16+
1517
import xyz.srnyx.lazylibrary.LazyFile;
1618
import xyz.srnyx.lazylibrary.LazyLibrary;
1719

@@ -23,7 +25,7 @@
2325
/**
2426
* A class to hold the settings defined in the settings file
2527
*/
26-
public class FileSettings {
28+
public class FileSettings extends Stringable {
2729
/**
2830
* The file to load settings from
2931
*/

src/main/java/xyz/srnyx/lazylibrary/settings/LazySettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import org.jetbrains.annotations.NotNull;
99
import org.jetbrains.annotations.Nullable;
1010

11+
import xyz.srnyx.javautilities.parents.Stringable;
12+
1113
import xyz.srnyx.lazylibrary.LazyEmbed;
1214
import xyz.srnyx.lazylibrary.LazyLibrary;
1315
import xyz.srnyx.lazylibrary.ConsoleCommand;
@@ -20,7 +22,7 @@
2022
* A class to hold settings for {@link LazyLibrary}
2123
*/
2224
@SuppressWarnings("EmptyMethod")
23-
public class LazySettings {
25+
public class LazySettings extends Stringable {
2426
/**
2527
* The {@link FileSettings file settings} for the bot
2628
*/

0 commit comments

Comments
 (0)