You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-59Lines changed: 59 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -21,27 +21,28 @@ Elytrium Java Serializer is uploaded to the Maven Central repository, so you can
21
21
22
22
- Maven (pom.xml):
23
23
```xml
24
-
<dependencies>
25
-
<dependency>
26
-
<groupId>net.elytrium</groupId>
27
-
<artifactId>serializer</artifactId>
28
-
<version>1.0.0</version>
29
-
</dependency>
30
-
</dependencies>
24
+
<dependencies>
25
+
<dependency>
26
+
<groupId>net.elytrium</groupId>
27
+
<artifactId>serializer</artifactId>
28
+
<version>1.0.0</version>
29
+
</dependency>
30
+
</dependencies>
31
31
```
32
32
- Gradle (build.gradle):
33
33
```groovy
34
-
dependencies {
35
-
implementation("net.elytrium:serializer:1.0.0")
36
-
}
34
+
dependencies {
35
+
implementation("net.elytrium:serializer:1.0.0")
36
+
}
37
37
```
38
38
39
39
### Without any modifications
40
40
41
41
1) Create the class
42
42
```java
43
-
publicstaticclassSettings {
44
-
publicString regularField ="regular value";
43
+
publicclassSettings {
44
+
45
+
publicString regularField ="regular value";
45
46
}
46
47
```
47
48
2) CreateYamlWriter
@@ -59,16 +60,17 @@ Elytrium Java Serializer is uploaded to the Maven Central repository, so you can
59
60
60
61
### With some modifications
61
62
62
-
1) Create the class that extends YamlSerializable. You can optionally modify the config and call ``YamlSerializable#setConfig(SerializerConfig)`` method. You can safely remove ``this.setConfig(CONFIG)``.
63
+
1) Create the class that extends YamlSerializable. You can optionally modify the config and call ``YamlSerializable#setConfig(SerializerConfig)`` method. You can safely remove ``this.setConfig(Settings.CONFIG)``.
0 commit comments