liplum / MultiCrafterLib

A Mindustry mod library provides a multiple-recipe crafter to produce items, fluids, power or even heat for Json and JavaScript mods.
https://liplum.github.io/MultiCrafterLib/
GNU General Public License v3.0
47 stars 10 forks source link

Some heat update to the lib #21

Closed JojoFR1 closed 1 year ago

JojoFR1 commented 1 year ago

Added heat as an option in the constructor of IOEntry.

Exemple:

 new Recipe( // Input
    new IOEntry(
        Seq.with(ItemStack.with(Items.copper, 3)), //Items
        Seq.with(), //Liquids
        0f, //Power
        80f // Heat
    ), // Output
    new IOEntry(
        Seq.with(),
        Seq.with(LiquidStack.with(Liquids.water, 1))
    ), 300f // Craft Time
),

Updated to the latest Mindustry version (v145) for the dependencies. Made maxEfficiency default to 1. Updated heat icon (previously Terrain) to their official one (Waves)... maybe missing a notice on how much heat is required?


useJUnitPlatform {
    excludeTags("slow")
}

Was removed to fix some error while building with latest JDK 20, Gradle 8.1.1 (required for JDK 20) and Kotlin 1.9.0-Beta (required for JDK 20), I can remove it if you want.

liplum commented 1 year ago

LGTM