Skip to content

Commit

Permalink
luggage
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Jul 17, 2022
1 parent e5e0a38 commit 5e5cf6e
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ object deps {
val owo = "io.wispforest:owo-lib:0.7.3+1.19"
val create = "com.simibubi:Create:mc1.18.2_v0.4.1+628"
val modernDynamics = "curse.maven:modern-dynamics-552758:3875277"
val luggage = "curse.maven:luggage-594709:3870828"

object lba {
val core = "alexiil.mc.lib:libblockattributes-core:0.10.2"
Expand Down
4 changes: 4 additions & 0 deletions module-compat/luggage/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
modImpl(deps.luggage)
modImpl(deps.fabricApi)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package lol.bai.megane.module.luggage;

import com.gizmo.luggage.entity.LuggageEntity;
import lol.bai.megane.api.MeganeModule;
import lol.bai.megane.api.registry.CommonRegistrar;
import lol.bai.megane.module.luggage.provider.LuggageItemProvider;

@SuppressWarnings("unused")
public class MeganeLuggage implements MeganeModule {

@Override
public void registerCommon(CommonRegistrar registrar) {
registrar.addItem(LuggageEntity.class, new LuggageItemProvider());
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package lol.bai.megane.module.luggage.provider;

import com.gizmo.luggage.entity.LuggageEntity;
import lol.bai.megane.api.provider.base.InventoryItemProvider;
import net.minecraft.inventory.Inventory;
import org.jetbrains.annotations.Nullable;

public class LuggageItemProvider extends InventoryItemProvider<LuggageEntity> {

@Override
protected @Nullable Inventory getInventory() {
return getObject().getInventory();
}

}
20 changes: 20 additions & 0 deletions module-compat/luggage/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schemaVersion": 1,
"id" : "megane-luggage",
"version" : "${version}",
"authors" : ["deirn"],
"license" : "MIT",
"icon" : "assets/megane/icon.png",
"depends" : {
"megane-api": "*",
"luggage" : "*"
},
"custom" : {
"megane:modules": [
"lol.bai.megane.module.luggage.MeganeLuggage"
],
"modmenu" : {
"parent": "megane"
}
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ compat("fabric-transfer")
//compat("industrial-revolution")
compat("kibe")
//compat("lib-block-attributes")
compat("luggage")
compat("modern-dynamics")
compat("reborn-core")
compat("reborn-energy")
Expand Down

0 comments on commit 5e5cf6e

Please sign in to comment.