-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Config fields are now optional, but not lenient, and they will reappear with default values when saving * Include Pale Oak Leaves to default targets * Added config versioning used in upgrading to important config changes Previous config are considered version 0 * When upgrading, Pale Oak Leaves will be added to targets
- Loading branch information
1 parent
c16b03c
commit 5e04c1d
Showing
4 changed files
with
134 additions
and
18 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
23 changes: 23 additions & 0 deletions
23
src/client/java/io/github/startsmercury/visual_snowy_leaves/impl/client/config/Leaves.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,23 @@ | ||
package io.github.startsmercury.visual_snowy_leaves.impl.client.config; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
|
||
final class Leaves { | ||
private static ResourceLocation getLeaves(final String baseName) { | ||
return ResourceLocation.parse(baseName + "_leaves"); | ||
} | ||
|
||
// Version 0 | ||
public static final ResourceLocation OAK = getLeaves("oak"); | ||
public static final ResourceLocation SPRUCE = getLeaves("spruce"); | ||
public static final ResourceLocation BIRCH = getLeaves("birch"); | ||
public static final ResourceLocation ACACIA = getLeaves("acacia"); | ||
public static final ResourceLocation JUNGLE = getLeaves("jungle"); | ||
public static final ResourceLocation DARK_OAK = getLeaves("dark_oak"); | ||
public static final ResourceLocation MANGROVE = getLeaves("mangrove"); | ||
|
||
// Version 1 | ||
public static final ResourceLocation PALE_OAK = getLeaves("pale_oak"); | ||
|
||
private Leaves() {} | ||
} |
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