Skip to content

Commit

Permalink
Gp/modularized machines (#32)
Browse files Browse the repository at this point in the history
* DummyModule is fucked, gave up for now ffs

* I hate this multiblock

* StarLadder Works, Modules do not

* 1

* WorkableSteamHullType Renderer, IPBF, LMV

* Fireclay, IPBF, Hardened Resin

* Update GT to 1.4.4

* changelogs
  • Loading branch information
Ghostipedia authored Sep 26, 2024
1 parent f8c3928 commit 24509b7
Show file tree
Hide file tree
Showing 48 changed files with 1,282 additions and 28 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ repositories {
maven {
url "https://maven.teamresourceful.com/repository/maven-public/"
}
maven {
name = 'GTCEu Maven'
url = 'https://maven.gtceu.com'
content {
includeGroup 'com.gregtechceu.gtceu'
}
}
maven {
name 'FirstDarkDev'
url "https://maven.firstdarkdev.xyz/snapshots/"
Expand Down
8 changes: 4 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cosmic Core 0.3.7
* Stellar Iris Dev Progress pt1
* Thermia Implementations pt1
* Perpetuity for QB rewards
# Cosmic Core 0.3.8
* Updated to GTCEU 1.4.4
* New Steam Machines
* Misc Fixes

# DO NOT MANUALLY UPDATE COSMIC CORE FOR FRONTIERS 0.5.2 **I WILL NOT WORK**
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ parchment_mappings=2023.09.03
quilt_mappings=23

# Mod Properties
mod_version=0.3.7
mod_version=0.3.8
maven_group=com.ghostipedia.frontiers
archives_base_name=cosmic-core
mod_id=cosmiccore
mod_author=Ghostipedia

# Dependencies
gtceu_version=1.4.0-SNAPSHOT
ldlib_version=1.0.27.b
gtceu_version=1.4.4
ldlib_version=1.0.28.a
registrate_version=MC1.20-1.3.3
kubejs_version=2001.6.4-build.120
patchouli_version=81
Expand Down
21 changes: 21 additions & 0 deletions src/generated/resources/assets/cosmiccore/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@
"block.cosmiccore.resonantly_tuned_virtue_meld_casing": "buısɐƆ pןǝW ǝnʇɹıΛ pǝun⟘ ʎןʇuɐuosǝᴚ",
"block.cosmiccore.shimmering_neutronium_coil_block": "ʞɔoןᗺ ןıoƆ ɯnıuoɹʇnǝN buıɹǝɯɯıɥS",
"block.cosmiccore.star_ballast": "ʇsɐןןɐᗺ ɹɐʇS",
"block.cosmiccore.star_ladder": "ɹǝppɐꞀ ɹɐʇS",
"block.cosmiccore.stellar_iris": "sıɹI ɹɐןןǝʇS",
"block.cosmiccore.uev_cosmic_parallel_hatch": "ɥɔʇɐH ןoɹʇuoƆ ןǝןןɐɹɐԀ ɥɔǝ⟘dɹɐM",
"block.cosmiccore.uev_soul_input_hatch": "ɥɔʇɐH ʇnduI ןnoS ΛƎ∩ɐ§",
"block.cosmiccore.uev_soul_output_hatch": "ɥɔʇɐH ʇndʇnO ןnoS ΛƎ∩ɐ§",
"block.cosmiccore.uev_thermia_export_hatch": "ʇuǝΛ ɐıɯɹǝɥ⟘ ΛƎ∩ɐ§",
"block.cosmiccore.uev_thermia_import_hatch": "ʇǝʞɔoS ɐıɯɹǝɥ⟘ ΛƎ∩ɐ§",
"block.cosmiccore.uhv_cosmic_parallel_hatch": "ɥɔʇɐH ןoɹʇuoƆ ןǝןןɐɹɐԀ ǝɯǝɹʇxƎ",
"block.cosmiccore.uhv_shredder_module": "ΛI ʞW ǝןnpoW ɹǝppǝɹɥS",
"block.cosmiccore.uhv_soul_input_hatch": "ɥɔʇɐH ʇnduI ןnoS ΛH∩ㄣ§",
"block.cosmiccore.uhv_soul_output_hatch": "ɥɔʇɐH ʇndʇnO ןnoS ΛH∩ㄣ§",
"block.cosmiccore.uhv_thermia_export_hatch": "ʇuǝΛ ɐıɯɹǝɥ⟘ ΛH∩ㄣ§",
Expand All @@ -52,6 +54,7 @@
"block.cosmiccore.uiv_thermia_export_hatch": "ʇuǝΛ ɐıɯɹǝɥ⟘ ΛI∩ᄅ§",
"block.cosmiccore.uiv_thermia_import_hatch": "ʇǝʞɔoS ɐıɯɹǝɥ⟘ ΛI∩ᄅ§",
"block.cosmiccore.uv_cosmic_parallel_hatch": "ɥɔʇɐH ןoɹʇuoƆ ןǝןןɐɹɐԀ ɹǝdnS",
"block.cosmiccore.uv_shredder_module": "III ʞW ǝןnpoW ɹǝppǝɹɥS",
"block.cosmiccore.uv_soul_input_hatch": "ɥɔʇɐH ʇnduI ןnoS Λ∩Ɛ§",
"block.cosmiccore.uv_soul_output_hatch": "ɥɔʇɐH ʇndʇnO ןnoS Λ∩Ɛ§",
"block.cosmiccore.uv_thermia_export_hatch": "ʇuǝΛ ɐıɯɹǝɥ⟘ Λ∩Ɛ§",
Expand All @@ -65,14 +68,24 @@
"block.cosmiccore.vomahine_certified_chemically_resistant_pipe": "ǝdıԀ ʇuɐʇsısǝᴚ ʎןןɐɔıɯǝɥƆ pǝıɟıʇɹǝƆ ǝuıɥɐɯoΛ",
"block.cosmiccore.vomahine_certified_interstellar_grade_casing": "buısɐƆ ǝpɐɹ⅁ ɹɐןןǝʇsɹǝʇuI pǝıɟıʇɹǝƆ ǝuıɥɐɯoΛ",
"block.cosmiccore.vomahine_industrial_chemical_plant": "ʇuɐןԀ ןɐɔıɯǝɥƆ ןɐıɹʇsnpuI ǝuıɥɐɯoΛ",
"block.cosmiccore.vomahine_shredder": "ɹǝppǝɹɥS ǝuıɥɐɯoΛ",
"block.cosmiccore.vomahine_ultra_powered_casing": "buısɐƆ pǝɹǝʍoԀ ɐɹʇן∩ ǝuıɥɐɯoΛ",
"block.cosmiccore.zpm_cosmic_parallel_hatch": "ɥɔʇɐH ןoɹʇuoƆ ןǝןןɐɹɐԀ ǝʇɐɯıʇן∩",
"block.cosmiccore.zpm_shredder_module": "II ʞW ǝןnpoW ɹǝppǝɹɥS",
"block.cosmiccore.zpm_soul_input_hatch": "ɥɔʇɐH ʇnduI ןnoS WԀZɔ§",
"block.cosmiccore.zpm_soul_output_hatch": "ɥɔʇɐH ʇndʇnO ןnoS WԀZɔ§",
"block.cosmiccore.zpm_thermia_export_hatch": "ʇuǝΛ ɐıɯɹǝɥ⟘ WԀZɔ§",
"block.cosmiccore.zpm_thermia_import_hatch": "ʇǝʞɔoS ɐıɯɹǝɥ⟘ WԀZɔ§",
"block.gtceu.hp_steam_bender": "ɹǝpuǝᗺ ɯɐǝʇS ԀH",
"block.gtceu.hp_steam_wiremill": "ןןıɯǝɹıM ɯɐǝʇS ԀH",
"block.gtceu.industrial_primitive_blast_furnace": "ǝɔɐuɹnℲ ʇsɐןᗺ ǝʌıʇıɯıɹԀ ןɐıɹʇsnpuI",
"block.gtceu.iv_naquahine_mini_reactor": "ɹ§ɹoʇɔɐǝᴚ ǝuıɥɐnbɐN oɹɔıWƐ§",
"block.gtceu.lp_steam_bender": "ʇsıxƎ ʎןןɐnʇɔⱯ ʇ,uoᗡ I",
"block.gtceu.lp_steam_wiremill": "ʇsıxƎ ʎןןɐnʇɔⱯ ʇ,uoᗡ I",
"block.gtceu.luv_naquahine_mini_reactor": "ɹ§ɹoʇɔɐǝᴚ ǝuıɥɐnbɐN oɹɔıW pǝɔuɐʌpⱯp§",
"block.gtceu.steam_fluid_input_hatch": "ɥɔʇɐH ʇnduI pınןℲ ǝzuoɹᗺ",
"block.gtceu.steam_fluid_output_hatch": "ɥɔʇɐH ʇndʇnO pınןℲ ǝzuoɹᗺ",
"block.gtceu.steam_mixing_vessel": "ןǝssǝΛ buıxıW ɯɐǝʇS ǝbɹɐꞀ9§",
"block.gtceu.uhv_naquahine_mini_reactor": "ɹ§ɹoʇɔɐǝᴚ ǝuıɥɐnbɐN oɹɔıW ɔıdƎㄣ§",
"block.gtceu.uv_naquahine_mini_reactor": "ɹ§ɹoʇɔɐǝᴚ ǝuıɥɐnbɐN oɹɔıW ǝʇɐɯıʇן∩Ɛ§",
"block.gtceu.zpm_naquahine_mini_reactor": "ɹ§ɹoʇɔɐǝᴚ ǝuıɥɐnbɐN oɹɔıW ǝʇıןƎɔ§",
Expand All @@ -83,8 +96,13 @@
"cosmiccore.lore.shard_large.1": "˙ǝʇɐɟ ǝʇıɹʍǝɹ oʇ soɥɔǝ ʇıɐ§",
"cosmiccore.lore.shard_small.0": "ʎʇıuɹǝʇǝ ʇsɐd ɐ ɯoɹɟ pɹɐɥs Ɐ9§",
"cosmiccore.lore.shard_small.1": "˙ǝʇɐɟ ǝʇıɹʍǝɹ oʇ soɥɔǝ ʎןʇqns ʇı9§",
"cosmiccore.multiblock.advanced.star_ladder_tier": "%sq§ :ɟ§sǝןnpoW ɥɔɹɐǝsǝᴚ xɐWɐ§ \n %sq§ :ɟ§ɹǝı⟘ ɹǝɥʇǝ⟘ ɹǝppɐꞀɹɐʇS ǝuıɥɐɯoΛɐ§",
"cosmiccore.multiblock.current_field_strength": "%s :ɥʇbuǝɹʇS pןǝıℲɟ§",
"cosmiccore.multiblock.fuel_star": "ǝɹoƆ ɹɐʇS ןǝnℲן§ɐ§",
"cosmiccore.multiblock.ipbf.tooltip.0": "¡ʇɐǝɥ ǝɥʇ dn uɹn⟘o§ㄥ§",
"cosmiccore.multiblock.ipbf.tooltip.1": "˙ʎɔuǝıɔıɟɟǝ ǝʌoɹdɯı oʇ sǝdıɔǝɹ ɥʇıʍ ǝʇosoǝɹɔ sǝɯnsuoƆɟ§",
"cosmiccore.multiblock.ipbf.tooltip.2": "˙ɹǝʇsɐℲɐ§ %ϛᄅɟ§ ǝɹɐ sǝdıɔǝᴚɐ§",
"cosmiccore.multiblock.ipbf.tooltip.3": "ɹ§x8q§ :ɟ§ʇunoɯⱯ ןǝןןɐɹɐԀɐ§",
"cosmiccore.multiblock.iris.star_stage_early_star": "ɹɐʇS ʇuɐɟuI9§ :ɟ§ǝbɐʇS ǝɹoƆ ɹɐʇSɐ§",
"cosmiccore.multiblock.iris.star_stage_empty": "pnoןƆ sɐ⅁ pǝssǝɹdɯoƆ9§ :ɟ§ǝbɐʇS ǝɹoƆ ɹɐʇSɐ§",
"cosmiccore.multiblock.iris.star_stage_request": "˙ǝbɐʇS ʇxǝN ɹoɟɔ§\n %sɹ§\n sǝɹınbǝᴚ ǝɹoƆ ɹɐʇSɔ§",
Expand All @@ -95,6 +113,7 @@
"cosmiccore.multiblock.iris.tooltip.3": "pǝzıɯıʇdo/pǝןqɐsıp ǝq ןןıʍ ʍǝıʌǝɹd IƎſ - ʞɔoןqıʇןnW ǝɹnʇnℲɐ§",
"cosmiccore.multiblock.magnetic_field_strength": "%s 9§:ɟ§ɥʇbuǝɹʇS pןǝıℲ xɐWɟ§",
"cosmiccore.multiblock.magnetic_regen": "ʇ/⟘%s 9§:ɟ§ǝʇɐᴚ ʎɹǝʌoɔǝᴚ pןǝıℲɐ§",
"cosmiccore.multiblock.send_orbit_data": "pɐoןʎɐԀ ɥɔɹɐǝsǝᴚ puǝSן§ɐ§",
"cosmiccore.omnia_circuit.ev": "˙ʇınɔɹıƆ ΛƎ ʎuɐ sɐ sʞɹoM9§",
"cosmiccore.omnia_circuit.hv": "˙ʇınɔɹıƆ ΛH ʎuɐ sɐ sʞɹoM9§",
"cosmiccore.omnia_circuit.iv": "˙ʇınɔɹıƆ ΛI ʎuɐ sɐ sʞɹoM9§",
Expand Down Expand Up @@ -156,6 +175,8 @@
"item.cosmiccore.echo_processor_mainframe": "ǝɯɐɹɟuıɐW ɹossǝɔoɹԀ oɥɔƎ",
"item.cosmiccore.echo_processor_supercomputer": "ɹǝʇndɯoɔɹǝdnS ɹossǝɔoɹԀ oɥɔƎ",
"item.cosmiccore.engraved_crystal_chiplet": "ʇǝןdıɥƆ ןɐʇsʎɹƆ pǝʌɐɹbuƎ",
"item.cosmiccore.fireclay_ball": "ןןɐq ʎɐןɔǝɹıℲ",
"item.cosmiccore.hardened_resin": "uısǝᴚ pǝuǝpɹɐH",
"item.cosmiccore.large_shard_of_perpetuity": "ʎʇınʇǝdɹǝԀ ɟo pɹɐɥS ǝbɹɐꞀ",
"item.cosmiccore.macroverse_processor": "ɹossǝɔoɹԀ ǝsɹǝʌoɹɔɐW",
"item.cosmiccore.macroverse_processor_assembly": "ʎןqɯǝssⱯ ɹossǝɔoɹԀ ǝsɹǝʌoɹɔɐW",
Expand Down
21 changes: 21 additions & 0 deletions src/generated/resources/assets/cosmiccore/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@
"block.cosmiccore.resonantly_tuned_virtue_meld_casing": "Resonantly Tuned Virtue Meld Casing",
"block.cosmiccore.shimmering_neutronium_coil_block": "Shimmering Neutronium Coil Block",
"block.cosmiccore.star_ballast": "Star Ballast",
"block.cosmiccore.star_ladder": "Star Ladder",
"block.cosmiccore.stellar_iris": "Stellar Iris",
"block.cosmiccore.uev_cosmic_parallel_hatch": "WarpTech Parallel Control Hatch",
"block.cosmiccore.uev_soul_input_hatch": "§aUEV Soul Input Hatch",
"block.cosmiccore.uev_soul_output_hatch": "§aUEV Soul Output Hatch",
"block.cosmiccore.uev_thermia_export_hatch": "§aUEV Thermia Vent",
"block.cosmiccore.uev_thermia_import_hatch": "§aUEV Thermia Socket",
"block.cosmiccore.uhv_cosmic_parallel_hatch": "Extreme Parallel Control Hatch",
"block.cosmiccore.uhv_shredder_module": "Shredder Module MK IV",
"block.cosmiccore.uhv_soul_input_hatch": "§4UHV Soul Input Hatch",
"block.cosmiccore.uhv_soul_output_hatch": "§4UHV Soul Output Hatch",
"block.cosmiccore.uhv_thermia_export_hatch": "§4UHV Thermia Vent",
Expand All @@ -52,6 +54,7 @@
"block.cosmiccore.uiv_thermia_export_hatch": "§2UIV Thermia Vent",
"block.cosmiccore.uiv_thermia_import_hatch": "§2UIV Thermia Socket",
"block.cosmiccore.uv_cosmic_parallel_hatch": "Super Parallel Control Hatch",
"block.cosmiccore.uv_shredder_module": "Shredder Module MK III",
"block.cosmiccore.uv_soul_input_hatch": "§3UV Soul Input Hatch",
"block.cosmiccore.uv_soul_output_hatch": "§3UV Soul Output Hatch",
"block.cosmiccore.uv_thermia_export_hatch": "§3UV Thermia Vent",
Expand All @@ -65,14 +68,24 @@
"block.cosmiccore.vomahine_certified_chemically_resistant_pipe": "Vomahine Certified Chemically Resistant Pipe",
"block.cosmiccore.vomahine_certified_interstellar_grade_casing": "Vomahine Certified Interstellar Grade Casing",
"block.cosmiccore.vomahine_industrial_chemical_plant": "Vomahine Industrial Chemical Plant",
"block.cosmiccore.vomahine_shredder": "Vomahine Shredder",
"block.cosmiccore.vomahine_ultra_powered_casing": "Vomahine Ultra Powered Casing",
"block.cosmiccore.zpm_cosmic_parallel_hatch": "Ultimate Parallel Control Hatch",
"block.cosmiccore.zpm_shredder_module": "Shredder Module MK II",
"block.cosmiccore.zpm_soul_input_hatch": "§cZPM Soul Input Hatch",
"block.cosmiccore.zpm_soul_output_hatch": "§cZPM Soul Output Hatch",
"block.cosmiccore.zpm_thermia_export_hatch": "§cZPM Thermia Vent",
"block.cosmiccore.zpm_thermia_import_hatch": "§cZPM Thermia Socket",
"block.gtceu.hp_steam_bender": "HP Steam Bender",
"block.gtceu.hp_steam_wiremill": "HP Steam Wiremill",
"block.gtceu.industrial_primitive_blast_furnace": "Industrial Primitive Blast Furnace",
"block.gtceu.iv_naquahine_mini_reactor": "§3Micro Naquahine Reactor§r",
"block.gtceu.lp_steam_bender": "I Don't Actually Exist",
"block.gtceu.lp_steam_wiremill": "I Don't Actually Exist",
"block.gtceu.luv_naquahine_mini_reactor": "§dAdvanced Micro Naquahine Reactor§r",
"block.gtceu.steam_fluid_input_hatch": "Bronze Fluid Input Hatch",
"block.gtceu.steam_fluid_output_hatch": "Bronze Fluid Output Hatch",
"block.gtceu.steam_mixing_vessel": "§6Large Steam Mixing Vessel",
"block.gtceu.uhv_naquahine_mini_reactor": "§4Epic Micro Naquahine Reactor§r",
"block.gtceu.uv_naquahine_mini_reactor": "§3Ultimate Micro Naquahine Reactor§r",
"block.gtceu.zpm_naquahine_mini_reactor": "§cElite Micro Naquahine Reactor§r",
Expand All @@ -83,8 +96,13 @@
"cosmiccore.lore.shard_large.1": "§ait echos to rewrite fate.",
"cosmiccore.lore.shard_small.0": "§6A shard from a past eternity",
"cosmiccore.lore.shard_small.1": "§6it subtly echos to rewrite fate.",
"cosmiccore.multiblock.advanced.star_ladder_tier": "§aVomahine StarLadder Tether Tier§f: §b%s \n §aMax Research Modules§f: §b%s",
"cosmiccore.multiblock.current_field_strength": "§fField Strength: %s",
"cosmiccore.multiblock.fuel_star": "§a§lFuel Star Core",
"cosmiccore.multiblock.ipbf.tooltip.0": "§7§oTurn up the heat!",
"cosmiccore.multiblock.ipbf.tooltip.1": "§fConsumes creosote with recipes to improve efficiency.",
"cosmiccore.multiblock.ipbf.tooltip.2": "§aRecipes are §f25% §aFaster.",
"cosmiccore.multiblock.ipbf.tooltip.3": "§aParallel Amount§f: §b8x§r",
"cosmiccore.multiblock.iris.star_stage_early_star": "§aStar Core Stage§f: §6Infant Star",
"cosmiccore.multiblock.iris.star_stage_empty": "§aStar Core Stage§f: §6Compressed Gas Cloud",
"cosmiccore.multiblock.iris.star_stage_request": "§cStar Core Requires \n§r%s \n§cfor Next Stage.",
Expand All @@ -95,6 +113,7 @@
"cosmiccore.multiblock.iris.tooltip.3": "§aFuture Multiblock - JEI preview will be disabled/optimized",
"cosmiccore.multiblock.magnetic_field_strength": "§fMax Field Strength§f:§6 %s",
"cosmiccore.multiblock.magnetic_regen": "§aField Recovery Rate§f:§6 %sT/t",
"cosmiccore.multiblock.send_orbit_data": "§a§lSend Research Payload",
"cosmiccore.omnia_circuit.ev": "§6Works as any EV Circuit.",
"cosmiccore.omnia_circuit.hv": "§6Works as any HV Circuit.",
"cosmiccore.omnia_circuit.iv": "§6Works as any IV Circuit.",
Expand Down Expand Up @@ -156,6 +175,8 @@
"item.cosmiccore.echo_processor_mainframe": "Echo Processor Mainframe",
"item.cosmiccore.echo_processor_supercomputer": "Echo Processor Supercomputer",
"item.cosmiccore.engraved_crystal_chiplet": "Engraved Crystal Chiplet",
"item.cosmiccore.fireclay_ball": "Fireclay ball",
"item.cosmiccore.hardened_resin": "Hardened Resin",
"item.cosmiccore.large_shard_of_perpetuity": "Large Shard of Perpetuity",
"item.cosmiccore.macroverse_processor": "Macroverse Processor",
"item.cosmiccore.macroverse_processor_assembly": "Macroverse Processor Assembly",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "cosmiccore:item/fireclay_ball"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "cosmiccore:item/hardened_resin"
}
}
5 changes: 3 additions & 2 deletions src/main/java/com/ghostipedia/cosmiccore/CosmicCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.ghostipedia.cosmiccore.common.data.materials.CosmicMaterials;
import com.ghostipedia.cosmiccore.common.machine.multiblock.multi.StellarIris;
import com.ghostipedia.cosmiccore.common.machine.multiblock.multi.StellarStarBallast;
import com.ghostipedia.cosmiccore.common.machine.multiblock.multi.modular.ModularizedMultis;
import com.ghostipedia.cosmiccore.gtbridge.CosmicRecipeTypes;
import com.gregtechceu.gtceu.api.GTCEuAPI;
import com.gregtechceu.gtceu.api.data.chemical.material.event.MaterialEvent;
Expand Down Expand Up @@ -91,9 +92,9 @@ public void registerRecipeTypes(GTCEuAPI.RegisterEvent<ResourceLocation, GTRecip
}

public void registerMachines(GTCEuAPI.RegisterEvent<ResourceLocation, MachineDefinition> event) {
ModularizedMultis.init();
CosmicMachines.init();
StellarIris.init();
StellarStarBallast.init();

}

@SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import com.ghostipedia.cosmiccore.api.capability.recipe.CosmicRecipeCapabilities;
import com.ghostipedia.cosmiccore.api.data.CosmicCoreMaterialIconType;
import com.ghostipedia.cosmiccore.api.data.CosmicCoreTagPrefix;
import com.ghostipedia.cosmiccore.api.data.CosmicCustomTags;
import com.ghostipedia.cosmiccore.api.registries.CosmicRegistration;
import com.ghostipedia.cosmiccore.common.data.materials.CosmicElements;
import com.ghostipedia.cosmiccore.common.data.recipe.CosmicCoreOreRecipeHandler;
Expand Down Expand Up @@ -32,7 +32,7 @@ public GTRegistrate getRegistrate() {
@Override
public void registerTagPrefixes() {
CosmicCoreMaterialIconType.init();
CosmicCoreTagPrefix.initTagPrefixes();
CosmicCustomTags.initTagPrefixes();
}

@Override
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/com/ghostipedia/cosmiccore/api/CosmicCoreAPI.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
package com.ghostipedia.cosmiccore.api;

import com.ghostipedia.cosmiccore.api.block.IMagnetType;
import com.ghostipedia.cosmiccore.api.block.IMultiblockProvider;
import com.ghostipedia.cosmiccore.common.block.MagnetBlock;
import com.gregtechceu.gtceu.api.block.ICoilType;
import com.gregtechceu.gtceu.common.block.CoilBlock;
import com.gregtechceu.gtceu.api.block.IFilterType;
import com.gregtechceu.gtceu.api.machine.multiblock.WorkableElectricMultiblockMachine;
import net.minecraft.nbt.Tag;
import net.minecraft.world.level.block.Block;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Supplier;

public class CosmicCoreAPI {
public static final Map<IMagnetType, Supplier<MagnetBlock>> MAGNET_COILS = new HashMap<>();
public static final Map<Block, Supplier<Block>> STARLADDER_CASINGS = new HashMap<>();
public static final Map<IMultiblockProvider, Supplier<Block>> STARLADDER_MODULES = new HashMap<>();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.ghostipedia.cosmiccore.api.block;

import com.gregtechceu.gtceu.api.capability.IEnergyContainer;
import com.gregtechceu.gtceu.api.machine.feature.IMachineFeature;

public interface IMultiblockProvider {

int getModulatorTier();

IEnergyContainer getEnergyContainersForModules();

boolean amIAModule(IMultiblockProvider receiver);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.ghostipedia.cosmiccore.api.block;

import javax.annotation.Nullable;

public interface IMultiblockReciever {

@Nullable
IMultiblockProvider getModularMultiBlock();

void setModularMultiBlock(IMultiblockProvider provider);

void sendWorkingDisabled();

void sendWorkingEnabled();

String getNameForDisplays();

}
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package com.ghostipedia.cosmiccore.api.data;

import com.gregtechceu.gtceu.api.data.chemical.material.info.MaterialIconType;
import com.ghostipedia.cosmiccore.common.data.tag.TagUtil;
import com.gregtechceu.gtceu.api.data.tag.TagPrefix;
import com.gregtechceu.gtceu.api.registry.GTRegistries;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;

import static com.gregtechceu.gtceu.api.data.tag.TagPrefix.Conditions.hasOreProperty;

public class CosmicCoreTagPrefix {
public class CosmicCustomTags {
public static TagPrefix crushedLeached;
public static TagPrefix prismaFrothed;
public static final TagKey<Block> STAR_LADDER_BLOCKS = TagUtil.createBlockTag("starladder_blocks");
public static final TagKey<Item> STAR_LADDER_ITEMS = TagUtil.createItemTag("starladder_items");
public static void initTagPrefixes() {
crushedLeached = new TagPrefix("leachedOre")
.idPattern("leached_%s_ore")
Expand Down
Loading

0 comments on commit 24509b7

Please sign in to comment.