Class RenderBlockEntityModelBase<T extends CyclopsBlockEntity,M extends net.minecraft.client.model.Model>

java.lang.Object
org.cyclops.cyclopscore.client.render.blockentity.RenderBlockEntityModel<T,M>
org.cyclops.cyclopscore.client.render.blockentity.RenderBlockEntityModelBase<T,M>
All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<T>

public class RenderBlockEntityModelBase<T extends CyclopsBlockEntity,M extends net.minecraft.client.model.Model> extends RenderBlockEntityModel<T,M>
General renderer for CyclopsBlockEntity with Model models.
  • Field Summary

    Fields inherited from class org.cyclops.cyclopscore.client.render.blockentity.RenderBlockEntityModel

    model
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderBlockEntityModelBase(M model, net.minecraft.client.resources.model.Material material)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    renderModel(T tile, M model, float partialTick, com.mojang.blaze3d.vertex.PoseStack matrixStack, com.mojang.blaze3d.vertex.VertexConsumer vertexBuilder, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay)
    Render the actual model, override this to change the way the model should be rendered.

    Methods inherited from class org.cyclops.cyclopscore.client.render.blockentity.RenderBlockEntityModel

    getMaterial, getModel, getRenderTypeGetter, postRotate, preRotate, render

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer

    getViewDistance, shouldRender, shouldRenderOffScreen
  • Constructor Details

    • RenderBlockEntityModelBase

      public RenderBlockEntityModelBase(M model, net.minecraft.client.resources.model.Material material)
  • Method Details

    • renderModel

      protected void renderModel(T tile, M model, float partialTick, com.mojang.blaze3d.vertex.PoseStack matrixStack, com.mojang.blaze3d.vertex.VertexConsumer vertexBuilder, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay)
      Description copied from class: RenderBlockEntityModel
      Render the actual model, override this to change the way the model should be rendered.
      Specified by:
      renderModel in class RenderBlockEntityModel<T extends CyclopsBlockEntity,M extends net.minecraft.client.model.Model>
      Parameters:
      tile - The tile entity.
      model - The base model.
      partialTick - The partial tick value.
      matrixStack - The matrix stack.
      vertexBuilder - The vertex builder.
      buffer - The render type buffer.
      combinedLight - The combined light value.
      combinedOverlay - The combined overlay value.