Class NinePatchTextureRendererImpl

java.lang.Object
io.github.cottonmc.cotton.gui.impl.client.NinePatchTextureRendererImpl
All Implemented Interfaces:
AutoCloseable, juuxel.libninepatch.TextureRenderer<net.minecraft.util.Identifier>

public final class NinePatchTextureRendererImpl extends Object implements juuxel.libninepatch.TextureRenderer<net.minecraft.util.Identifier>, AutoCloseable
An implementation of LibNinePatch's TextureRenderer for identifiers.
  • Field Summary

    Fields inherited from interface juuxel.libninepatch.TextureRenderer

    STDOUT_DEBUG
  • Method Summary

    Modifier and Type
    Method
    Description
    bind​(net.minecraft.client.util.math.MatrixStack matrices)
     
    void
     
    void
    draw​(net.minecraft.util.Identifier texture, int x, int y, int width, int height, float u1, float v1, float u2, float v2)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface juuxel.libninepatch.TextureRenderer

    draw
  • Method Details

    • bind

      public static NinePatchTextureRendererImpl bind(net.minecraft.client.util.math.MatrixStack matrices)
    • draw

      public void draw(net.minecraft.util.Identifier texture, int x, int y, int width, int height, float u1, float v1, float u2, float v2)
      Specified by:
      draw in interface juuxel.libninepatch.TextureRenderer<net.minecraft.util.Identifier>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable