-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #573 from SquidDev/generic-peripherals
Generic peripherals
- Loading branch information
Showing
23 changed files
with
176 additions
and
270 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
11 changes: 4 additions & 7 deletions
11
src/main/java/de/srendi/advancedperipherals/common/addons/botania/Integration.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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package de.srendi.advancedperipherals.common.addons.botania; | ||
|
||
import de.srendi.advancedperipherals.common.addons.computercraft.integrations.IntegrationPeripheralProvider; | ||
import vazkii.botania.api.block_entity.GeneratingFlowerBlockEntity; | ||
import vazkii.botania.common.block.block_entity.mana.ManaPoolBlockEntity; | ||
import vazkii.botania.common.block.block_entity.mana.ManaSpreaderBlockEntity; | ||
import dan200.computercraft.api.ComputerCraftAPI; | ||
|
||
public class Integration implements Runnable { | ||
|
||
@Override | ||
public void run() { | ||
IntegrationPeripheralProvider.registerBlockEntityIntegration(ManaFlowerIntegration::new, GeneratingFlowerBlockEntity.class); | ||
IntegrationPeripheralProvider.registerBlockEntityIntegration(ManaPoolIntegration::new, ManaPoolBlockEntity.class); | ||
IntegrationPeripheralProvider.registerBlockEntityIntegration(SpreaderIntegration::new, ManaSpreaderBlockEntity.class); | ||
ComputerCraftAPI.registerGenericSource(new ManaFlowerIntegration()); | ||
ComputerCraftAPI.registerGenericSource(new ManaPoolIntegration()); | ||
ComputerCraftAPI.registerGenericSource(new SpreaderIntegration()); | ||
} | ||
} |
25 changes: 9 additions & 16 deletions
25
src/main/java/de/srendi/advancedperipherals/common/addons/botania/ManaFlowerIntegration.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
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
19 changes: 6 additions & 13 deletions
19
...rendi/advancedperipherals/common/addons/computercraft/integrations/BeaconIntegration.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
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
Oops, something went wrong.