Skip to content

🛠️ 開發者環境配置與構建指南

📌 程式碼倉庫來源免責聲明:本維基文件反映了程式碼倉庫中的當前原始碼狀態,可能包含領先於 CurseForge 與 Modrinth 平臺公開發布版本的最新未發布提交或開發中功能。

1. Developer Environment Prerequisites

  • Java Development Kit (JDK): OpenJDK 25 (e.g., Eclipse Adoptium Temurin 25 with Hotspot).
  • Build System: Gradle 9.3+ (managed via project ./gradlew wrapper).
  • Fabric Tooling: Fabric Loom with Parchment mappings.
  • Core Dependencies:
    • Fabric Loader: >=0.19.1 (26.2) / >=0.19.3 (26.3)
    • Fabric API: 0.150.1+26.2 (26.2) / 0.156.1+26.3 (26.3)
    • DasikLibrary: >=1.8.3 (26.2) / >=1.8.36 (26.3)
    • Stack Size Adjuster: >=1.4.10+26.2 (26.2) / >=1.4.18 (26.3)

2. Workspace Setup & Repository Cloning

bash
git clone https://github.com/Rifaditya/Instant-Gratification-stew-stacker-addon.git
cd Instant-Gratification-stew-stacker-addon

3. Compilation & Build Tasks

bash
./gradlew build --no-daemon

4. Multi-Version Project Topology

Instant Gratification Collection/Stew Stacker Addon/
├── Archive Jar of all versions/             # Consolidated binary release repository
├── Doc/                                     # Documentation, descriptions, and assets
├── Wiki/                                    # Master GitHub Wiki documentation suite
├── stew-stacker-addon/                      # Minecraft 26.2 anchor root project
└── Stew Stacker Addon v26.3/
    └── stew-stacker-addon/                  # Minecraft 26.3 anchor root project

5. Addon Hook Integration Example

java
net.instantgratification.stacksizeadjuster.util.StackSizeManager.registerOverride(
    (item, originalSize) -> {
        if (item == net.minecraft.world.item.Items.SUSPICIOUS_STEW) {
            return 8; // Custom override
        }
        return -1; // Fallback to default
    }
);

6. 全域性與外部導航

Official documentation & web portal for Dasik Igaijinn mods.