Skip to content

Commit

Permalink
update to 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Nov 15, 2023
1 parent 4c043f3 commit ea2544b
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 32 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import net.fabricmc.loom.task.RemapJarTask

group = project.maven_group
version = "${project.mod_version}+${getMCVersionString()}"
base.archivesName = project.archives_base_name
base.archivesName = "${project.archives_base_name}-lexforge"

// This field defines the Java version your mod target.
def targetJavaVersion = 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import dev.lambdaurora.spruceui.Position;
import dev.lambdaurora.spruceui.SpruceTexts;
import dev.lambdaurora.spruceui.option.*;
import dev.lambdaurora.spruceui.test.gui.SpruceMainMenuScreen;
import dev.lambdaurora.spruceui.widget.SpruceButtonWidget;
import dev.lambdaurora.spruceui.widget.container.SpruceContainerWidget;
import dev.lambdaurora.spruceui.widget.container.SpruceOptionListWidget;
Expand All @@ -20,7 +21,10 @@
import net.minecraft.client.toast.SystemToast;
import net.minecraft.text.Text;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.ConfigScreenHandler;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.common.Mod;
import org.jetbrains.annotations.Nullable;

import java.util.Arrays;
Expand All @@ -31,7 +35,9 @@
*
* @author LambdAurora
*/
@Mod(SpruceUITest.MODID)
public class SpruceUITest {
public static final String MODID = "spruceuitest";
private static SpruceUITest INSTANCE;

private final SpruceOption booleanOption;
Expand Down Expand Up @@ -135,6 +141,7 @@ public SpruceUITest() {

public void onInitializeClient() {
INSTANCE = this;
ModList.get().getModContainerById(MODID).orElseThrow(RuntimeException::new).registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () -> new ConfigScreenHandler.ConfigScreenFactory((client, screen) -> new SpruceMainMenuScreen(screen)));
}

public SpruceOptionListWidget buildOptionList(Position position, int width, int height) {
Expand Down
29 changes: 29 additions & 0 deletions src/testmod/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
modLoader="javafml"
loaderVersion="[46,)"
license="MIT"

[[mods]]
modId="spruceuitest"
version="${version}"
displayName="ObsidianUI-Test"
displayURL="https://github.com/ThinkingStudios/SpruceUI-Forged"
logoFile= "icon.png"
credits="LambdAurora"
authors="TexTrue, TexTrueStudio"
description='''
'''

[[dependencies.spruceuitest]]
modId = "forge"
mandatory = true
versionRange = "[46,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.spruceuitest]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20.2,)"
ordering = "NONE"
side = "BOTH"
31 changes: 0 additions & 31 deletions src/testmod/resources/fabric.mod.json

This file was deleted.

Binary file added src/testmod/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/testmod/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"description": "SpruceUI resources",
"pack_format": 10
}
}

0 comments on commit ea2544b

Please sign in to comment.