Interface IChargingStationRenderOverride

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IChargingStationRenderOverride
You can register an implementation of this via IClientRegistry.registerRenderOverride(ItemLike, IChargingStationRenderOverride) to provide custom rendering of items in the Charging Station.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onRender(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.item.ItemStack renderedStack, float partialTicks, net.minecraft.client.renderer.MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn)
    Called when the item is about to be rendered.
  • Method Details

    • onRender

      boolean onRender(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.item.ItemStack renderedStack, float partialTicks, net.minecraft.client.renderer.MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn)
      Called when the item is about to be rendered. You can modify the pose stack here (no need to push or pop it - that is handled by the caller) and return true to proceed with the default rendering (which renders the item using a FIXED transform type, like an item frame does), or you can do your own rendering and cancel the default rendering by returning false.
      Parameters:
      poseStack - the pose stack
      renderedStack - the item to be rendered
      partialTicks - partial ticks
      bufferIn - the buffer source
      combinedLightIn - light level
      combinedOverlayIn - overlay
      Returns:
      true to use the standard item renderer for charging stations, false to cancel default rendering