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$Formatintermediary net/minecraft/class_1011$class_1012official fkf$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum 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
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int(package private) final intprivate final intprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final intprivate final intprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFormat(int channelCount, 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.FormatfromChannelCount(int glFormat) intintintintintintintintintintbooleanhasAlpha()booleanhasBlue()booleanbooleanhasGreen()booleanbooleanbooleanbooleanhasRed()booleanbooleanstatic NativeImage.FormatReturns 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 RGBALnet/minecraft/client/texture/NativeImage$Format;RGBA:Lnet/minecraft/client/texture/NativeImage$Format;intermediary field_4997Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;official aLfkf$a;a:Lfkf$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 RGBLnet/minecraft/client/texture/NativeImage$Format;RGB:Lnet/minecraft/client/texture/NativeImage$Format;intermediary field_5001Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;official bLfkf$a;b:Lfkf$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_ALPHALnet/minecraft/client/texture/NativeImage$Format;LUMINANCE_ALPHA:Lnet/minecraft/client/texture/NativeImage$Format;intermediary field_5002Lnet/minecraft/class_1011$class_1012;field_5002:Lnet/minecraft/class_1011$class_1012;official cLfkf$a;c:Lfkf$a;
-
LUMINANCE
- Mappings:
Namespace Name Mixin selector named LUMINANCELnet/minecraft/client/texture/NativeImage$Format;LUMINANCE:Lnet/minecraft/client/texture/NativeImage$Format;intermediary field_4998Lnet/minecraft/class_1011$class_1012;field_4998:Lnet/minecraft/class_1011$class_1012;official dLfkf$a;d:Lfkf$a;
-
-
Field Details
-
channelCount
final int channelCount- Mappings:
Namespace Name Mixin selector named channelCountLnet/minecraft/client/texture/NativeImage$Format;channelCount:Iintermediary field_4994Lnet/minecraft/class_1011$class_1012;field_4994:Iofficial eLfkf$a;e:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector named hasRedLnet/minecraft/client/texture/NativeImage$Format;hasRed:Zintermediary field_5005Lnet/minecraft/class_1011$class_1012;field_5005:Zofficial fLfkf$a;f:Z
-
hasGreen
private final boolean hasGreen- Mappings:
Namespace Name Mixin selector named hasGreenLnet/minecraft/client/texture/NativeImage$Format;hasGreen:Zintermediary field_5004Lnet/minecraft/class_1011$class_1012;field_5004:Zofficial gLfkf$a;g:Z
-
hasBlue
private final boolean hasBlue- Mappings:
Namespace Name Mixin selector named hasBlueLnet/minecraft/client/texture/NativeImage$Format;hasBlue:Zintermediary field_5003Lnet/minecraft/class_1011$class_1012;field_5003:Zofficial hLfkf$a;h:Z
-
hasLuminance
private final boolean hasLuminance- Mappings:
Namespace Name Mixin selector named hasLuminanceLnet/minecraft/client/texture/NativeImage$Format;hasLuminance:Zintermediary field_5000Lnet/minecraft/class_1011$class_1012;field_5000:Zofficial iLfkf$a;i:Z
-
hasAlpha
private final boolean hasAlpha- Mappings:
Namespace Name Mixin selector named hasAlphaLnet/minecraft/client/texture/NativeImage$Format;hasAlpha:Zintermediary field_4999Lnet/minecraft/class_1011$class_1012;field_4999:Zofficial jLfkf$a;j:Z
-
redOffset
private final int redOffset- Mappings:
Namespace Name Mixin selector named redOffsetLnet/minecraft/client/texture/NativeImage$Format;redOffset:Iintermediary field_5010Lnet/minecraft/class_1011$class_1012;field_5010:Iofficial kLfkf$a;k:I
-
greenOffset
private final int greenOffset- Mappings:
Namespace Name Mixin selector named greenOffsetLnet/minecraft/client/texture/NativeImage$Format;greenOffset:Iintermediary field_5009Lnet/minecraft/class_1011$class_1012;field_5009:Iofficial lLfkf$a;l:I
-
blueOffset
private final int blueOffset- Mappings:
Namespace Name Mixin selector named blueOffsetLnet/minecraft/client/texture/NativeImage$Format;blueOffset:Iintermediary field_5008Lnet/minecraft/class_1011$class_1012;field_5008:Iofficial mLfkf$a;m:I
-
luminanceOffset
private final int luminanceOffset- Mappings:
Namespace Name Mixin selector named luminanceOffsetLnet/minecraft/client/texture/NativeImage$Format;luminanceOffset:Iintermediary field_5007Lnet/minecraft/class_1011$class_1012;field_5007:Iofficial nLfkf$a;n:I
-
alphaOffset
private final int alphaOffset- Mappings:
Namespace Name Mixin selector named alphaOffsetLnet/minecraft/client/texture/NativeImage$Format;alphaOffset:Iintermediary field_5006Lnet/minecraft/class_1011$class_1012;field_5006:Iofficial oLfkf$a;o:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector named writeableLnet/minecraft/client/texture/NativeImage$Format;writeable:Zintermediary field_4996Lnet/minecraft/class_1011$class_1012;field_4996:Zofficial pLfkf$a;p:Z
-
-
Constructor Details
-
Format
private Format(int channelCount, 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;IIZZZZZIIIIIZ)Vintermediary <init>Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIZZZZZIIIIIZ)Vofficial <init>Lfkf$a;<init>(Ljava/lang/String;IIZZZZZIIIIIZ)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 getChannelCountLnet/minecraft/client/texture/NativeImage$Format;getChannelCount()Iintermediary method_4335Lnet/minecraft/class_1011$class_1012;method_4335()Iofficial aLfkf$a;a()I
-
hasRed
public boolean hasRed()- Mappings:
Namespace Name Mixin selector named hasRedLnet/minecraft/client/texture/NativeImage$Format;hasRed()Zintermediary method_35628Lnet/minecraft/class_1011$class_1012;method_35628()Zofficial bLfkf$a;b()Z
-
hasGreen
public boolean hasGreen()- Mappings:
Namespace Name Mixin selector named hasGreenLnet/minecraft/client/texture/NativeImage$Format;hasGreen()Zintermediary method_35629Lnet/minecraft/class_1011$class_1012;method_35629()Zofficial cLfkf$a;c()Z
-
hasBlue
public boolean hasBlue()- Mappings:
Namespace Name Mixin selector named hasBlueLnet/minecraft/client/texture/NativeImage$Format;hasBlue()Zintermediary method_35630Lnet/minecraft/class_1011$class_1012;method_35630()Zofficial dLfkf$a;d()Z
-
hasLuminance
public boolean hasLuminance()- Mappings:
Namespace Name Mixin selector named hasLuminanceLnet/minecraft/client/texture/NativeImage$Format;hasLuminance()Zintermediary method_35631Lnet/minecraft/class_1011$class_1012;method_35631()Zofficial eLfkf$a;e()Z
-
hasAlpha
public boolean hasAlpha()- Mappings:
Namespace Name Mixin selector named hasAlphaLnet/minecraft/client/texture/NativeImage$Format;hasAlpha()Zintermediary method_4329Lnet/minecraft/class_1011$class_1012;method_4329()Zofficial fLfkf$a;f()Z
-
getRedOffset
public int getRedOffset()- Mappings:
Namespace Name Mixin selector named getRedOffsetLnet/minecraft/client/texture/NativeImage$Format;getRedOffset()Iintermediary method_35632Lnet/minecraft/class_1011$class_1012;method_35632()Iofficial gLfkf$a;g()I
-
getGreenOffset
public int getGreenOffset()- Mappings:
Namespace Name Mixin selector named getGreenOffsetLnet/minecraft/client/texture/NativeImage$Format;getGreenOffset()Iintermediary method_35633Lnet/minecraft/class_1011$class_1012;method_35633()Iofficial hLfkf$a;h()I
-
getBlueOffset
public int getBlueOffset()- Mappings:
Namespace Name Mixin selector named getBlueOffsetLnet/minecraft/client/texture/NativeImage$Format;getBlueOffset()Iintermediary method_35634Lnet/minecraft/class_1011$class_1012;method_35634()Iofficial iLfkf$a;i()I
-
getLuminanceOffset
public int getLuminanceOffset()- Mappings:
Namespace Name Mixin selector named getLuminanceOffsetLnet/minecraft/client/texture/NativeImage$Format;getLuminanceOffset()Iintermediary method_35635Lnet/minecraft/class_1011$class_1012;method_35635()Iofficial jLfkf$a;j()I
-
getAlphaOffset
public int getAlphaOffset()- Mappings:
Namespace Name Mixin selector named getAlphaOffsetLnet/minecraft/client/texture/NativeImage$Format;getAlphaOffset()Iintermediary method_4332Lnet/minecraft/class_1011$class_1012;method_4332()Iofficial kLfkf$a;k()I
-
hasRedChannel
public boolean hasRedChannel()- Mappings:
Namespace Name Mixin selector named hasRedChannelLnet/minecraft/client/texture/NativeImage$Format;hasRedChannel()Zintermediary method_35636Lnet/minecraft/class_1011$class_1012;method_35636()Zofficial lLfkf$a;l()Z
-
hasGreenChannel
public boolean hasGreenChannel()- Mappings:
Namespace Name Mixin selector named hasGreenChannelLnet/minecraft/client/texture/NativeImage$Format;hasGreenChannel()Zintermediary method_35637Lnet/minecraft/class_1011$class_1012;method_35637()Zofficial mLfkf$a;m()Z
-
hasBlueChannel
public boolean hasBlueChannel()- Mappings:
Namespace Name Mixin selector named hasBlueChannelLnet/minecraft/client/texture/NativeImage$Format;hasBlueChannel()Zintermediary method_35638Lnet/minecraft/class_1011$class_1012;method_35638()Zofficial nLfkf$a;n()Z
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector named hasOpacityChannelLnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Zintermediary method_4337Lnet/minecraft/class_1011$class_1012;method_4337()Zofficial oLfkf$a;o()Z
-
getRedChannelOffset
public int getRedChannelOffset()- Mappings:
Namespace Name Mixin selector named getRedChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getRedChannelOffset()Iintermediary method_35639Lnet/minecraft/class_1011$class_1012;method_35639()Iofficial pLfkf$a;p()I
-
getGreenChannelOffset
public int getGreenChannelOffset()- Mappings:
Namespace Name Mixin selector named getGreenChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getGreenChannelOffset()Iintermediary method_35640Lnet/minecraft/class_1011$class_1012;method_35640()Iofficial qLfkf$a;q()I
-
getBlueChannelOffset
public int getBlueChannelOffset()- Mappings:
Namespace Name Mixin selector named getBlueChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getBlueChannelOffset()Iintermediary method_35641Lnet/minecraft/class_1011$class_1012;method_35641()Iofficial rLfkf$a;r()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 getOpacityChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()Iintermediary method_4330Lnet/minecraft/class_1011$class_1012;method_4330()Iofficial sLfkf$a;s()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector named isWriteableLnet/minecraft/client/texture/NativeImage$Format;isWriteable()Zintermediary method_4338Lnet/minecraft/class_1011$class_1012;method_4338()Zofficial tLfkf$a;t()Z
-
fromChannelCount
- Mappings:
Namespace Name Mixin selector named fromChannelCountLnet/minecraft/client/texture/NativeImage$Format;fromChannelCount(I)Lnet/minecraft/client/texture/NativeImage$Format;intermediary method_4336Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;official aLfkf$a;a(I)Lfkf$a;
-