-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/io/github/maxencedc/sparsestructures/CustomSpreadFactors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.github.maxencedc.sparsestructures; | ||
|
||
public class CustomSpreadFactors { | ||
public String structure; | ||
public double factor; | ||
|
||
public CustomSpreadFactors(String structure, double factor) { | ||
this.structure = structure; | ||
this.factor = factor; | ||
} | ||
|
||
public String structure() { | ||
return this.structure; | ||
} | ||
|
||
public double factor() { | ||
return this.factor; | ||
} | ||
} |
14 changes: 10 additions & 4 deletions
14
src/main/java/io/github/maxencedc/sparsestructures/SparseStructuresConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
package io.github.maxencedc.sparsestructures; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record SparseStructuresConfig(double spreadFactor, List<customSpreadFactors> customSpreadFactors) { | ||
public record customSpreadFactors(String structure, double factor) {} | ||
public class SparseStructuresConfig { | ||
public double spreadFactor; | ||
public double spreadFactor() { return this.spreadFactor; } | ||
public List<CustomSpreadFactors> customSpreadFactors; | ||
public List<CustomSpreadFactors> customSpreadFactors() { return this.customSpreadFactors; } | ||
public SparseStructuresConfig(double spreadFactor, List<CustomSpreadFactors> customSpreadFactors) | ||
{ | ||
this.spreadFactor = spreadFactor; | ||
this.customSpreadFactors = customSpreadFactors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,6 @@ | |
}, | ||
|
||
"depends": { | ||
"minecraft": "1.20.x" | ||
"minecraft": ["1.19.x", "1.20.x"] | ||
} | ||
} |