-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 1.17-pre1 (should also work on 1.17 Release)
- Loading branch information
Showing
24 changed files
with
534 additions
and
457 deletions.
There are no files selected for viewing
Empty file.
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
Binary file not shown.
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Empty file.
38 changes: 20 additions & 18 deletions
38
src/main/java/eu/midnightdust/cullleaves/CullLeavesClient.java
100644 → 100755
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,18 +1,20 @@ | ||
package eu.midnightdust.cullleaves; | ||
|
||
import eu.midnightdust.cullleaves.config.CullLeavesConfig; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class CullLeavesClient implements ClientModInitializer { | ||
|
||
public void onInitializeClient() { | ||
CullLeavesConfig.init("cullleaves", CullLeavesConfig.class); | ||
|
||
FabricLoader.getInstance().getModContainer("cullleaves").ifPresent(modContainer -> { | ||
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("cullleaves:smartleaves"), "resourcepacks/smartleaves", modContainer, true); | ||
}); | ||
} | ||
} | ||
package eu.midnightdust.cullleaves; | ||
|
||
import eu.midnightdust.cullleaves.config.CullLeavesConfig; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper; | ||
import net.fabricmc.fabric.api.resource.ResourcePackActivationType; | ||
import net.fabricmc.loader.ModContainer; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class CullLeavesClient implements ClientModInitializer { | ||
|
||
public void onInitializeClient() { | ||
CullLeavesConfig.init("cullleaves", CullLeavesConfig.class); | ||
|
||
FabricLoader.getInstance().getModContainer("cullleaves").ifPresent(modContainer -> { | ||
ResourceManagerHelper.registerBuiltinResourcePack(new Identifier("cullleaves:smartleaves"), modContainer, ResourcePackActivationType.DEFAULT_ENABLED); | ||
}); | ||
} | ||
} |
15 changes: 8 additions & 7 deletions
15
src/main/java/eu/midnightdust/cullleaves/config/CullLeavesConfig.java
100644 → 100755
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,7 +1,8 @@ | ||
package eu.midnightdust.cullleaves.config; | ||
|
||
public class CullLeavesConfig extends MidnightConfig { | ||
|
||
@Entry // Enable/Disable the mod. Requires Chunk Reload (F3 + A). | ||
public static boolean enabled = true; | ||
} | ||
package eu.midnightdust.cullleaves.config; | ||
|
||
import eu.midnightdust.lib.config.MidnightConfig; | ||
|
||
public class CullLeavesConfig extends MidnightConfig { | ||
@Entry // Enable/Disable the mod. Requires Chunk Reload (F3 + A). | ||
public static boolean enabled = true; | ||
} |
Oops, something went wrong.