Package net.minecraft.client.texture
Enum Class NativeImage.Format
- All Implemented Interfaces:
Serializable
,Comparable<NativeImage.Format>
,Constable
- Enclosing class:
NativeImage
- Mappings:
Namespace Name official dys$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 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
fromGl
(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 official a
Ldys$a;a:Ldys$a;
intermediary field_4997
Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;
named RGBA
Lnet/minecraft/client/texture/NativeImage$Format;RGBA:Lnet/minecraft/client/texture/NativeImage$Format;
-
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 official b
Ldys$a;b:Ldys$a;
intermediary field_5001
Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;
named RGB
Lnet/minecraft/client/texture/NativeImage$Format;RGB:Lnet/minecraft/client/texture/NativeImage$Format;
-
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 official c
Ldys$a;c:Ldys$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
Ldys$a;d:Ldys$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
final int channelCount- Mappings:
Namespace Name Mixin selector official e
Ldys$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
-
glFormat
private final int glFormat- Mappings:
Namespace Name Mixin selector official f
Ldys$a;f:I
intermediary field_4993
Lnet/minecraft/class_1011$class_1012;field_4993:I
named glFormat
Lnet/minecraft/client/texture/NativeImage$Format;glFormat:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector official g
Ldys$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
Ldys$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
Ldys$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
Ldys$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
Ldys$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
Ldys$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
Ldys$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
Ldys$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
-
luminanceOffset
private final int luminanceOffset- Mappings:
Namespace Name Mixin selector official o
Ldys$a;o:I
intermediary field_5007
Lnet/minecraft/class_1011$class_1012;field_5007:I
named luminanceOffset
Lnet/minecraft/client/texture/NativeImage$Format;luminanceOffset:I
-
alphaOffset
private final int alphaOffset- Mappings:
Namespace Name Mixin selector official p
Ldys$a;p:I
intermediary field_5006
Lnet/minecraft/class_1011$class_1012;field_5006:I
named alphaOffset
Lnet/minecraft/client/texture/NativeImage$Format;alphaOffset:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector official q
Ldys$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 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 official <init>
Ldys$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 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 official a
Ldys$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
Ldys$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
Ldys$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
-
toGl
public int toGl()- Mappings:
Namespace Name Mixin selector official d
Ldys$a;d()I
intermediary method_4333
Lnet/minecraft/class_1011$class_1012;method_4333()I
named toGl
Lnet/minecraft/client/texture/NativeImage$Format;toGl()I
-
hasRed
public boolean hasRed()- Mappings:
Namespace Name Mixin selector official e
Ldys$a;e()Z
intermediary method_35628
Lnet/minecraft/class_1011$class_1012;method_35628()Z
named hasRed
Lnet/minecraft/client/texture/NativeImage$Format;hasRed()Z
-
hasGreen
public boolean hasGreen()- Mappings:
Namespace Name Mixin selector official f
Ldys$a;f()Z
intermediary method_35629
Lnet/minecraft/class_1011$class_1012;method_35629()Z
named hasGreen
Lnet/minecraft/client/texture/NativeImage$Format;hasGreen()Z
-
hasBlue
public boolean hasBlue()- Mappings:
Namespace Name Mixin selector official g
Ldys$a;g()Z
intermediary method_35630
Lnet/minecraft/class_1011$class_1012;method_35630()Z
named hasBlue
Lnet/minecraft/client/texture/NativeImage$Format;hasBlue()Z
-
hasLuminance
public boolean hasLuminance()- Mappings:
Namespace Name Mixin selector official h
Ldys$a;h()Z
intermediary method_35631
Lnet/minecraft/class_1011$class_1012;method_35631()Z
named hasLuminance
Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance()Z
-
hasAlpha
public boolean hasAlpha()- Mappings:
Namespace Name Mixin selector official i
Ldys$a;i()Z
intermediary method_4329
Lnet/minecraft/class_1011$class_1012;method_4329()Z
named hasAlpha
Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha()Z
-
getRedOffset
public int getRedOffset()- Mappings:
Namespace Name Mixin selector official j
Ldys$a;j()I
intermediary method_35632
Lnet/minecraft/class_1011$class_1012;method_35632()I
named getRedOffset
Lnet/minecraft/client/texture/NativeImage$Format;getRedOffset()I
-
getGreenOffset
public int getGreenOffset()- Mappings:
Namespace Name Mixin selector official k
Ldys$a;k()I
intermediary method_35633
Lnet/minecraft/class_1011$class_1012;method_35633()I
named getGreenOffset
Lnet/minecraft/client/texture/NativeImage$Format;getGreenOffset()I
-
getBlueOffset
public int getBlueOffset()- Mappings:
Namespace Name Mixin selector official l
Ldys$a;l()I
intermediary method_35634
Lnet/minecraft/class_1011$class_1012;method_35634()I
named getBlueOffset
Lnet/minecraft/client/texture/NativeImage$Format;getBlueOffset()I
-
getLuminanceOffset
public int getLuminanceOffset()- Mappings:
Namespace Name Mixin selector official m
Ldys$a;m()I
intermediary method_35635
Lnet/minecraft/class_1011$class_1012;method_35635()I
named getLuminanceOffset
Lnet/minecraft/client/texture/NativeImage$Format;getLuminanceOffset()I
-
getAlphaOffset
public int getAlphaOffset()- Mappings:
Namespace Name Mixin selector official n
Ldys$a;n()I
intermediary method_4332
Lnet/minecraft/class_1011$class_1012;method_4332()I
named getAlphaOffset
Lnet/minecraft/client/texture/NativeImage$Format;getAlphaOffset()I
-
hasRedChannel
public boolean hasRedChannel()- Mappings:
Namespace Name Mixin selector official o
Ldys$a;o()Z
intermediary method_35636
Lnet/minecraft/class_1011$class_1012;method_35636()Z
named hasRedChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasRedChannel()Z
-
hasGreenChannel
public boolean hasGreenChannel()- Mappings:
Namespace Name Mixin selector official p
Ldys$a;p()Z
intermediary method_35637
Lnet/minecraft/class_1011$class_1012;method_35637()Z
named hasGreenChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasGreenChannel()Z
-
hasBlueChannel
public boolean hasBlueChannel()- Mappings:
Namespace Name Mixin selector official q
Ldys$a;q()Z
intermediary method_35638
Lnet/minecraft/class_1011$class_1012;method_35638()Z
named hasBlueChannel
Lnet/minecraft/client/texture/NativeImage$Format;hasBlueChannel()Z
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector official r
Ldys$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
-
getRedChannelOffset
public int getRedChannelOffset()- Mappings:
Namespace Name Mixin selector official s
Ldys$a;s()I
intermediary method_35639
Lnet/minecraft/class_1011$class_1012;method_35639()I
named getRedChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getRedChannelOffset()I
-
getGreenChannelOffset
public int getGreenChannelOffset()- Mappings:
Namespace Name Mixin selector official t
Ldys$a;t()I
intermediary method_35640
Lnet/minecraft/class_1011$class_1012;method_35640()I
named getGreenChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getGreenChannelOffset()I
-
getBlueChannelOffset
public int getBlueChannelOffset()- Mappings:
Namespace Name Mixin selector official u
Ldys$a;u()I
intermediary method_35641
Lnet/minecraft/class_1011$class_1012;method_35641()I
named getBlueChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getBlueChannelOffset()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 official v
Ldys$a;v()I
intermediary method_4330
Lnet/minecraft/class_1011$class_1012;method_4330()I
named getOpacityChannelOffset
Lnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector official w
Ldys$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
-
fromGl
- Mappings:
Namespace Name Mixin selector official a
Ldys$a;a(I)Ldys$a;
intermediary method_4336
Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;
named fromGl
Lnet/minecraft/client/texture/NativeImage$Format;fromGl(I)Lnet/minecraft/client/texture/NativeImage$Format;
-