-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin AppMek integration (MEGA Chemical Cells)
This WILL look like shit for the time being.
- Loading branch information
Showing
38 changed files
with
442 additions
and
60 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
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
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
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
68 changes: 68 additions & 0 deletions
68
src/main/java/ninety/megacells/integration/appmek/ChemicalCellType.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,68 @@ | ||
package ninety.megacells.integration.appmek; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.ItemTags; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.inventory.MenuType; | ||
import net.minecraft.world.item.Item; | ||
|
||
import me.ramidzkh.mekae2.AMMenus; | ||
import me.ramidzkh.mekae2.ae2.MekanismKeyType; | ||
import ninety.megacells.item.util.IMEGACellType; | ||
|
||
import appeng.api.stacks.AEKeyType; | ||
import appeng.menu.me.common.MEStorageMenu; | ||
|
||
public enum ChemicalCellType implements IMEGACellType { | ||
TYPE; | ||
|
||
@Override | ||
public AEKeyType keyType() { | ||
return MekanismKeyType.TYPE; | ||
} | ||
|
||
@Override | ||
public String affix() { | ||
return "chemical"; | ||
} | ||
|
||
@Override | ||
public Item housing() { | ||
return MEGAMekItems.MEGA_CHEMICAL_CELL_HOUSING; | ||
} | ||
|
||
@Override | ||
public TagKey<Item> housingMaterial() { | ||
return ItemTags.create(new ResourceLocation("forge", "ingots/osmium")); | ||
} | ||
|
||
@Override | ||
public MenuType<MEStorageMenu> portableCellMenu() { | ||
return AMMenus.PORTABLE_CHEMICAL_CELL_TYPE; | ||
} | ||
|
||
@Override | ||
public List<Item> getCells() { | ||
var cells = new ArrayList<Item>(); | ||
cells.add(MEGAMekItems.CHEMICAL_STORAGE_CELL_1M); | ||
cells.add(MEGAMekItems.CHEMICAL_STORAGE_CELL_4M); | ||
cells.add(MEGAMekItems.CHEMICAL_STORAGE_CELL_16M); | ||
cells.add(MEGAMekItems.CHEMICAL_STORAGE_CELL_64M); | ||
cells.add(MEGAMekItems.CHEMICAL_STORAGE_CELL_256M); | ||
return cells; | ||
} | ||
|
||
@Override | ||
public List<Item> getPortableCells() { | ||
var cells = new ArrayList<Item>(); | ||
cells.add(MEGAMekItems.PORTABLE_CHEMICAL_CELL_1M); | ||
cells.add(MEGAMekItems.PORTABLE_CHEMICAL_CELL_4M); | ||
cells.add(MEGAMekItems.PORTABLE_CHEMICAL_CELL_16M); | ||
cells.add(MEGAMekItems.PORTABLE_CHEMICAL_CELL_64M); | ||
cells.add(MEGAMekItems.PORTABLE_CHEMICAL_CELL_256M); | ||
return cells; | ||
} | ||
} |
Oops, something went wrong.