Package net.minecraft.client.texture
Enum Class NativeImage.Format
- All Implemented Interfaces:
Serializable
,Comparable<NativeImage.Format>
,Constable
- Enclosing class:
NativeImage
- Mappings:
Namespace Name named net/minecraft/client/texture/NativeImage$Format
intermediary net/minecraft/class_1011$class_1012
official ezb$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe format stores luminance and alpha in little endian order, so it's alpha then luminance from the biggest to the smallest bits.The format stores RGB in little endian order, so it's BGR from the biggest to the smallest bits.The format stores RGBA in little endian order, so it's ABGR from the biggest to the smallest bits. -
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
(package private) final int
private final int
private final int
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final int
private final int
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
Format
(int channelCount, 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 TypeMethodDescription(package private) static NativeImage.Format
fromChannelCount
(int glFormat) int
int
int
int
int
int
int
int
int
int
boolean
hasAlpha()
boolean
hasBlue()
boolean
boolean
hasGreen()
boolean
boolean
boolean
boolean
hasRed()
boolean
boolean
void
void
int
toGl()
static NativeImage.Format
Returns the enum constant of this class with the specified name.static NativeImage.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RGBA
The format stores RGBA in little endian order, so it's ABGR from the biggest to the smallest bits.- Mappings:
Namespace Name Mixin selector named RGBA
Lnet/minecraft/client/texture/NativeImage$Format;RGBA:Lnet/minecraft/client/texture/NativeImage$Format;
intermediary field_4997
Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;
official a
Lezb$a;a:Lezb$a;
-
RGB
The format stores RGB in little endian order, so it's BGR from the biggest to the smallest bits.- Mappings:
Namespace Name Mixin selector named RGB
Lnet/minecraft/client/texture/NativeImage$Format;RGB:Lnet/minecraft/client/texture/NativeImage$Format;
intermediary field_5001
Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;
official b
Lezb$a;b:Lezb$a;
-
LUMINANCE_ALPHA
The format stores luminance and alpha in little endian order, so it's alpha then luminance from the biggest to the smallest bits.- Mappings:
Namespace Name Mixin selector named LUMINANCE_ALPHA
Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE_ALPHA:Lnet/minecraft/client/texture/NativeImage$Format;
intermediary field_5002
Lnet/minecraft/class_1011$class_1012;field_5002:Lnet/minecraft/class_1011$class_1012;
official c
Lezb$a;c:Lezb$a;
-
LUMINANCE
- Mappings:
Namespace Name Mixin selector named LUMINANCE
Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE:Lnet/minecraft/client/texture/NativeImage$Format;
intermediary field_4998
Lnet/minecraft/class_1011$class_1012;field_4998:Lnet/minecraft/class_1011$class_1012;
official d
Lezb$a;d:Lezb$a;
-
-
Field Details
-
channelCount
final int channelCount- Mappings:
Namespace Name Mixin selector named channelCount
Lnet/minecraft/client/texture/NativeImage$Format;channelCount:I
intermediary field_4994
Lnet/minecraft/class_1011$class_1012;field_4994:I
official e
Lezb$a;e:I
-
glFormat
private final int glFormat- Mappings:
Namespace Name Mixin selector named glFormat
Lnet/minecraft/client/texture/NativeImage$Format;glFormat:I
intermediary field_4993
Lnet/minecraft/class_1011$class_1012;field_4993:I
official f
Lezb$a;f:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector named hasRed
Lnet/minecraft/client/texture/NativeImage$Format;hasRed:Z
intermediary field_5005
Lnet/minecraft/class_1011$class_1012;field_5005:Z
official g
Lezb$a;g:Z
-
hasGreen
private final boolean hasGreen- Mappings:
Namespace Name Mixin selector named hasGreen
Lnet/minecraft/client/texture/NativeImage$Format;hasGreen:Z
intermediary field_5004
Lnet/minecraft/class_1011$class_1012;field_5004:Z
official h
Lezb$a;h:Z
-
hasBlue
private final boolean hasBlue- Mappings:
Namespace Name Mixin selector named hasBlue
Lnet/minecraft/client/texture/NativeImage$Format;hasBlue:Z
intermediary field_5003
Lnet/minecraft/class_1011$class_1012;field_5003:Z
official i
Lezb$a;i:Z
-
hasLuminance
private final boolean hasLuminance- Mappings:
Namespace Name Mixin selector named hasLuminance
Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance:Z
intermediary field_5000
Lnet/minecraft/class_1011$class_1012;field_5000:Z
official j
Lezb$a;j:Z
-
hasAlpha
private final boolean hasAlpha- Mappings:
Namespace Name Mixin selector named hasAlpha
Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha:Z
intermediary field_4999
Lnet/minecraft/class_1011$class_1012;field_4999:Z
official k
Lezb$a;k:Z
-
redOffset
private final int redOffset- Mappings:
Namespace Name Mixin selector named redOffset
Lnet/minecraft/client/texture/NativeImage$Format;redOffset:I
intermediary field_5010
Lnet/minecraft/class_1011$class_1012;field_5010:I
official l
Lezb$a;l:I
-
greenOffset
private final int greenOffset- Mappings:
Namespace Name Mixin selector named greenOffset
Lnet/minecraft/client/texture/NativeImage$Format;greenOffset:I
intermediary field_5009
Lnet/minecraft/class_1011$class_1012;field_5009:I
official m
Lezb$a;m:I
-
blueOffset
private final int blueOffset- Mappings:
Namespace Name Mixin selector named blueOffset
Lnet/minecraft/client/texture/NativeImage$Format;blueOffset:I
intermediary field_5008
Lnet/minecraft/class_1011$class_1012;field_5008:I
official n
Lezb$a;n:I
-
luminanceOffset
private final int luminanceOffset- Mappings:
Namespace Name Mixin selector named luminanceOffset
Lnet/minecraft/client/texture/NativeImage$Format;luminanceOffset:I
intermediary field_5007
Lnet/minecraft/class_1011$class_1012;field_5007:I
official o
Lezb$a;o:I
-
alphaOffset
private final int alphaOffset- Mappings:
Namespace Name Mixin selector named alphaOffset
Lnet/minecraft/client/texture/NativeImage$Format;alphaOffset:I
intermediary field_5006
Lnet/minecraft/class_1011$class_1012;field_5006:I
official p
Lezb$a;p:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector named writeable
Lnet/minecraft/client/texture/NativeImage$Format;writeable:Z
intermediary field_4996
Lnet/minecraft/class_1011$class_1012;field_4996:Z
official q
Lezb$a;q:Z
-
-
Constructor Details
-
Format
private Format(int channelCount, 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 named <init>
Lnet/minecraft/client/texture/NativeImage$Format;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
intermediary <init>
Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
official <init>
Lezb$a;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getChannelCount
public int getChannelCount()- Mappings:
Namespace Name Mixin selector named getChannelCount
Lnet/minecraft/client/texture/NativeImage$Format;getChannelCount()I
intermediary method_4335
Lnet/minecraft/class_1011$class_1012;method_4335()I
official a
Lezb$a;a()I
-
setPackAlignment
public void setPackAlignment()- Mappings:
Namespace Name Mixin selector named setPackAlignment
Lnet/minecraft/client/texture/NativeImage$Format;setPackAlignment()V
intermediary method_4339
Lnet/minecraft/class_1011$class_1012;method_4339()V
official b
Lezb$a;b()V
-
setUnpackAlignment
public void setUnpackAlignment()- Mappings:
Namespace Name Mixin selector named setUnpackAlignment
Lnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()V
intermediary method_4340
Lnet/minecraft/class_1011$class_1012;method_4340()V
official c
Lezb$a;c()V
-
toGl
public int toGl()- Mappings:
Namespace Name Mixin selector named toGl
Lnet/minecraft/client/texture/NativeImage$Format;toGl()I
intermediary method_4333
Lnet/minecraft/class_1011$class_1012;method_4333()I
official d
Lezb$a;d()I
-
hasRed
public boolean hasRed()- Mappings:
Namespace Name Mixin selector named hasRed
Lnet/minecraft/client/texture/NativeImage$Format;hasRed()Z
intermediary method_35628
Lnet/minecraft/class_1011$class_1012;method_35628()Z
official e
Lezb$a;e()Z
-
hasGreen
public boolean hasGreen()- Mappings:
Namespace Name Mixin selector named hasGreen
Lnet/minecraft/client/texture/NativeImage$Format;hasGreen()Z
intermediary method_35629
Lnet/minecraft/class_1011$class_1012;method_35629()Z
official f
Lezb$a;f()Z
-
hasBlue
public boolean hasBlue()- Mappings:
Namespace Name Mixin selector named hasBlue
Lnet/minecraft/client/texture/NativeImage$Format;hasBlue()Z
intermediary method_35630
Lnet/minecraft/class_1011$class_1012;method_35630()Z
official g
Lezb$a;g()Z
-
hasLuminance
public boolean hasLuminance()- Mappings:
Namespace Name Mixin selector named hasLuminance
Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance()Z
intermediary method_35631
Lnet/minecraft/class_1011$class_1012;method_35631()Z
official h
Lezb$a;h()Z
-
hasAlpha
public boolean hasAlpha()- Mappings:
Namespace Name Mixin selector named hasAlpha
Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha()Z
intermediary method_4329
Lnet/minecraft/class_1011$class_1012;method_4329()Z
official i
Lezb$a;i()Z
-
getRedOffset
public int getRedOffset()- Mappings:
Namespace Name Mixin selector named getRedOffset
Lnet/minecraft/client/texture/NativeImage$Format;getRedOffset()I
intermediary method_35632
Lnet/minecraft/class_1011$class_1012;method_35632()I
official j
Lezb$a;j()I
-
getGreenOffset
public int getGreenOffset()- Mappings:
Namespace Name Mixin selector named getGreenOffset
Lnet/minecraft/client/texture/NativeImage$Format;getGreenOffset()I
intermediary method_35633
Lnet/minecraft/class_1011$class_1012;method_35633()I
official k
Lezb$a;k()I
-
getBlueOffset
public int getBlueOffset()- Mappings:
Namespace Name Mixin selector named getBlueOffset
Lnet/minecraft/client/texture/NativeImage$Format;getBlueOffset()I
intermediary method_35634
Lnet/minecraft/class_1011$class_1012;method_35634()I
official l
Lezb$a;l()I
-
getLuminanceOffset
public int getLuminanceOffset()- Mappings:
Namespace Name Mixin selector named getLuminanceOffset
Lnet/minecraft/client/texture/NativeImage$Format;getLuminanceOffset()I
intermediary method_35635
Lnet/minecraft/class_1011$class_1012;method_35635()I
official m
Lezb$a;m()I
-
getAlphaOffset
public int getAlphaOffset()- Mappings:
Namespace Name Mixin selector named getAlphaOffset
Lnet/minecraft/client/texture/NativeImage$Format;getAlphaOffset()I
intermediary method_4332
Lnet/minecraft/class_1011$class_1012;method_4332()I
official n
Lezb$a;n()I
-
hasRedChannel
public boolean hasRedChannel()- Mappings:
Namespace Name Mixin selector named hasRedChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasRedChannel()Z
intermediary method_35636
Lnet/minecraft/class_1011$class_1012;method_35636()Z
official o
Lezb$a;o()Z
-
hasGreenChannel
public boolean hasGreenChannel()- Mappings:
Namespace Name Mixin selector named hasGreenChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasGreenChannel()Z
intermediary method_35637
Lnet/minecraft/class_1011$class_1012;method_35637()Z
official p
Lezb$a;p()Z
-
hasBlueChannel
public boolean hasBlueChannel()- Mappings:
Namespace Name Mixin selector named hasBlueChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasBlueChannel()Z
intermediary method_35638
Lnet/minecraft/class_1011$class_1012;method_35638()Z
official q
Lezb$a;q()Z
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector named hasOpacityChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Z
intermediary method_4337
Lnet/minecraft/class_1011$class_1012;method_4337()Z
official r
Lezb$a;r()Z
-
getRedChannelOffset
public int getRedChannelOffset()- Mappings:
Namespace Name Mixin selector named getRedChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getRedChannelOffset()I
intermediary method_35639
Lnet/minecraft/class_1011$class_1012;method_35639()I
official s
Lezb$a;s()I
-
getGreenChannelOffset
public int getGreenChannelOffset()- Mappings:
Namespace Name Mixin selector named getGreenChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getGreenChannelOffset()I
intermediary method_35640
Lnet/minecraft/class_1011$class_1012;method_35640()I
official t
Lezb$a;t()I
-
getBlueChannelOffset
public int getBlueChannelOffset()- Mappings:
Namespace Name Mixin selector named getBlueChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getBlueChannelOffset()I
intermediary method_35641
Lnet/minecraft/class_1011$class_1012;method_35641()I
official u
Lezb$a;u()I
-
getOpacityChannelOffset
public int getOpacityChannelOffset()- API Note:
- For luminance-alpha format, this would return the luminance offset than the alpha offset.
- Mappings:
Namespace Name Mixin selector named getOpacityChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()I
intermediary method_4330
Lnet/minecraft/class_1011$class_1012;method_4330()I
official v
Lezb$a;v()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector named isWriteable
Lnet/minecraft/client/texture/NativeImage$Format;isWriteable()Z
intermediary method_4338
Lnet/minecraft/class_1011$class_1012;method_4338()Z
official w
Lezb$a;w()Z
-
fromChannelCount
- Mappings:
Namespace Name Mixin selector named fromChannelCount
Lnet/minecraft/client/texture/NativeImage$Format;fromChannelCount(I)Lnet/minecraft/client/texture/NativeImage$Format;
intermediary method_4336
Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;
official a
Lezb$a;a(I)Lezb$a;
-