-
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.
- Loading branch information
Showing
23 changed files
with
294 additions
and
43 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
33 changes: 33 additions & 0 deletions
33
forge/src/main/java/gripe/_90/megacells/integration/arseng/ArsEngIntegration.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,33 @@ | ||
package gripe._90.megacells.integration.arseng; | ||
|
||
import java.util.Collection; | ||
import java.util.stream.Stream; | ||
|
||
import net.minecraftforge.fml.loading.FMLEnvironment; | ||
|
||
import appeng.api.client.StorageCellModels; | ||
import appeng.api.upgrades.Upgrades; | ||
import appeng.core.definitions.AEItems; | ||
import appeng.core.localization.GuiText; | ||
|
||
import gripe._90.megacells.MEGACells; | ||
|
||
public class ArsEngIntegration { | ||
public static void init() { | ||
if (FMLEnvironment.dist.isClient()) { | ||
Stream.of(ArsEngItems.getCells(), ArsEngItems.getPortables()) | ||
.flatMap(Collection::stream) | ||
.forEach(c -> | ||
StorageCellModels.registerModel(c, MEGACells.makeId("block/drive/cells/mega_source_cell"))); | ||
} | ||
} | ||
|
||
public static void initUpgrades() { | ||
ArsEngItems.getCells() | ||
.forEach(cell -> Upgrades.add(AEItems.VOID_CARD, cell, 1, GuiText.StorageCells.getTranslationKey())); | ||
ArsEngItems.getPortables().forEach(cell -> { | ||
Upgrades.add(AEItems.ENERGY_CARD, cell, 2, GuiText.PortableCells.getTranslationKey()); | ||
Upgrades.add(AEItems.VOID_CARD, cell, 1, GuiText.PortableCells.getTranslationKey()); | ||
}); | ||
} | ||
} |
Oops, something went wrong.