Class TranslucentItemBuffers

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.gui.TranslucentItemBuffers

public final class TranslucentItemBuffers extends Object
The see-through items of ItemOpacityRenderer: while the shader color's alpha is under 1, a GUI item draws into these buffers, which hand it a translucent render type on the same texture in place of a solid or cut-out one, so the alpha shows (GuiGraphicsMixin; the render type's texture is reached through the access widener).
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.renderer.MultiBufferSource
    wrap(net.minecraft.client.renderer.MultiBufferSource buffers)
    The buffers an item is drawn into: see-through ones while the shader color is faded, else these.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • wrap

      public static net.minecraft.client.renderer.MultiBufferSource wrap(net.minecraft.client.renderer.MultiBufferSource buffers)
      The buffers an item is drawn into: see-through ones while the shader color is faded, else these.