-
Notifications
You must be signed in to change notification settings - Fork 10
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
25 changed files
with
480 additions
and
12 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/89b86ab0e66f527166d98df92ddbcf5416ed58f6
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,2 +1,2 @@ | ||
// 1.21.1 2024-11-04T02:02:08.7664527 Language | ||
4f31a9937280c90098f9339e53be7c7a50080aec assets/advanced_ae/lang/en_us.json | ||
// 1.21.1 2025-01-09T23:32:54.3395719 Language | ||
d8bb9a481806f65ecb6ce44314910d4e7ff780eb assets/advanced_ae/lang/en_us.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
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
8 changes: 8 additions & 0 deletions
8
src/generated/resources/assets/advanced_ae/models/item/import_export_bus_part.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,8 @@ | ||
{ | ||
"parent": "ae2:item/export_bus", | ||
"textures": { | ||
"back": "advanced_ae:part/import_export_bus_back", | ||
"front": "advanced_ae:part/import_export_bus", | ||
"sides": "advanced_ae:part/import_export_bus_sides" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/generated/resources/assets/advanced_ae/models/part/import_export_bus_part.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,10 @@ | ||
{ | ||
"parent": "ae2:part/export_bus_base", | ||
"textures": { | ||
"back": "advanced_ae:part/import_export_bus_back", | ||
"front": "advanced_ae:part/import_export_bus", | ||
"particle": "advanced_ae:part/import_export_bus_back", | ||
"sides": "advanced_ae:part/import_export_bus_sides", | ||
"sidesStatus": "ae2:part/monitor_sides_status" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/advanced_ae/advancement/recipes/misc/import_export_bus.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,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"hasItem": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "ae2:export_bus" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "advanced_ae:import_export_bus" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"hasItem" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"advanced_ae:import_export_bus" | ||
] | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/generated/resources/data/advanced_ae/recipe/import_export_bus.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,24 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"E": { | ||
"item": "ae2:export_bus" | ||
}, | ||
"I": { | ||
"item": "ae2:export_bus" | ||
}, | ||
"L": { | ||
"item": "ae2:logic_processor" | ||
} | ||
}, | ||
"pattern": [ | ||
" ", | ||
"ILE", | ||
" " | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "advanced_ae:import_export_bus_part" | ||
} | ||
} |
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
61 changes: 61 additions & 0 deletions
61
src/main/java/net/pedroksl/advanced_ae/client/gui/ImportExportBusScreen.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,61 @@ | ||
package net.pedroksl.advanced_ae.client.gui; | ||
|
||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.pedroksl.advanced_ae.gui.ImportExportBusMenu; | ||
|
||
import appeng.api.config.RedstoneMode; | ||
import appeng.api.config.SchedulingMode; | ||
import appeng.api.config.Settings; | ||
import appeng.api.config.YesNo; | ||
import appeng.client.gui.implementations.UpgradeableScreen; | ||
import appeng.client.gui.style.ScreenStyle; | ||
import appeng.client.gui.widgets.ServerSettingToggleButton; | ||
import appeng.client.gui.widgets.SettingToggleButton; | ||
import appeng.core.definitions.AEItems; | ||
|
||
public class ImportExportBusScreen extends UpgradeableScreen<ImportExportBusMenu> { | ||
|
||
private final SettingToggleButton<RedstoneMode> redstoneMode; | ||
private final SettingToggleButton<YesNo> craftMode; | ||
private final SettingToggleButton<SchedulingMode> schedulingMode; | ||
|
||
public ImportExportBusScreen( | ||
ImportExportBusMenu menu, Inventory playerInventory, Component title, ScreenStyle style) { | ||
super(menu, playerInventory, title, style); | ||
|
||
this.redstoneMode = new ServerSettingToggleButton<>(Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE); | ||
this.addToLeftToolbar(this.redstoneMode); | ||
|
||
if ((menu.getHost()).getConfigManager().hasSetting(Settings.CRAFT_ONLY)) { | ||
this.craftMode = new ServerSettingToggleButton<>(Settings.CRAFT_ONLY, YesNo.NO); | ||
this.addToLeftToolbar(this.craftMode); | ||
} else { | ||
this.craftMode = null; | ||
} | ||
|
||
if ((menu.getHost()).getConfigManager().hasSetting(Settings.SCHEDULING_MODE)) { | ||
this.schedulingMode = new ServerSettingToggleButton<>(Settings.SCHEDULING_MODE, SchedulingMode.DEFAULT); | ||
this.addToLeftToolbar(this.schedulingMode); | ||
} else { | ||
this.schedulingMode = null; | ||
} | ||
} | ||
|
||
@Override | ||
protected void updateBeforeRender() { | ||
super.updateBeforeRender(); | ||
|
||
this.redstoneMode.set((this.menu).getRedStoneMode()); | ||
this.redstoneMode.setVisibility(this.menu.hasUpgrade(AEItems.REDSTONE_CARD)); | ||
|
||
if (this.craftMode != null) { | ||
this.craftMode.set(this.menu.getCraftingMode()); | ||
this.craftMode.setVisibility(this.menu.hasUpgrade(AEItems.CRAFTING_CARD)); | ||
} | ||
|
||
if (this.schedulingMode != null) { | ||
this.schedulingMode.set(this.menu.getSchedulingMode()); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.