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 ffr$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 intprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final intprivate final intprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFormat(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.FormatfromChannelCount(int glFormat) intintintintintintintintintintbooleanhasAlpha()booleanhasBlue()booleanbooleanhasGreen()booleanbooleanbooleanbooleanhasRed()booleanbooleanvoidvoidinttoGl()static 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 aLffr$a;a:Lffr$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 bLffr$a;b:Lffr$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 cLffr$a;c:Lffr$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 dLffr$a;d:Lffr$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 eLffr$a;e:I
-
glFormat
private final int glFormat- Mappings:
Namespace Name Mixin selector named glFormatLnet/minecraft/client/texture/NativeImage$Format;glFormat:Iintermediary field_4993Lnet/minecraft/class_1011$class_1012;field_4993:Iofficial fLffr$a;f: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 gLffr$a;g: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 hLffr$a;h: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 iLffr$a;i: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 jLffr$a;j: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 kLffr$a;k: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 lLffr$a;l: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 mLffr$a;m: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 nLffr$a;n: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 oLffr$a;o: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 pLffr$a;p: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 qLffr$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)Vintermediary <init>Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)Vofficial <init>Lffr$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 getChannelCountLnet/minecraft/client/texture/NativeImage$Format;getChannelCount()Iintermediary method_4335Lnet/minecraft/class_1011$class_1012;method_4335()Iofficial aLffr$a;a()I
-
setPackAlignment
public void setPackAlignment()- Mappings:
Namespace Name Mixin selector named setPackAlignmentLnet/minecraft/client/texture/NativeImage$Format;setPackAlignment()Vintermediary method_4339Lnet/minecraft/class_1011$class_1012;method_4339()Vofficial bLffr$a;b()V
-
setUnpackAlignment
public void setUnpackAlignment()- Mappings:
Namespace Name Mixin selector named setUnpackAlignmentLnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()Vintermediary method_4340Lnet/minecraft/class_1011$class_1012;method_4340()Vofficial cLffr$a;c()V
-
toGl
public int toGl()- Mappings:
Namespace Name Mixin selector named toGlLnet/minecraft/client/texture/NativeImage$Format;toGl()Iintermediary method_4333Lnet/minecraft/class_1011$class_1012;method_4333()Iofficial dLffr$a;d()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 eLffr$a;e()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 fLffr$a;f()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 gLffr$a;g()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 hLffr$a;h()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 iLffr$a;i()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 jLffr$a;j()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 kLffr$a;k()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 lLffr$a;l()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 mLffr$a;m()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 nLffr$a;n()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 oLffr$a;o()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 pLffr$a;p()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 qLffr$a;q()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 rLffr$a;r()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 sLffr$a;s()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 tLffr$a;t()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 uLffr$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 getOpacityChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()Iintermediary method_4330Lnet/minecraft/class_1011$class_1012;method_4330()Iofficial vLffr$a;v()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 wLffr$a;w()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 aLffr$a;a(I)Lffr$a;
-