Class TexturedCubeStateRenderer


public final class TexturedCubeStateRenderer extends AbstractDisplayRenderer<TexturedCubeDisplayState,RenderOptions>
  • Field Details

  • Constructor Details

    • TexturedCubeStateRenderer

      public TexturedCubeStateRenderer()
  • Method Details

    • getRenderOptions

      public RenderOptions getRenderOptions(TexturedCubeDisplayState display)
      Description copied from class: AbstractDisplayRenderer
      Gets the render options to apply from the display.
      Specified by:
      getRenderOptions in class AbstractDisplayRenderer<TexturedCubeDisplayState,RenderOptions>
      Parameters:
      display - The display to render.
      Returns:
      The options to use when rendering.
    • render

      public void render(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, TexturedCubeDisplayState display, RenderOptions renderOptions, com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, float tickDelta, net.minecraft.client.renderer.MultiBufferSource bufferSource, int light, int overlay, BotanyPotBlockEntity pot, float progress, float growthScale, float heightOffset)
      Description copied from class: AbstractDisplayRenderer
      Renders the display in the world.
      Specified by:
      render in class AbstractDisplayRenderer<TexturedCubeDisplayState,RenderOptions>
      Parameters:
      context - Context provided when rendering a block entity.
      display - The display to render.
      renderOptions - User defined rendering options used to configure the renderer.
      pose - The pose stack for the renderer.
      level - The current level, will always be a client level.
      pos - The position of te block being rendered.
      tickDelta - The delta between frames.
      bufferSource - Buffer source for rendering.
      light - Packed light of the block.
      overlay - Packed overlay of the block.
      pot - The pot block entity.
      progress - The growth progress of the crop.
      growthScale - The scale based on current growth progress.
      heightOffset - A height offset used to make displays stack perfectly on top of each other.