|
4 | 4 | import com.mojang.blaze3d.vertex.PoseStack;
|
5 | 5 | import com.mojang.blaze3d.vertex.VertexConsumer;
|
6 | 6 | import com.simibubi.create.AllBlocks;
|
7 |
| -import com.simibubi.create.AllPartialModels; |
8 | 7 | import com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock;
|
9 | 8 | import com.simibubi.create.content.trains.bogey.BogeyRenderer;
|
10 | 9 | import com.simibubi.create.content.trains.bogey.BogeySizes;
|
|
13 | 12 | import net.minecraft.core.Direction;
|
14 | 13 | import net.minecraft.nbt.CompoundTag;
|
15 | 14 |
|
| 15 | +import static com.railwayteam.railways.registry.CRBlockPartials.LONG_SHAFTED_WHEELS; |
16 | 16 | import static com.railwayteam.railways.registry.CRBlockPartials.Y25_FRAME;
|
17 | 17 |
|
18 | 18 | public class Y25BogeyRenderer extends BogeyRenderer {
|
19 | 19 | @Override
|
20 | 20 | public void initialiseContraptionModelData(MaterialManager materialManager, CarriageBogey carriageBogey) {
|
21 |
| - createModelInstance(materialManager, AllPartialModels.SMALL_BOGEY_WHEELS, 2); |
| 21 | + createModelInstance(materialManager, LONG_SHAFTED_WHEELS, 2); |
22 | 22 | createModelInstance(materialManager, Y25_FRAME);
|
23 | 23 | createModelInstance(materialManager, AllBlocks.SHAFT.getDefaultState()
|
24 | 24 | .setValue(ShaftBlock.AXIS, Direction.Axis.Z), 2);
|
@@ -48,7 +48,7 @@ public void render(CompoundTag bogeyData, float wheelAngle, PoseStack ms, int li
|
48 | 48 | getTransform(Y25_FRAME, ms, inInstancedContraption)
|
49 | 49 | .render(ms, light, vb);
|
50 | 50 |
|
51 |
| - BogeyModelData[] wheels = getTransform(AllPartialModels.SMALL_BOGEY_WHEELS, ms, inInstancedContraption, 2); |
| 51 | + BogeyModelData[] wheels = getTransform(LONG_SHAFTED_WHEELS, ms, inInstancedContraption, 2); |
52 | 52 | for (int side : Iterate.positiveAndNegative) {
|
53 | 53 | if (!inInstancedContraption)
|
54 | 54 | ms.pushPose();
|
|
0 commit comments