|
9 | 9 | import com.gregtechceu.gtceu.utils.GTUtil; |
10 | 10 |
|
11 | 11 | import com.lowdragmc.lowdraglib.Platform; |
| 12 | +import com.lowdragmc.lowdraglib.client.renderer.IRenderer; |
12 | 13 |
|
13 | 14 | import net.minecraft.network.chat.Component; |
14 | 15 | import net.minecraft.resources.ResourceLocation; |
@@ -36,13 +37,21 @@ public class CoilBlock extends ActiveBlock { |
36 | 37 |
|
37 | 38 | public ICoilType coilType; |
38 | 39 |
|
| 40 | + //@formatter:off |
39 | 41 | public CoilBlock(Properties properties, ICoilType coilType) { |
40 | | - super(properties, Platform.isClient() ? new TextureOverrideRenderer(new ResourceLocation("block/cube_all"), |
| 42 | + this(properties, coilType, Platform.isClient() ? new TextureOverrideRenderer(new ResourceLocation("block/cube_all"), |
41 | 43 | Map.of("all", coilType.getTexture())) : null, |
42 | 44 | Platform.isClient() ? new TextureOverrideRenderer(GTCEu.id("block/cube_2_layer/all"), |
43 | 45 | Map.of("bot_all", coilType.getTexture(), |
44 | 46 | "top_all", new ResourceLocation(coilType.getTexture() + "_bloom"))) : |
45 | 47 | null); |
| 48 | + } |
| 49 | + //@formatter:on |
| 50 | + |
| 51 | + @SuppressWarnings("DataFlowIssue") |
| 52 | + public CoilBlock(Properties properties, ICoilType coilType, |
| 53 | + @Nullable IRenderer renderer, @Nullable IRenderer activeRenderer) { |
| 54 | + super(properties, renderer, activeRenderer); |
46 | 55 | this.coilType = coilType; |
47 | 56 | } |
48 | 57 |
|
|
0 commit comments