🛠️ 개발자 환경 설정 및 통합 빌드 가이드
📌 저장소 소스 면책 조항: 본 위키의 문서는 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
./gradlewwrapper). - 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)
- Fabric Loader:
2. Workspace Setup & Repository Cloning
bash
git clone https://github.com/Rifaditya/Instant-Gratification-stew-stacker-addon.git
cd Instant-Gratification-stew-stacker-addon3. Compilation & Build Tasks
bash
./gradlew build --no-daemon4. 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 project5. 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
}
);