Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion src/main/java/invtweaks/config/InvTweaksConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ public class InvTweaksConfig {
builder.pop();
}

{
private static final ForgeConfigSpec.BooleanValue ENABLE_QUICKVIEW;
// 1. NEUE VARIABLE HINZUFÜGEN:
private static final ForgeConfigSpec.BooleanValue ALIGN_RIGHT;

{
builder.comment("Tweaks").push("tweaks");

ENABLE_AUTOREFILL = builder.comment("Enable auto-refill").define("autoRefill", true);
Expand All @@ -185,6 +189,14 @@ public class InvTweaksConfig {
.comment(
"Enable a quick view of how many items that you're currently holding exists in your inventory by displaying it next your hotbar.")
.define("quickView", true);

// 2. NEUE OPTION HIER EINFÜGEN:
ALIGN_RIGHT =
builder
.comment(
"If quickView is enabled, true will show it on the right side of the hotbar, false on the left side.")
.define("alignRight", true);

ENABLE_SORT =
builder
.comment(
Expand All @@ -208,6 +220,16 @@ public class InvTweaksConfig {
CLIENT_CONFIG = builder.build();
}

public static boolean isQuickViewEnabled() {
return ENABLE_QUICKVIEW.get();
}

// 3. NEUE GETTER-METHODE HIER HINZUFÜGEN:
public static boolean isAlignRightEnabled() {
return ALIGN_RIGHT.get();
}


@SuppressWarnings("unchecked")
public static PacketUpdateConfig getSyncPacket() {
return new PacketUpdateConfig(
Expand Down