-
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.
Add bundled resource pack for "classic cell colours"
- Loading branch information
Showing
123 changed files
with
373 additions
and
97 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
73 changes: 73 additions & 0 deletions
73
src/data/java/gripe/_90/megacells/datagen/OverrideModelProvider.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,73 @@ | ||
package gripe._90.megacells.datagen; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import net.minecraft.core.registries.BuiltInRegistries; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.level.ItemLike; | ||
import net.neoforged.neoforge.client.model.generators.ItemModelProvider; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
|
||
import appeng.core.AppEng; | ||
import appeng.core.definitions.AEItems; | ||
|
||
import me.ramidzkh.mekae2.AMItems; | ||
|
||
import gripe._90.arseng.definition.ArsEngItems; | ||
import gripe._90.megacells.MEGACells; | ||
|
||
public class OverrideModelProvider extends ItemModelProvider { | ||
public OverrideModelProvider(PackOutput output, ExistingFileHelper existing) { | ||
super(output, MEGACells.MODID, existing); | ||
} | ||
|
||
@Override | ||
protected void registerModels() { | ||
cell(AEItems.ITEM_CELL_1K, AEItems.ITEM_CELL_HOUSING); | ||
cell(AEItems.ITEM_CELL_4K, AEItems.ITEM_CELL_HOUSING); | ||
cell(AEItems.ITEM_CELL_16K, AEItems.ITEM_CELL_HOUSING); | ||
cell(AEItems.ITEM_CELL_64K, AEItems.ITEM_CELL_HOUSING); | ||
cell(AEItems.ITEM_CELL_256K, AEItems.ITEM_CELL_HOUSING); | ||
|
||
cell(AEItems.FLUID_CELL_1K, AEItems.FLUID_CELL_HOUSING); | ||
cell(AEItems.FLUID_CELL_4K, AEItems.FLUID_CELL_HOUSING); | ||
cell(AEItems.FLUID_CELL_16K, AEItems.FLUID_CELL_HOUSING); | ||
cell(AEItems.FLUID_CELL_64K, AEItems.FLUID_CELL_HOUSING); | ||
cell(AEItems.FLUID_CELL_256K, AEItems.FLUID_CELL_HOUSING); | ||
|
||
existingFileHelper.trackGenerated(textureLocation(AMItems.CHEMICAL_CELL_HOUSING), TEXTURE); | ||
cell(AMItems.CHEMICAL_CELL_1K, AMItems.CHEMICAL_CELL_HOUSING); | ||
cell(AMItems.CHEMICAL_CELL_4K, AMItems.CHEMICAL_CELL_HOUSING); | ||
cell(AMItems.CHEMICAL_CELL_16K, AMItems.CHEMICAL_CELL_HOUSING); | ||
cell(AMItems.CHEMICAL_CELL_64K, AMItems.CHEMICAL_CELL_HOUSING); | ||
cell(AMItems.CHEMICAL_CELL_256K, AMItems.CHEMICAL_CELL_HOUSING); | ||
|
||
existingFileHelper.trackGenerated(textureLocation(ArsEngItems.SOURCE_CELL_HOUSING), TEXTURE); | ||
cell(ArsEngItems.SOURCE_CELL_1K, ArsEngItems.SOURCE_CELL_HOUSING); | ||
cell(ArsEngItems.SOURCE_CELL_4K, ArsEngItems.SOURCE_CELL_HOUSING); | ||
cell(ArsEngItems.SOURCE_CELL_16K, ArsEngItems.SOURCE_CELL_HOUSING); | ||
cell(ArsEngItems.SOURCE_CELL_64K, ArsEngItems.SOURCE_CELL_HOUSING); | ||
cell(ArsEngItems.SOURCE_CELL_256K, ArsEngItems.SOURCE_CELL_HOUSING); | ||
} | ||
|
||
private void cell(ItemLike cell, ItemLike housing) { | ||
var id = BuiltInRegistries.ITEM.getKey(cell.asItem()); | ||
var tierSuffix = id.getPath().substring(id.getPath().lastIndexOf('_')); | ||
|
||
singleTexture(id.toString(), mcLoc("item/generated"), "layer0", textureLocation(housing)) | ||
.texture("layer1", AppEng.makeId("item/storage_cell_led")) | ||
.texture("layer2", AppEng.makeId("item/storage_cell_side" + tierSuffix)); | ||
} | ||
|
||
private ResourceLocation textureLocation(ItemLike item) { | ||
var id = BuiltInRegistries.ITEM.getKey(item.asItem()); | ||
return ResourceLocation.fromNamespaceAndPath(id.getNamespace(), "item/" + id.getPath()); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getName() { | ||
return "Item Models (Classic Cell Colours)"; | ||
} | ||
} |
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-18T23:07:51.796909718 Language | ||
9e9924e9ebb1aaf3dced54bdb41bfadab31c7fae assets/megacells/lang/en_us.json | ||
// 1.21.1 2024-12-21T18:53:00.281933828 Language | ||
2dc5bcb57d26ecd11be21e08877d7fde105915eb assets/megacells/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
21 changes: 21 additions & 0 deletions
21
src/generated/resources/.cache/ea639ff5ce2575eb1f8e37a5c90b144ce934d6fc
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,21 @@ | ||
// 1.21.1 2024-12-21T19:18:50.660574979 Item Models (Classic Cell Colours) | ||
94835dda1d5fc0b64f3b8d17cf55a9f25539e675 optional_cell_colours/assets/ae2/models/item/fluid_storage_cell_16k.json | ||
389a98c7e00c1a767aba11552e656847d35d16b9 optional_cell_colours/assets/ae2/models/item/fluid_storage_cell_1k.json | ||
0e499abd7e13c11b38c1751736d9f3be783b491c optional_cell_colours/assets/ae2/models/item/fluid_storage_cell_256k.json | ||
9696a8123c05891f4caf90da26e6b6e397e5e5e0 optional_cell_colours/assets/ae2/models/item/fluid_storage_cell_4k.json | ||
9bae4575fa941774fdf0e4e903ae66ff76efb200 optional_cell_colours/assets/ae2/models/item/fluid_storage_cell_64k.json | ||
2207bcb4472dd412f55986b27f48ee5939a1342e optional_cell_colours/assets/ae2/models/item/item_storage_cell_16k.json | ||
276bf78658a21496e488e25c8a994276b339c2e8 optional_cell_colours/assets/ae2/models/item/item_storage_cell_1k.json | ||
ce295ff4b8abf3116a5a1c22e39bf609eaf060de optional_cell_colours/assets/ae2/models/item/item_storage_cell_256k.json | ||
b148926c6e21755af6af04f9ffc8c5b2e4fe6ce2 optional_cell_colours/assets/ae2/models/item/item_storage_cell_4k.json | ||
9b182321313fa45e900137bedffa989bc2ec665c optional_cell_colours/assets/ae2/models/item/item_storage_cell_64k.json | ||
3e6fef3a262cffc1d8f9bcbcfd425a263abfd56e optional_cell_colours/assets/appmek/models/item/chemical_storage_cell_16k.json | ||
c8072caf9dec0990e7bda333dd374f353213f46c optional_cell_colours/assets/appmek/models/item/chemical_storage_cell_1k.json | ||
049cedbc0dad900bb050c8d0b5c06525d9b940a3 optional_cell_colours/assets/appmek/models/item/chemical_storage_cell_256k.json | ||
a36610987c88bcbaacd92b3a1b3e534fc01f2701 optional_cell_colours/assets/appmek/models/item/chemical_storage_cell_4k.json | ||
57a347dda4111dfa6370c3dd27660d11834d07ca optional_cell_colours/assets/appmek/models/item/chemical_storage_cell_64k.json | ||
2dd0c89b1eb4b6caf41e67816153a1e0ae699656 optional_cell_colours/assets/arseng/models/item/source_storage_cell_16k.json | ||
09b810ea95ad8803fefe37dfe8ce723c3f121a16 optional_cell_colours/assets/arseng/models/item/source_storage_cell_1k.json | ||
c6908a5fb55b8e29e0883a3034578584a424df88 optional_cell_colours/assets/arseng/models/item/source_storage_cell_256k.json | ||
4bf75c0e1312882f9191705ef952315dceb72b01 optional_cell_colours/assets/arseng/models/item/source_storage_cell_4k.json | ||
fb3b49845aad8f62c51a08e81f473581a1adea27 optional_cell_colours/assets/arseng/models/item/source_storage_cell_64k.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
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
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
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.