Class EntityDisplayStateRenderer

java.lang.Object
net.darkhax.botanypots.common.api.data.display.render.DisplayRenderer<EntityDisplayState>
net.darkhax.botanypots.common.impl.data.display.renderer.EntityDisplayStateRenderer

public final class EntityDisplayStateRenderer extends DisplayRenderer<EntityDisplayState>
  • Field Details

  • Constructor Details

    • EntityDisplayStateRenderer

      public EntityDisplayStateRenderer()
  • Method Details

    • render

      public float render(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, EntityDisplayState displayState, 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 cropScale, float heightOffset)
      Description copied from class: DisplayRenderer
      Renders the display in the world.
      Specified by:
      render in class DisplayRenderer<EntityDisplayState>
      Parameters:
      context - Context provided when rendering a block entity.
      displayState - The display to render.
      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.
      cropScale - The scale based on current growth progress.
      heightOffset - A height offset used to make displays stack perfectly on top of each other.
      Returns:
      The new height offset for the next display.