🛠️ Guía de Configuración de Desarrollador y Compilación
📌 Descargo de responsabilidad de la fuente del repositorio: La documentación de esta Wiki refleja el estado actual del código fuente en el repositorio, que puede incluir confirmaciones recientes no publicadas o características en desarrollo antes de las compilaciones públicas en CurseForge y 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
}
);