11package org.valkyrienskies.clockwork
22
3+ import com.simibubi.create.api.behaviour.display.DisplaySource.displaySource
4+
35import com.simibubi.create.AllBlocks
46import com.simibubi.create.AllSpriteShifts
57import com.simibubi.create.AllTags
@@ -128,6 +130,7 @@ object ClockworkBlocks {
128130 }
129131 .transform(axeOrPickaxe())
130132 // .transform(BuilderTransformersClockwork.bearing("propeller", "gearbox"))
133+ .transform(displaySource(ClockworkDisplaySources .COPTER_BEARING ))
131134 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
132135 .addLayer { Supplier { RenderType .cutoutMipped() } }
133136 .properties { it.noOcclusion() }
@@ -173,6 +176,7 @@ object ClockworkBlocks {
173176 }
174177 .initialProperties { SharedProperties .stone() }
175178 .transform(axeOrPickaxe())
179+ .transform(displaySource(ClockworkDisplaySources .PHYS_BEARING ))
176180 .properties {
177181 it.lightLevel { state: BlockState ? -> PhysBearingBlock .getLight(state) }
178182 }
@@ -194,6 +198,7 @@ object ClockworkBlocks {
194198 }
195199 .transform(axeOrPickaxe())
196200 .transform(ClockworkStress .setImpact(4.0 ))
201+ .transform(displaySource(ClockworkDisplaySources .FLAP_BEARING ))
197202 .addLayer { Supplier { RenderType .cutout() } }
198203 .properties { it.noOcclusion() }
199204 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
@@ -210,6 +215,7 @@ object ClockworkBlocks {
210215 .transform(axeOrPickaxe())
211216 // .transform(flapbearing())
212217 .transform(ClockworkStress .setImpact(4.0 ))
218+ .transform(displaySource(ClockworkDisplaySources .FLAP_BEARING ))
213219 .addLayer { Supplier { RenderType .cutout() } }
214220 .properties { it.noOcclusion() }
215221 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
@@ -225,6 +231,7 @@ object ClockworkBlocks {
225231 }
226232 .initialProperties { SharedProperties .stone() }
227233 .transform(axeOrPickaxe())
234+ .transform(displaySource(ClockworkDisplaySources .ALT_METER ))
228235 .properties { it.noOcclusion() }
229236 .addLayer { Supplier { RenderType .cutout() } }
230237 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
@@ -438,6 +445,7 @@ object ClockworkBlocks {
438445 .item()
439446 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
440447 .transform(customItemModel())
448+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
441449 .register()
442450
443451 @JvmField
@@ -450,6 +458,7 @@ object ClockworkBlocks {
450458 }
451459 .initialProperties { SharedProperties .netheriteMetal() }
452460 .addLayer { Supplier { RenderType .cutout() } }
461+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
453462 .properties { it.noOcclusion() }
454463 .item()
455464 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
@@ -470,6 +479,7 @@ object ClockworkBlocks {
470479 .initialProperties { SharedProperties .netheriteMetal() }
471480 .addLayer { Supplier { RenderType .cutout() } }
472481 .properties { it.noOcclusion() }
482+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
473483 // .onRegister(connectedTextures { DuctTankCTBehaviour(ClockworkSpriteShifts.DUCT_TANK, ClockworkSpriteShifts.DUCT_TANK_TOP, AllSpriteShifts.FLUID_TANK_INNER) })
474484 .onRegister(ClockworkRegistrate .blockModel { NonNullFunction <BakedModel , BakedModel > { originalModel: BakedModel -> DuctTankModel (originalModel) } })
475485 .item()
@@ -488,6 +498,7 @@ object ClockworkBlocks {
488498 .initialProperties { SharedProperties .netheriteMetal() }
489499 .addLayer { Supplier { RenderType .cutout() } }
490500 .transform(ClockworkStress .setImpact(4.0 ))
501+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
491502 .properties { it.noOcclusion() }
492503 .item()
493504 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
@@ -559,6 +570,7 @@ object ClockworkBlocks {
559570 .addLayer { Supplier { RenderType .cutout() } }
560571 .properties { it.noOcclusion() }
561572 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
573+ .transform(displaySource(ClockworkDisplaySources .GAS_NOZZLE ))
562574 .item()
563575 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
564576 .model(AssetLookup .customBlockItemModel(" gas_nozzle" ))
@@ -576,6 +588,7 @@ object ClockworkBlocks {
576588 .addLayer { Supplier { RenderType .cutout() } }
577589 .properties { it.noOcclusion() }
578590 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
591+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
579592 .item()
580593 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
581594 .build()
@@ -592,6 +605,7 @@ object ClockworkBlocks {
592605 .addLayer { Supplier { RenderType .cutout() } }
593606 .properties { it.noOcclusion() }
594607 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
608+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
595609 .item()
596610 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
597611 .build()
@@ -608,6 +622,7 @@ object ClockworkBlocks {
608622 .addLayer { Supplier { RenderType .cutout() } }
609623 .properties { it.noOcclusion() }
610624 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
625+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
611626 .item()
612627 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
613628 .build()
@@ -623,6 +638,7 @@ object ClockworkBlocks {
623638 .properties { it.noOcclusion() }
624639 .addLayer { Supplier { RenderType .cutout() } }
625640 .properties { it.noOcclusion() }
641+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
626642 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
627643 .item()
628644 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
@@ -639,6 +655,7 @@ object ClockworkBlocks {
639655 .properties { it.noOcclusion() }
640656 .addLayer { Supplier { RenderType .cutout() } }
641657 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
658+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
642659 .item()
643660 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
644661 .build()
@@ -654,6 +671,7 @@ object ClockworkBlocks {
654671 .properties { it.noOcclusion() }
655672 .addLayer { Supplier { RenderType .cutout() } }
656673 .properties { it.noOcclusion() }
674+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
657675 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
658676 .item()
659677 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
@@ -668,6 +686,7 @@ object ClockworkBlocks {
668686 .initialProperties { SharedProperties .netheriteMetal() }
669687 .transform(axeOrPickaxe())
670688 .properties { it.noOcclusion() }
689+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
671690 .addLayer { Supplier { RenderType .cutout() } }
672691 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
673692 .item()
@@ -684,6 +703,7 @@ object ClockworkBlocks {
684703 .transform(axeOrPickaxe())
685704 .properties { it.noOcclusion() }
686705 .addLayer { Supplier { RenderType .cutout() } }
706+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
687707 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
688708 .item()
689709 // .tab(ClockworkMod.BASE_CREATIVE_TABINFO)
@@ -699,6 +719,7 @@ object ClockworkBlocks {
699719 .initialProperties { SharedProperties .softMetal() }
700720 .transform(axeOrPickaxe())
701721 .properties { it.noOcclusion() }
722+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
702723 .addLayer { Supplier { RenderType .cutout() } }
703724 .tag(AllTags .AllBlockTags .SAFE_NBT .tag)
704725 .register()
@@ -714,6 +735,7 @@ object ClockworkBlocks {
714735 .initialProperties { SharedProperties .netheriteMetal() }
715736 .addLayer { Supplier { RenderType .cutout() } }
716737 .properties { it.noOcclusion() }
738+ .transform(displaySource(ClockworkDisplaySources .KNODE ))
717739 .item()
718740 .tab(ClockworkMod .GAS_CREATIVE_TABINFO )
719741 .build()
0 commit comments