From b70c3491f4b8f1d5f65b7c0000f83ddb7c6f38f4 Mon Sep 17 00:00:00 2001 From: Partonetrain Date: Thu, 23 Jan 2025 13:19:24 -0600 Subject: [PATCH] some item models --- .../quark/datagen/QuarkItemModelProvider.java | 57 ++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/violetmoon/quark/datagen/QuarkItemModelProvider.java b/src/main/java/org/violetmoon/quark/datagen/QuarkItemModelProvider.java index 29446b45b..0dc823939 100644 --- a/src/main/java/org/violetmoon/quark/datagen/QuarkItemModelProvider.java +++ b/src/main/java/org/violetmoon/quark/datagen/QuarkItemModelProvider.java @@ -1,9 +1,12 @@ package org.violetmoon.quark.datagen; import net.minecraft.data.PackOutput; +import net.minecraft.world.level.block.Block; import net.neoforged.neoforge.client.model.generators.ItemModelProvider; import net.neoforged.neoforge.common.data.ExistingFileHelper; import org.violetmoon.quark.base.Quark; +import org.violetmoon.quark.content.automation.module.ChuteModule; +import org.violetmoon.quark.content.building.module.*; import org.violetmoon.quark.content.tools.module.AbacusModule; public class QuarkItemModelProvider extends ItemModelProvider { @@ -14,8 +17,60 @@ public QuarkItemModelProvider(PackOutput packOutput, ExistingFileHelper existing @Override protected void registerModels() { //Automation + simpleBlockItem(ChuteModule.chute); + //Building + simpleBlockItem(CelebratoryLampsModule.stone_lamp); + simpleBlockItem(CelebratoryLampsModule.stone_brick_lamp); + for(Block block : CompressedBlocksModule.blocks) + simpleBlockItem(block); + for(Block block : FramedGlassModule.glassBlocks) + simpleBlockItem(block); + simpleBlockItem(GoldBarsModule.gold_bars); + for(Block block : HedgesModule.hedges) + simpleBlockItem(block); + for(Block block : HollowLogsModule.hollowLogs) + simpleBlockItem(block); + simpleBlockItem(GrateModule.grate); + for(Block block : JapanesePaletteModule.blocks) + simpleBlockItem(block); + for(Block block : LeafCarpetModule.carpets) + simpleBlockItem(block); + for(Block block : MidoriModule.blocks) + simpleBlockItem(block); + for(Block block : MoreMudBlocksModule.blocks) + simpleBlockItem(block); + //MorePottedPlants shouldn't need item models + simpleBlockItem(NetherBrickFenceGateModule.netherBrickFenceGate); + for(Block block : RainbowLampsModule.lamps) + simpleBlockItem(block); + for(Block block : RawMetalBricksModule.blocks) + simpleBlockItem(block); + simpleBlockItem(RopeModule.rope); + //ShearVines shouldn't need item models + for(Block block : ShinglesModule.blocks) + simpleBlockItem(block); + for(Block block : StoolsModule.stools) + simpleBlockItem(block); + simpleBlockItem(SturdyStoneModule.sturdy_stone); + simpleBlockItem(ThatchModule.thatch); + for(Block block : VariantBookshelvesModule.variantBookshelves) + simpleBlockItem(block); + for(Block block : VariantChestsModule.regularChests) + simpleBlockItem(block); + for(Block block : VariantChestsModule.trappedChests) + simpleBlockItem(block); + simpleBlockItem(VariantFurnacesModule.deepslateFurnace); + simpleBlockItem(VariantFurnacesModule.blackstoneFurnace); + for(Block block : VariantLaddersModule.variantLadders) + simpleBlockItem(block); + for(Block block : VerticalPlanksModule.blocks) + simpleBlockItem(block); + for(Block block : VerticalSlabsModule.blocks) + simpleBlockItem(block); //untested + for(Block block : WoodenPostsModule.blocks) + simpleBlockItem(block); //etc //Tools - basicItem(AbacusModule.abacus); + basicItem(AbacusModule.abacus); //todo all 48 models + unset } }