Class SoyuzLauncherRenderer
java.lang.Object
com.hbm_m.client.render.AbstractPartBasedRenderer<SoyuzLauncherBlockEntity,SoyuzLauncherBakedModel>
com.hbm_m.client.render.implementations.SoyuzLauncherRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<SoyuzLauncherBlockEntity>
public class SoyuzLauncherRenderer
extends AbstractPartBasedRenderer<SoyuzLauncherBlockEntity,SoyuzLauncherBakedModel>
BER for the Soyuz launch tower: renders the 6 static OBJ parts (Table,
TowerBase, Tower, SupportBase, Support, Legs) via the VBO path (see
SoyuzLauncherBakedModel for why baked-quad world rendering is
skipped), plus:
- the mounted rocket (
SoyuzRocketBakedModel's "Rocket" part) whilehasRocket()is true - the Tower/Support "arm" pivot animation, matching legacy
SoyuzLauncherPronter.prontLauncher(rot)'sglTranslate -> glRotate -> glTranslatedance
-
Constructor Summary
ConstructorsConstructorDescriptionSoyuzLauncherRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context ctx) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.core.Directionprotected SoyuzLauncherBakedModelgetModelType(net.minecraft.client.resources.model.BakedModel rawModel) protected voidrenderParts(SoyuzLauncherBlockEntity be, SoyuzLauncherBakedModel model, LegacyAnimator animator, float partialTick, int packedLight, int packedOverlay, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource) Methods inherited from class com.hbm_m.client.render.AbstractPartBasedRenderer
getCurrentModelViewMatrix, getMinecraft, getModel, isInViewFrustum, render, setupBlockTransform, shouldRenderOffScreen, unwrapFabricForwardingModelsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender
-
Constructor Details
-
SoyuzLauncherRenderer
public SoyuzLauncherRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context ctx)
-
-
Method Details
-
getModelType
protected SoyuzLauncherBakedModel getModelType(net.minecraft.client.resources.model.BakedModel rawModel) - Specified by:
getModelTypein classAbstractPartBasedRenderer<SoyuzLauncherBlockEntity,SoyuzLauncherBakedModel>
-
getFacing
- Specified by:
getFacingin classAbstractPartBasedRenderer<SoyuzLauncherBlockEntity,SoyuzLauncherBakedModel>
-
renderParts
protected void renderParts(SoyuzLauncherBlockEntity be, SoyuzLauncherBakedModel model, LegacyAnimator animator, float partialTick, int packedLight, int packedOverlay, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource) - Specified by:
renderPartsin classAbstractPartBasedRenderer<SoyuzLauncherBlockEntity,SoyuzLauncherBakedModel>
-