Package net.minecraft.client.texture
Class NativeImageBackedTexture
java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.NativeImageBackedTexture
- All Implemented Interfaces:
AutoCloseable,DynamicTexture
@Environment(CLIENT)
public class NativeImageBackedTexture
extends AbstractTexture
implements DynamicTexture
- Mappings:
Namespace Name named net/minecraft/client/texture/NativeImageBackedTextureintermediary net/minecraft/class_1043official icb
-
Field Summary
FieldsFields inherited from class net.minecraft.client.texture.AbstractTexture
glTexture, glTextureView -
Constructor Summary
ConstructorsConstructorDescriptionNativeImageBackedTexture(String name, int width, int height, boolean useStb) NativeImageBackedTexture(Supplier<String> nameSupplier, int width, int height, boolean useStb) NativeImageBackedTexture(Supplier<String> nameSupplier, NativeImage image) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidcreateTexture(String name) private voidcreateTexture(Supplier<String> nameSupplier) getImage()voidsave(Identifier id, Path path) voidsetImage(NativeImage image) voidupload()Methods inherited from class net.minecraft.client.texture.AbstractTexture
getGlTexture, getGlTextureView, setClamp, setFilter, setUseMipmaps
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/texture/NativeImageBackedTexture;LOGGER:Lorg/slf4j/Logger;intermediary field_25794Lnet/minecraft/class_1043;field_25794:Lorg/slf4j/Logger;official cLicb;c:Lorg/slf4j/Logger;
-
image
- Mappings:
Namespace Name Mixin selector named imageLnet/minecraft/client/texture/NativeImageBackedTexture;image:Lnet/minecraft/client/texture/NativeImage;intermediary field_5200Lnet/minecraft/class_1043;field_5200:Lnet/minecraft/class_1011;official dLicb;d:Lfsy;
-
-
Constructor Details
-
NativeImageBackedTexture
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/util/function/Supplier;Lnet/minecraft/client/texture/NativeImage;)Vintermediary <init>Lnet/minecraft/class_1043;<init>(Ljava/util/function/Supplier;Lnet/minecraft/class_1011;)Vofficial <init>Licb;<init>(Ljava/util/function/Supplier;Lfsy;)V
-
NativeImageBackedTexture
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/lang/String;IIZ)Vintermediary <init>Lnet/minecraft/class_1043;<init>(Ljava/lang/String;IIZ)Vofficial <init>Licb;<init>(Ljava/lang/String;IIZ)V
-
NativeImageBackedTexture
public NativeImageBackedTexture(Supplier<String> nameSupplier, int width, int height, boolean useStb) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/util/function/Supplier;IIZ)Vintermediary <init>Lnet/minecraft/class_1043;<init>(Ljava/util/function/Supplier;IIZ)Vofficial <init>Licb;<init>(Ljava/util/function/Supplier;IIZ)V
-
-
Method Details
-
createTexture
- Mappings:
Namespace Name Mixin selector named createTextureLnet/minecraft/client/texture/NativeImageBackedTexture;createTexture(Ljava/util/function/Supplier;)Vintermediary method_71142Lnet/minecraft/class_1043;method_71142(Ljava/util/function/Supplier;)Vofficial aLicb;a(Ljava/util/function/Supplier;)V
-
createTexture
- Mappings:
Namespace Name Mixin selector named createTextureLnet/minecraft/client/texture/NativeImageBackedTexture;createTexture(Ljava/lang/String;)Vintermediary method_71141Lnet/minecraft/class_1043;method_71141(Ljava/lang/String;)Vofficial aLicb;a(Ljava/lang/String;)V
-
upload
public void upload()- Mappings:
Namespace Name Mixin selector named uploadLnet/minecraft/client/texture/NativeImageBackedTexture;upload()Vintermediary method_4524Lnet/minecraft/class_1043;method_4524()Vofficial cLicb;c()V
-
getImage
- Mappings:
Namespace Name Mixin selector named getImageLnet/minecraft/client/texture/NativeImageBackedTexture;getImage()Lnet/minecraft/client/texture/NativeImage;intermediary method_4525Lnet/minecraft/class_1043;method_4525()Lnet/minecraft/class_1011;official dLicb;d()Lfsy;
-
setImage
- Mappings:
Namespace Name Mixin selector named setImageLnet/minecraft/client/texture/NativeImageBackedTexture;setImage(Lnet/minecraft/client/texture/NativeImage;)Vintermediary method_4526Lnet/minecraft/class_1043;method_4526(Lnet/minecraft/class_1011;)Vofficial aLicb;a(Lfsy;)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractTexture
-
save
- Specified by:
savein interfaceDynamicTexture- Throws:
IOException- Mappings:
Namespace Name Mixin selector named saveLnet/minecraft/client/texture/DynamicTexture;save(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)Vintermediary method_49712Lnet/minecraft/class_8215;method_49712(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)Vofficial aLica;a(Lamj;Ljava/nio/file/Path;)V
-