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 TypeMethodDescriptionstatic NinePatchTextureRendererImplbind(net.minecraft.client.util.math.MatrixStack matrices)voidclose()voiddraw(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, waitMethods 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:
drawin interfacejuuxel.libninepatch.TextureRenderer<net.minecraft.util.Identifier>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-