-
Notifications
You must be signed in to change notification settings - Fork 16
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
58 changed files
with
532 additions
and
479 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
6 changes: 6 additions & 0 deletions
6
src/generated/resources/.cache/5a761efb7472ef97566e41e81451930a004134bf
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,6 @@ | ||
// 1.19.2 2022-11-11T00:13:45.944151499 Turtle Upgrades | ||
55be9fa941681e064a87483071884ee739a00abd data/plethora/computercraft/turtle_upgrades/introspection.json | ||
92a0397f656d942065072f3cd1ab62ce42cd4a12 data/plethora/computercraft/turtle_upgrades/laser.json | ||
72fda019483640f8826703853cc8f9ec658d64ad data/plethora/computercraft/turtle_upgrades/sensor.json | ||
1c1884efde8d5cc4c1670d3e9a47c41b4f8e029a data/plethora/computercraft/turtle_upgrades/kinetic.json | ||
7681b93406f76e9f963f8d4a0a2190df64664801 data/plethora/computercraft/turtle_upgrades/scanner.json |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/.cache/ae219fa7c7d3297c14e454863eac3998a4eab78c
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,7 @@ | ||
// 1.19.2 2022-11-11T00:13:45.924101991 Pocket Computer Upgrades | ||
72fda019483640f8826703853cc8f9ec658d64ad data/plethora/computercraft/pocket_upgrades/sensor.json | ||
5a4536bed50e4fdd472ec6ddb9efd870a29945ab data/plethora/computercraft/pocket_upgrades/kinetic.json | ||
81e33a822205ce35b7cb02c4f18d8d4fce27b125 data/plethora/computercraft/pocket_upgrades/keyboard.json | ||
92a0397f656d942065072f3cd1ab62ce42cd4a12 data/plethora/computercraft/pocket_upgrades/laser.json | ||
7681b93406f76e9f963f8d4a0a2190df64664801 data/plethora/computercraft/pocket_upgrades/scanner.json | ||
55be9fa941681e064a87483071884ee739a00abd data/plethora/computercraft/pocket_upgrades/introspection.json |
39 changes: 39 additions & 0 deletions
39
...es/data/plethora/advancements/recipes/computercraft/turtle_advanced/plethora/kinetic.json
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,39 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_items": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"computercraft:turtle_advanced" | ||
] | ||
}, | ||
{ | ||
"items": [ | ||
"plethora:module_kinetic" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "plethora:turtle_advanced/plethora/kinetic" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_items", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"plethora:turtle_advanced/plethora/kinetic" | ||
] | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...rces/data/plethora/advancements/recipes/computercraft/turtle_normal/plethora/kinetic.json
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,39 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_items": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"computercraft:turtle_normal" | ||
] | ||
}, | ||
{ | ||
"items": [ | ||
"plethora:module_kinetic" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "plethora:turtle_normal/plethora/kinetic" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_items", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"plethora:turtle_normal/plethora/kinetic" | ||
] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/introspection.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_introspection" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/keyboard.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_keyboard" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/kinetic.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_kinetic" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/laser.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_laser" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/scanner.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_scanner" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/pocket_upgrades/sensor.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_sensor" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/turtle_upgrades/introspection.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_introspection" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/turtle_upgrades/kinetic.json
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 @@ | ||
{ | ||
"type": "plethora:kinetic", | ||
"item": "plethora:module_kinetic" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/turtle_upgrades/laser.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_laser" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/turtle_upgrades/scanner.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_scanner" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/generated/resources/data/plethora/computercraft/turtle_upgrades/sensor.json
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 @@ | ||
{ | ||
"type": "plethora:module", | ||
"item": "plethora:module_sensor" | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/data/plethora/recipes/turtle_advanced/plethora/kinetic.json
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,19 @@ | ||
{ | ||
"type": "computercraft:impostor_shaped", | ||
"group": "plethora:turtle_advanced", | ||
"key": { | ||
"#": { | ||
"item": "plethora:module_kinetic" | ||
}, | ||
"T": { | ||
"item": "computercraft:turtle_advanced" | ||
} | ||
}, | ||
"pattern": [ | ||
"#T" | ||
], | ||
"result": { | ||
"item": "computercraft:turtle_advanced", | ||
"nbt": "{RightUpgrade:\"plethora:kinetic\"}" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/data/plethora/recipes/turtle_normal/plethora/kinetic.json
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,19 @@ | ||
{ | ||
"type": "computercraft:impostor_shaped", | ||
"group": "plethora:turtle_normal", | ||
"key": { | ||
"#": { | ||
"item": "plethora:module_kinetic" | ||
}, | ||
"T": { | ||
"item": "computercraft:turtle_normal" | ||
} | ||
}, | ||
"pattern": [ | ||
"#T" | ||
], | ||
"result": { | ||
"item": "computercraft:turtle_normal", | ||
"nbt": "{RightUpgrade:\"plethora:kinetic\"}" | ||
} | ||
} |
64 changes: 0 additions & 64 deletions
64
src/main/java/pw/switchcraft/plethora/api/module/IModuleRegistry.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,82 +1,18 @@ | ||
package pw.switchcraft.plethora.api.module; | ||
|
||
import dan200.computercraft.api.pocket.IPocketUpgrade; | ||
import dan200.computercraft.api.turtle.ITurtleUpgrade; | ||
import net.minecraft.item.ItemStack; | ||
import pw.switchcraft.plethora.api.vehicle.IVehicleUpgradeHandler; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.List; | ||
|
||
/** | ||
* Various helper methods for modules. | ||
*/ | ||
public interface IModuleRegistry { | ||
/** | ||
* Register a turtle upgrade. | ||
* | ||
* This will use the stack's module handler and the item name + ".adjective" for its adjective. | ||
* | ||
* @param stack The stack containing the module. | ||
*/ | ||
void registerTurtleUpgrade(@Nonnull ItemStack stack); | ||
|
||
/** | ||
* Register a turtle upgrade. | ||
* | ||
* This will use the stack's module handler. | ||
* | ||
* @param stack The stack containing the module. | ||
* @param adjective The module's adjective. | ||
*/ | ||
void registerTurtleUpgrade(@Nonnull ItemStack stack, @Nonnull String adjective); | ||
|
||
/** | ||
* Register a turtle upgrade. | ||
* | ||
* @param stack The stack containing the module. | ||
* @param handler The module handler. | ||
* @param adjective The module's adjective. | ||
*/ | ||
void registerTurtleUpgrade(@Nonnull ItemStack stack, @Nonnull IModuleHandler handler, @Nonnull String adjective); | ||
|
||
/** | ||
* Register a pocket upgrade. | ||
* | ||
* This will use the stack's module handler and the item name + ".adjective" for its adjective. | ||
* | ||
* @param stack The stack containing the module. | ||
*/ | ||
void registerPocketUpgrade(@Nonnull ItemStack stack); | ||
|
||
/** | ||
* Register a pocket upgrade. | ||
* | ||
* This will use the stack's module handler. | ||
* | ||
* @param stack The stack containing the module. | ||
* @param adjective The module's adjective. | ||
*/ | ||
void registerPocketUpgrade(@Nonnull ItemStack stack, @Nonnull String adjective); | ||
|
||
/** | ||
* Register a pocket upgrade. | ||
* | ||
* @param stack The stack containing the module. | ||
* @param handler The module handler. | ||
* @param adjective The module's adjective. | ||
*/ | ||
void registerPocketUpgrade(@Nonnull ItemStack stack, @Nonnull IModuleHandler handler, @Nonnull String adjective); | ||
|
||
/** | ||
* Convert a module handler to a vehicle upgrade handler. | ||
* | ||
* @param handler The module handler to convert. | ||
* @return The resulting vehicle upgrade handler. | ||
*/ | ||
IVehicleUpgradeHandler toVehicleUpgrade(@Nonnull IModuleHandler handler); | ||
|
||
List<IPocketUpgrade> getPocketUpgrades(); | ||
|
||
List<ITurtleUpgrade> getTurtleUpgrades(); | ||
} |
Oops, something went wrong.