port A LOT
This commit is contained in:
@@ -49,6 +49,7 @@ repositories {
|
||||
maven("https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/")
|
||||
maven("https://maven.blamejared.com/")
|
||||
maven("https://maven.shedaniel.me/")
|
||||
maven("https://api.modrinth.com/maven") { name = "Modrinth" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -75,6 +76,10 @@ dependencies {
|
||||
modCompileOnly("mezz.jei:jei-${commonMod.minecraft_version}-common-api:${commonMod.prop("jei_version")}")
|
||||
modCompileOnly("mezz.jei:jei-${commonMod.minecraft_version}-fabric-api:${commonMod.prop("jei_version")}")
|
||||
modLocalRuntime("mezz.jei:jei-${commonMod.minecraft_version}-fabric:${commonMod.prop("jei_version")}")
|
||||
|
||||
// Jade
|
||||
val jadeVersion = if (is120) commonMod.prop("jade_version_1_20_1") else commonMod.prop("jade_version_1_21_1")
|
||||
modImplementation("maven.modrinth:jade:$jadeVersion+fabric")
|
||||
}
|
||||
|
||||
loom {
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
package net.cmr.jurassicrevived;
|
||||
|
||||
import net.cmr.jurassicrevived.block.entity.ModBlockEntities;
|
||||
import net.cmr.jurassicrevived.block.entity.custom.*;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidStorage;
|
||||
import net.fabricmc.fabric.api.transfer.v1.item.ItemStorage;
|
||||
import net.fabricmc.fabric.api.transfer.v1.item.ItemVariant;
|
||||
import net.fabricmc.fabric.api.transfer.v1.storage.Storage;
|
||||
|
||||
public class JRMod implements ModInitializer
|
||||
{
|
||||
@@ -15,5 +21,16 @@ public class JRMod implements ModInitializer
|
||||
// Use Fabric to bootstrap the Common mod.
|
||||
Constants.LOG.info("Hello Fabric world!");
|
||||
CommonClass.init();
|
||||
|
||||
/*
|
||||
Items (Fabric Transfer API)
|
||||
ItemStorage.SIDED.registerForBlockEntities((be, side) -> (Storage<ItemVariant>) ((CrateBlockEntity)be).itemHandler, ModBlockEntities.CRATE_BE.get());
|
||||
|
||||
Energy (TeamReborn Energy API is standard for Fabric)
|
||||
EnergyStorage.SIDED.registerForBlockEntities((be, side) -> ((PowerCellBlockEntity)be).getEnergyStorage(side), ModBlockEntities.POWER_CELL_BE.get());
|
||||
|
||||
Fluids (Fabric Transfer API)
|
||||
FluidStorage.SIDED.registerForBlockEntities((be, side) -> ((TankBlockEntity)be).getTank(side), ModBlockEntities.TANK_BE.get());
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.cmr.jurassicrevived;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
|
||||
public class JRModClient implements ClientModInitializer {
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
CommonClientClass.init();
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,9 @@
|
||||
"main": [
|
||||
"net.cmr.jurassicrevived.JRMod"
|
||||
],
|
||||
"client": [
|
||||
"net.cmr.jurassicrevived.JRModClient"
|
||||
],
|
||||
"modmenu": [
|
||||
"net.cmr.jurassicrevived.client.config.JRModMenuIntegration"
|
||||
]
|
||||
@@ -41,4 +44,3 @@
|
||||
"another-mod": "*"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user