Interface IMultiblockRenderHelper
- All Known Implementing Classes:
GeoMultiblockRenderer
Deprecated.
A helper interface for making previewable multiblock entities.
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.mojang.blaze3d.vertex.VertexConsumergetConsumer(net.minecraft.client.renderer.MultiBufferSource buffer, IMultiBlockEntity blockEntity, net.minecraft.client.resources.model.Material materialBase, net.minecraft.client.resources.model.Material materialSecondary, net.minecraft.world.level.block.Block blockSecondary) Deprecated.For when you use the same BER for 2 different blocks and just swap out the textures.default net.minecraft.client.renderer.RenderTypegetRenderType(PreviewMode previewMode, net.minecraft.resources.ResourceLocation texture) Deprecated.default net.minecraft.client.renderer.RenderTypegetRenderType(PreviewMode previewMode, net.minecraft.resources.ResourceLocation texture, net.minecraft.client.renderer.RenderType defaultRenderType) Deprecated.default Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> getRenderTypeFunction(PreviewMode previewMode) Deprecated.Returns a translucent RenderType for when rendered as a preview.default Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> getRenderTypeFunction(PreviewMode previewMode, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> defaultRenderType) Deprecated.default net.minecraft.world.level.Levellevel()Deprecated.A somewhat cleaner way to get the leveldefault voidrender(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, int r, int g, int b, int alpha, PreviewMode previewMode) Deprecated.default voidrender(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, int color, PreviewMode previewMode) Deprecated.default voidrender(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, PreviewMode previewMode) Deprecated.Should be used instead ofModelPart.render(PoseStack, VertexConsumer, int, int)
-
Method Details
-
getRenderTypeFunction
default Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> getRenderTypeFunction(PreviewMode previewMode) Deprecated.Returns a translucent RenderType for when rendered as a preview. Use instead of specifying the RenderType directly. -
getRenderTypeFunction
default Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> getRenderTypeFunction(PreviewMode previewMode, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> defaultRenderType) Deprecated. -
getRenderType
default net.minecraft.client.renderer.RenderType getRenderType(PreviewMode previewMode, net.minecraft.resources.ResourceLocation texture) Deprecated. -
getRenderType
default net.minecraft.client.renderer.RenderType getRenderType(PreviewMode previewMode, net.minecraft.resources.ResourceLocation texture, net.minecraft.client.renderer.RenderType defaultRenderType) Deprecated. -
getConsumer
default com.mojang.blaze3d.vertex.VertexConsumer getConsumer(net.minecraft.client.renderer.MultiBufferSource buffer, IMultiBlockEntity blockEntity, net.minecraft.client.resources.model.Material materialBase, net.minecraft.client.resources.model.Material materialSecondary, net.minecraft.world.level.block.Block blockSecondary) Deprecated.For when you use the same BER for 2 different blocks and just swap out the textures.It's necessary to make multiple VertexConsumers instead of just 1, otherwise the RenderTypes won't apply correctly
-
level
default net.minecraft.world.level.Level level()Deprecated.A somewhat cleaner way to get the level -
render
default void render(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, PreviewMode previewMode) Deprecated.Should be used instead ofModelPart.render(PoseStack, VertexConsumer, int, int)Applies the correct color + alpha according to the supplied PreviewMode
-
render
default void render(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, int r, int g, int b, int alpha, PreviewMode previewMode) Deprecated. -
render
default void render(net.minecraft.client.model.geom.ModelPart modelPart, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, int color, PreviewMode previewMode) Deprecated.
-