-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies { | ||
modImpl(deps.luggage) | ||
modImpl(deps.fabricApi) | ||
} |
16 changes: 16 additions & 0 deletions
16
module-compat/luggage/src/main/java/lol/bai/megane/module/luggage/MeganeLuggage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...pat/luggage/src/main/java/lol/bai/megane/module/luggage/provider/LuggageItemProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters