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.