Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Jun 24, 2024
1 parent d5cef5b commit 7b40af2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ dependencies {
// Generator (Optional)
implementation "net.infumia:pack-generator:VERSION"
// Required, https://mvnrepository.com/artifact/team.unnamed/team.unnamed:creative-serializer-minecraft/
implementation "team.unnamed:team.unnamed:creative-serializer-minecraft:1.7.2"
// Required, https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind/
implementation "com.fasterxml.jackson.core:jackson-databind:"
// Required, https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/
Expand Down
1 change: 1 addition & 0 deletions generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ dependencies {

compileOnly(libs.adventure.api)
compileOnly(libs.creative.api)
compileOnly(libs.creative.serializer)
compileOnly(libs.jackson.databind)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public final class PackReaderSettings {
private final ComponentSerializer<?, ?, String> serializer;

/**
* Constructs a new PackReaderSettings.
* Ctor.
*
* @param root the root path.
* @param visitOptions the visit options. Can be null.
Expand Down Expand Up @@ -48,7 +48,7 @@ public PackReaderSettings(
}

/**
* Constructs a new PackReaderSettings.
* Ctor.
*
* @param root the root path.
* @param packReferenceFileName the pack reference file name. Cannot be null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class PackReference {
private final boolean addSpaces;

/**
* Constructs a new PackReference.
* Ctor.
*
* @param format the pack format. Can be null
* @param minimumFormat the minimum pack format. Can be null
Expand Down
13 changes: 13 additions & 0 deletions generator/src/main/java/net/infumia/pack/PackWriterSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,27 @@
import team.unnamed.creative.serialize.ResourcePackWriter;
import team.unnamed.creative.serialize.minecraft.fs.FileTreeWriter;

/**
* Settings for writing a resource pack.
*/
public final class PackWriterSettings {

private final ResourcePackWriter<FileTreeWriter> writer;

/**
* Ctor.
*
* @param writer the resource pack writer. Cannot be null.
*/
public PackWriterSettings(final ResourcePackWriter<FileTreeWriter> writer) {
this.writer = writer;
}

/**
* Returns the resource pack writer.
*
* @return the resource pack writer.
*/
public ResourcePackWriter<FileTreeWriter> writer() {
return this.writer;
}
Expand Down
6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[versions]
creative = "1.7.2"

[libraries]
adventure-api = { module = "net.kyori:adventure-api", version = "4.17.0" }
creative-api = { module = "team.unnamed:creative-api", version = "1.7.2" }
creative-api = { module = "team.unnamed:creative-api", version.ref = "creative" }
creative-serializer = { module = "team.unnamed:creative-serializer-minecraft", version.ref = "creative" }

jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version = "2.17.1" }
nexus-plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.29.0" }
Expand Down

0 comments on commit 7b40af2

Please sign in to comment.