Package net.minecraft.client.texture
Enum NativeImage.Format
- All Implemented Interfaces:
Serializable
,Comparable<NativeImage.Format>
,java.lang.constant.Constable
- Enclosing class:
- NativeImage
@Environment(CLIENT) public static enum NativeImage.Format extends Enum<NativeImage.Format>
- Mappings:
Namespace Name official doh$a
intermediary net/minecraft/class_1011$class_1012
named net/minecraft/client/texture/NativeImage$Format
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ABGR
BGR
LUMINANCE
LUMINANCE_ALPHA
-
Field Summary
Fields Modifier and Type Field Description private int
alphaChannelOffset
private int
blueOffset
private int
channelCount
private int
greenOffset
private boolean
hasAlpha
private boolean
hasBlue
private boolean
hasGreen
private boolean
hasLuminance
private boolean
hasRed
private int
luminanceChannelOffset
private int
pixelDataFormat
private int
redOffset
private boolean
writeable
-
Constructor Summary
Constructors Modifier Constructor Description private
Format(int channels, int glFormat, boolean hasRed, boolean hasGreen, boolean hasBlue, boolean hasLuminance, boolean hasAlpha, int redOffset, int greenOffset, int blueOffset, int luminanceOffset, int alphaOffset, boolean writeable)
-
Method Summary
Modifier and Type Method Description int
getAlphaChannelOffset()
int
getChannelCount()
private static NativeImage.Format
getFormat(int glFormat)
int
getOpacityOffset()
int
getPixelDataFormat()
boolean
hasAlphaChannel()
boolean
hasOpacityChannel()
boolean
isWriteable()
boolean
method_35628()
boolean
method_35629()
boolean
method_35630()
boolean
method_35631()
int
method_35632()
int
method_35633()
int
method_35634()
int
method_35635()
boolean
method_35636()
boolean
method_35637()
boolean
method_35638()
int
method_35639()
int
method_35640()
int
method_35641()
void
setPackAlignment()
void
setUnpackAlignment()
static NativeImage.Format
valueOf(String name)
Returns the enum constant of this type with the specified name.static NativeImage.Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABGR
- Mappings:
Namespace Name Mixin selector official a
Ldoh$a;a:Ldoh$a;
intermediary field_4997
Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;
named ABGR
Lnet/minecraft/client/texture/NativeImage$Format;ABGR:Lnet/minecraft/client/texture/NativeImage$Format;
-
BGR
- Mappings:
Namespace Name Mixin selector official b
Ldoh$a;b:Ldoh$a;
intermediary field_5001
Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;
named BGR
Lnet/minecraft/client/texture/NativeImage$Format;BGR:Lnet/minecraft/client/texture/NativeImage$Format;
-
LUMINANCE_ALPHA
- Mappings:
Namespace Name Mixin selector official c
Ldoh$a;c:Ldoh$a;
intermediary field_5002
Lnet/minecraft/class_1011$class_1012;field_5002:Lnet/minecraft/class_1011$class_1012;
named LUMINANCE_ALPHA
Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE_ALPHA:Lnet/minecraft/client/texture/NativeImage$Format;
-
LUMINANCE
- Mappings:
Namespace Name Mixin selector official d
Ldoh$a;d:Ldoh$a;
intermediary field_4998
Lnet/minecraft/class_1011$class_1012;field_4998:Lnet/minecraft/class_1011$class_1012;
named LUMINANCE
Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE:Lnet/minecraft/client/texture/NativeImage$Format;
-
-
Field Details
-
channelCount
private final int channelCount- Mappings:
Namespace Name Mixin selector official e
Ldoh$a;e:I
intermediary field_4994
Lnet/minecraft/class_1011$class_1012;field_4994:I
named channelCount
Lnet/minecraft/client/texture/NativeImage$Format;channelCount:I
-
pixelDataFormat
private final int pixelDataFormat- Mappings:
Namespace Name Mixin selector official f
Ldoh$a;f:I
intermediary field_4993
Lnet/minecraft/class_1011$class_1012;field_4993:I
named pixelDataFormat
Lnet/minecraft/client/texture/NativeImage$Format;pixelDataFormat:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector official g
Ldoh$a;g:Z
intermediary field_5005
Lnet/minecraft/class_1011$class_1012;field_5005:Z
named hasRed
Lnet/minecraft/client/texture/NativeImage$Format;hasRed:Z
-
hasGreen
private final boolean hasGreen- Mappings:
Namespace Name Mixin selector official h
Ldoh$a;h:Z
intermediary field_5004
Lnet/minecraft/class_1011$class_1012;field_5004:Z
named hasGreen
Lnet/minecraft/client/texture/NativeImage$Format;hasGreen:Z
-
hasBlue
private final boolean hasBlue- Mappings:
Namespace Name Mixin selector official i
Ldoh$a;i:Z
intermediary field_5003
Lnet/minecraft/class_1011$class_1012;field_5003:Z
named hasBlue
Lnet/minecraft/client/texture/NativeImage$Format;hasBlue:Z
-
hasLuminance
private final boolean hasLuminance- Mappings:
Namespace Name Mixin selector official j
Ldoh$a;j:Z
intermediary field_5000
Lnet/minecraft/class_1011$class_1012;field_5000:Z
named hasLuminance
Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance:Z
-
hasAlpha
private final boolean hasAlpha- Mappings:
Namespace Name Mixin selector official k
Ldoh$a;k:Z
intermediary field_4999
Lnet/minecraft/class_1011$class_1012;field_4999:Z
named hasAlpha
Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha:Z
-
redOffset
private final int redOffset- Mappings:
Namespace Name Mixin selector official l
Ldoh$a;l:I
intermediary field_5010
Lnet/minecraft/class_1011$class_1012;field_5010:I
named redOffset
Lnet/minecraft/client/texture/NativeImage$Format;redOffset:I
-
greenOffset
private final int greenOffset- Mappings:
Namespace Name Mixin selector official m
Ldoh$a;m:I
intermediary field_5009
Lnet/minecraft/class_1011$class_1012;field_5009:I
named greenOffset
Lnet/minecraft/client/texture/NativeImage$Format;greenOffset:I
-
blueOffset
private final int blueOffset- Mappings:
Namespace Name Mixin selector official n
Ldoh$a;n:I
intermediary field_5008
Lnet/minecraft/class_1011$class_1012;field_5008:I
named blueOffset
Lnet/minecraft/client/texture/NativeImage$Format;blueOffset:I
-
luminanceChannelOffset
private final int luminanceChannelOffset- Mappings:
Namespace Name Mixin selector official o
Ldoh$a;o:I
intermediary field_5007
Lnet/minecraft/class_1011$class_1012;field_5007:I
named luminanceChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;luminanceChannelOffset:I
-
alphaChannelOffset
private final int alphaChannelOffset- Mappings:
Namespace Name Mixin selector official p
Ldoh$a;p:I
intermediary field_5006
Lnet/minecraft/class_1011$class_1012;field_5006:I
named alphaChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;alphaChannelOffset:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector official q
Ldoh$a;q:Z
intermediary field_4996
Lnet/minecraft/class_1011$class_1012;field_4996:Z
named writeable
Lnet/minecraft/client/texture/NativeImage$Format;writeable:Z
-
-
Constructor Details
-
Format
private Format(int channels, int glFormat, boolean hasRed, boolean hasGreen, boolean hasBlue, boolean hasLuminance, boolean hasAlpha, int redOffset, int greenOffset, int blueOffset, int luminanceOffset, int alphaOffset, boolean writeable)- Mappings:
Namespace Name Mixin selector official <init>
Ldoh$a;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
intermediary <init>
Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
named <init>
Lnet/minecraft/client/texture/NativeImage$Format;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getChannelCount
public int getChannelCount()- Mappings:
Namespace Name Mixin selector official a
Ldoh$a;a()I
intermediary method_4335
Lnet/minecraft/class_1011$class_1012;method_4335()I
named getChannelCount
Lnet/minecraft/client/texture/NativeImage$Format;getChannelCount()I
-
setPackAlignment
public void setPackAlignment()- Mappings:
Namespace Name Mixin selector official b
Ldoh$a;b()V
intermediary method_4339
Lnet/minecraft/class_1011$class_1012;method_4339()V
named setPackAlignment
Lnet/minecraft/client/texture/NativeImage$Format;setPackAlignment()V
-
setUnpackAlignment
public void setUnpackAlignment()- Mappings:
Namespace Name Mixin selector official c
Ldoh$a;c()V
intermediary method_4340
Lnet/minecraft/class_1011$class_1012;method_4340()V
named setUnpackAlignment
Lnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()V
-
getPixelDataFormat
public int getPixelDataFormat()- Mappings:
Namespace Name Mixin selector official d
Ldoh$a;d()I
intermediary method_4333
Lnet/minecraft/class_1011$class_1012;method_4333()I
named getPixelDataFormat
Lnet/minecraft/client/texture/NativeImage$Format;getPixelDataFormat()I
-
method_35628
public boolean method_35628()- Mappings:
Namespace Name Mixin selector official e
Ldoh$a;e()Z
intermediary method_35628
Lnet/minecraft/class_1011$class_1012;method_35628()Z
named method_35628
Lnet/minecraft/client/texture/NativeImage$Format;method_35628()Z
-
method_35629
public boolean method_35629()- Mappings:
Namespace Name Mixin selector official f
Ldoh$a;f()Z
intermediary method_35629
Lnet/minecraft/class_1011$class_1012;method_35629()Z
named method_35629
Lnet/minecraft/client/texture/NativeImage$Format;method_35629()Z
-
method_35630
public boolean method_35630()- Mappings:
Namespace Name Mixin selector official g
Ldoh$a;g()Z
intermediary method_35630
Lnet/minecraft/class_1011$class_1012;method_35630()Z
named method_35630
Lnet/minecraft/client/texture/NativeImage$Format;method_35630()Z
-
method_35631
public boolean method_35631()- Mappings:
Namespace Name Mixin selector official h
Ldoh$a;h()Z
intermediary method_35631
Lnet/minecraft/class_1011$class_1012;method_35631()Z
named method_35631
Lnet/minecraft/client/texture/NativeImage$Format;method_35631()Z
-
hasAlphaChannel
public boolean hasAlphaChannel()- Mappings:
Namespace Name Mixin selector official i
Ldoh$a;i()Z
intermediary method_4329
Lnet/minecraft/class_1011$class_1012;method_4329()Z
named hasAlphaChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasAlphaChannel()Z
-
method_35632
public int method_35632()- Mappings:
Namespace Name Mixin selector official j
Ldoh$a;j()I
intermediary method_35632
Lnet/minecraft/class_1011$class_1012;method_35632()I
named method_35632
Lnet/minecraft/client/texture/NativeImage$Format;method_35632()I
-
method_35633
public int method_35633()- Mappings:
Namespace Name Mixin selector official k
Ldoh$a;k()I
intermediary method_35633
Lnet/minecraft/class_1011$class_1012;method_35633()I
named method_35633
Lnet/minecraft/client/texture/NativeImage$Format;method_35633()I
-
method_35634
public int method_35634()- Mappings:
Namespace Name Mixin selector official l
Ldoh$a;l()I
intermediary method_35634
Lnet/minecraft/class_1011$class_1012;method_35634()I
named method_35634
Lnet/minecraft/client/texture/NativeImage$Format;method_35634()I
-
method_35635
public int method_35635()- Mappings:
Namespace Name Mixin selector official m
Ldoh$a;m()I
intermediary method_35635
Lnet/minecraft/class_1011$class_1012;method_35635()I
named method_35635
Lnet/minecraft/client/texture/NativeImage$Format;method_35635()I
-
getAlphaChannelOffset
public int getAlphaChannelOffset()- Mappings:
Namespace Name Mixin selector official n
Ldoh$a;n()I
intermediary method_4332
Lnet/minecraft/class_1011$class_1012;method_4332()I
named getAlphaChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getAlphaChannelOffset()I
-
method_35636
public boolean method_35636()- Mappings:
Namespace Name Mixin selector official o
Ldoh$a;o()Z
intermediary method_35636
Lnet/minecraft/class_1011$class_1012;method_35636()Z
named method_35636
Lnet/minecraft/client/texture/NativeImage$Format;method_35636()Z
-
method_35637
public boolean method_35637()- Mappings:
Namespace Name Mixin selector official p
Ldoh$a;p()Z
intermediary method_35637
Lnet/minecraft/class_1011$class_1012;method_35637()Z
named method_35637
Lnet/minecraft/client/texture/NativeImage$Format;method_35637()Z
-
method_35638
public boolean method_35638()- Mappings:
Namespace Name Mixin selector official q
Ldoh$a;q()Z
intermediary method_35638
Lnet/minecraft/class_1011$class_1012;method_35638()Z
named method_35638
Lnet/minecraft/client/texture/NativeImage$Format;method_35638()Z
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector official r
Ldoh$a;r()Z
intermediary method_4337
Lnet/minecraft/class_1011$class_1012;method_4337()Z
named hasOpacityChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Z
-
method_35639
public int method_35639()- Mappings:
Namespace Name Mixin selector official s
Ldoh$a;s()I
intermediary method_35639
Lnet/minecraft/class_1011$class_1012;method_35639()I
named method_35639
Lnet/minecraft/client/texture/NativeImage$Format;method_35639()I
-
method_35640
public int method_35640()- Mappings:
Namespace Name Mixin selector official t
Ldoh$a;t()I
intermediary method_35640
Lnet/minecraft/class_1011$class_1012;method_35640()I
named method_35640
Lnet/minecraft/client/texture/NativeImage$Format;method_35640()I
-
method_35641
public int method_35641()- Mappings:
Namespace Name Mixin selector official u
Ldoh$a;u()I
intermediary method_35641
Lnet/minecraft/class_1011$class_1012;method_35641()I
named method_35641
Lnet/minecraft/client/texture/NativeImage$Format;method_35641()I
-
getOpacityOffset
public int getOpacityOffset()- Mappings:
Namespace Name Mixin selector official v
Ldoh$a;v()I
intermediary method_4330
Lnet/minecraft/class_1011$class_1012;method_4330()I
named getOpacityOffset
Lnet/minecraft/client/texture/NativeImage$Format;getOpacityOffset()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector official w
Ldoh$a;w()Z
intermediary method_4338
Lnet/minecraft/class_1011$class_1012;method_4338()Z
named isWriteable
Lnet/minecraft/client/texture/NativeImage$Format;isWriteable()Z
-
getFormat
- Mappings:
Namespace Name Mixin selector official b
Ldoh$a;b(I)Ldoh$a;
intermediary method_4336
Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;
named getFormat
Lnet/minecraft/client/texture/NativeImage$Format;getFormat(I)Lnet/minecraft/client/texture/NativeImage$Format;
-