net.minecraft.client.texture

public record Texture

implements TextureWithSampler

net.minecraft.client.renderer.texture.TextureResources
net.minecraft.class_1_1777
net.minecraft.client.texture.Texture

Field summary

Modifier and TypeField
private final GpuTexture
texture
comp_1_1959
texture
private final GpuTextureView
textureView
comp_1_1944
textureView
private final GpuSampler
sampler
comp_1_1943
sampler
private final IntUnaryOperator
dumpModifier
comp_1_1958
dumpModifier

Constructor summary

ModifierConstructor
public (GpuTexture texture, GpuTextureView textureView, GpuSampler sampler)
public (GpuTexture texture, GpuTextureView textureView, GpuSampler sampler, IntUnaryOperator dumpModifier)

Method summary

Modifier and TypeMethod
public void
dumpContents(Identifier selfId, Path dir)
method_1_11249(class_2960 arg0, Path arg1)
saveTexture(Identifier id, Path directory)
public static Texture
from2dImage(Supplier<String> label, NativeImage image)
method_1_11250(Supplier<String> arg0, class_1011 arg1)
create(Supplier<String> labelGetter, NativeImage image)
public static Texture
from2dImage(Supplier<String> label, NativeImage image, GpuSampler sampler)
method_1_11251(Supplier<String> arg0, class_1011 arg1, class_12137 arg2)
create(Supplier<String> labelGetter, NativeImage image, GpuSampler sampler)
public void
close()
method_1_11248()
doClose()
public GpuTexture
texture()
comp_1_1959()
texture()
public GpuTextureView
textureView()
comp_1_1944()
textureView()
public GpuSampler
sampler()
comp_1_1943()
sampler()
public IntUnaryOperator
dumpModifier()
comp_1_1958()
dumpModifier()
private static int
lambda$new$0(int arg0)
method_1_11252(int arg0)
method_1_11252(int color)