Skip to content

Commit

Permalink
Remove deprecated UI component classes.
Browse files Browse the repository at this point in the history
Deleted obsolete and unused UI component classes, including `TextUIComponent`, `VanillaUIComponent`, `StackLayout`, and others, to streamline the codebase. These classes were no longer necessary as part of a planned refactor or redesign.
  • Loading branch information
ThePandaOliver committed Dec 22, 2024
1 parent 2b8c19d commit 775bdf2
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 974 deletions.
21 changes: 0 additions & 21 deletions common-testmod/src/main/java/me/pandamods/test/TestMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@

package me.pandamods.test;

import com.mojang.blaze3d.platform.InputConstants;
import dev.architectury.event.EventResult;
import dev.architectury.event.events.client.ClientScreenInputEvent;
import dev.architectury.registry.client.keymappings.KeyMappingRegistry;
import me.pandamods.pandalib.config.PandaLibConfig;
import me.pandamods.pandalib.config.holders.ClientConfigHolder;
import me.pandamods.pandalib.config.holders.CommonConfigHolder;
import me.pandamods.test.client.screen.TestScreen;
import me.pandamods.test.config.ClientTestConfig;
import me.pandamods.test.config.CommonTestConfig;
import net.minecraft.client.KeyMapping;
import net.minecraft.resources.ResourceLocation;

public class TestMod {
Expand All @@ -32,23 +26,8 @@ public class TestMod {
private static final CommonConfigHolder<CommonTestConfig> COMMON_TEST_CONFIG = PandaLibConfig.registerCommon(CommonTestConfig.class);
private static final ClientConfigHolder<ClientTestConfig> CLIENT_TEST_CONFIG = PandaLibConfig.registerClient(ClientTestConfig.class);

public static final KeyMapping TEST_SCREEN_KEYMAPPING = new KeyMapping(
"key.testmod.test_screen",
InputConstants.Type.KEYSYM,
InputConstants.KEY_M,
"key.categories.testmod"
);

public TestMod() {
instance = this;

KeyMappingRegistry.register(TEST_SCREEN_KEYMAPPING);
ClientScreenInputEvent.KEY_PRESSED_POST.register((minecraft, screen, i, i1, i2) -> {
if (TEST_SCREEN_KEYMAPPING.matches(i, i1)) {
minecraft.setScreen(new TestScreen());
}
return EventResult.pass();
});
}

public static ResourceLocation resourceLocation(String path) {
Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions common/src/main/java/me/pandamods/pandalib/PandaLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import me.pandamods.pandalib.platform.Services;
import net.minecraft.resources.ResourceLocation;

import java.awt.*;

public class PandaLib {
public static final String MOD_ID = "pandalib";
private static PandaLib instance;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 775bdf2

Please sign in to comment.