Package net.minecraft.client.texture
Enum Class NativeImage.Format
- All Implemented Interfaces:
Serializable,Comparable<NativeImage.Format>,Constable
- Enclosing class:
NativeImage
- Mappings:
Namespace Name official enc$aintermediary net/minecraft/class_1011$class_1012named 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 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 official aLenc$a;a:Lenc$a;intermediary field_4997Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;named RGBALnet/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 bLenc$a;b:Lenc$a;intermediary field_5001Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;named RGBLnet/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 cLenc$a;c:Lenc$a;intermediary field_5002Lnet/minecraft/class_1011$class_1012;field_5002:Lnet/minecraft/class_1011$class_1012;named LUMINANCE_ALPHALnet/minecraft/client/texture/NativeImage$Format;LUMINANCE_ALPHA:Lnet/minecraft/client/texture/NativeImage$Format;
-
LUMINANCE
- Mappings:
Namespace Name Mixin selector official dLenc$a;d:Lenc$a;intermediary field_4998Lnet/minecraft/class_1011$class_1012;field_4998:Lnet/minecraft/class_1011$class_1012;named LUMINANCELnet/minecraft/client/texture/NativeImage$Format;LUMINANCE:Lnet/minecraft/client/texture/NativeImage$Format;
-
-
Field Details
-
channelCount
final int channelCount- Mappings:
Namespace Name Mixin selector official eLenc$a;e:Iintermediary field_4994Lnet/minecraft/class_1011$class_1012;field_4994:Inamed channelCountLnet/minecraft/client/texture/NativeImage$Format;channelCount:I
-
glFormat
private final int glFormat- Mappings:
Namespace Name Mixin selector official fLenc$a;f:Iintermediary field_4993Lnet/minecraft/class_1011$class_1012;field_4993:Inamed glFormatLnet/minecraft/client/texture/NativeImage$Format;glFormat:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector official gLenc$a;g:Zintermediary field_5005Lnet/minecraft/class_1011$class_1012;field_5005:Znamed hasRedLnet/minecraft/client/texture/NativeImage$Format;hasRed:Z
-
hasGreen
private final boolean hasGreen- Mappings:
Namespace Name Mixin selector official hLenc$a;h:Zintermediary field_5004Lnet/minecraft/class_1011$class_1012;field_5004:Znamed hasGreenLnet/minecraft/client/texture/NativeImage$Format;hasGreen:Z
-
hasBlue
private final boolean hasBlue- Mappings:
Namespace Name Mixin selector official iLenc$a;i:Zintermediary field_5003Lnet/minecraft/class_1011$class_1012;field_5003:Znamed hasBlueLnet/minecraft/client/texture/NativeImage$Format;hasBlue:Z
-
hasLuminance
private final boolean hasLuminance- Mappings:
Namespace Name Mixin selector official jLenc$a;j:Zintermediary field_5000Lnet/minecraft/class_1011$class_1012;field_5000:Znamed hasLuminanceLnet/minecraft/client/texture/NativeImage$Format;hasLuminance:Z
-
hasAlpha
private final boolean hasAlpha- Mappings:
Namespace Name Mixin selector official kLenc$a;k:Zintermediary field_4999Lnet/minecraft/class_1011$class_1012;field_4999:Znamed hasAlphaLnet/minecraft/client/texture/NativeImage$Format;hasAlpha:Z
-
redOffset
private final int redOffset- Mappings:
Namespace Name Mixin selector official lLenc$a;l:Iintermediary field_5010Lnet/minecraft/class_1011$class_1012;field_5010:Inamed redOffsetLnet/minecraft/client/texture/NativeImage$Format;redOffset:I
-
greenOffset
private final int greenOffset- Mappings:
Namespace Name Mixin selector official mLenc$a;m:Iintermediary field_5009Lnet/minecraft/class_1011$class_1012;field_5009:Inamed greenOffsetLnet/minecraft/client/texture/NativeImage$Format;greenOffset:I
-
blueOffset
private final int blueOffset- Mappings:
Namespace Name Mixin selector official nLenc$a;n:Iintermediary field_5008Lnet/minecraft/class_1011$class_1012;field_5008:Inamed blueOffsetLnet/minecraft/client/texture/NativeImage$Format;blueOffset:I
-
luminanceOffset
private final int luminanceOffset- Mappings:
Namespace Name Mixin selector official oLenc$a;o:Iintermediary field_5007Lnet/minecraft/class_1011$class_1012;field_5007:Inamed luminanceOffsetLnet/minecraft/client/texture/NativeImage$Format;luminanceOffset:I
-
alphaOffset
private final int alphaOffset- Mappings:
Namespace Name Mixin selector official pLenc$a;p:Iintermediary field_5006Lnet/minecraft/class_1011$class_1012;field_5006:Inamed alphaOffsetLnet/minecraft/client/texture/NativeImage$Format;alphaOffset:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector official qLenc$a;q:Zintermediary field_4996Lnet/minecraft/class_1011$class_1012;field_4996:Znamed writeableLnet/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>Lenc$a;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)Vintermediary <init>Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)Vnamed <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 aLenc$a;a()Iintermediary method_4335Lnet/minecraft/class_1011$class_1012;method_4335()Inamed getChannelCountLnet/minecraft/client/texture/NativeImage$Format;getChannelCount()I
-
setPackAlignment
public void setPackAlignment()- Mappings:
Namespace Name Mixin selector official bLenc$a;b()Vintermediary method_4339Lnet/minecraft/class_1011$class_1012;method_4339()Vnamed setPackAlignmentLnet/minecraft/client/texture/NativeImage$Format;setPackAlignment()V
-
setUnpackAlignment
public void setUnpackAlignment()- Mappings:
Namespace Name Mixin selector official cLenc$a;c()Vintermediary method_4340Lnet/minecraft/class_1011$class_1012;method_4340()Vnamed setUnpackAlignmentLnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()V
-
toGl
public int toGl()- Mappings:
Namespace Name Mixin selector official dLenc$a;d()Iintermediary method_4333Lnet/minecraft/class_1011$class_1012;method_4333()Inamed toGlLnet/minecraft/client/texture/NativeImage$Format;toGl()I
-
hasRed
public boolean hasRed()- Mappings:
Namespace Name Mixin selector official eLenc$a;e()Zintermediary method_35628Lnet/minecraft/class_1011$class_1012;method_35628()Znamed hasRedLnet/minecraft/client/texture/NativeImage$Format;hasRed()Z
-
hasGreen
public boolean hasGreen()- Mappings:
Namespace Name Mixin selector official fLenc$a;f()Zintermediary method_35629Lnet/minecraft/class_1011$class_1012;method_35629()Znamed hasGreenLnet/minecraft/client/texture/NativeImage$Format;hasGreen()Z
-
hasBlue
public boolean hasBlue()- Mappings:
Namespace Name Mixin selector official gLenc$a;g()Zintermediary method_35630Lnet/minecraft/class_1011$class_1012;method_35630()Znamed hasBlueLnet/minecraft/client/texture/NativeImage$Format;hasBlue()Z
-
hasLuminance
public boolean hasLuminance()- Mappings:
Namespace Name Mixin selector official hLenc$a;h()Zintermediary method_35631Lnet/minecraft/class_1011$class_1012;method_35631()Znamed hasLuminanceLnet/minecraft/client/texture/NativeImage$Format;hasLuminance()Z
-
hasAlpha
public boolean hasAlpha()- Mappings:
Namespace Name Mixin selector official iLenc$a;i()Zintermediary method_4329Lnet/minecraft/class_1011$class_1012;method_4329()Znamed hasAlphaLnet/minecraft/client/texture/NativeImage$Format;hasAlpha()Z
-
getRedOffset
public int getRedOffset()- Mappings:
Namespace Name Mixin selector official jLenc$a;j()Iintermediary method_35632Lnet/minecraft/class_1011$class_1012;method_35632()Inamed getRedOffsetLnet/minecraft/client/texture/NativeImage$Format;getRedOffset()I
-
getGreenOffset
public int getGreenOffset()- Mappings:
Namespace Name Mixin selector official kLenc$a;k()Iintermediary method_35633Lnet/minecraft/class_1011$class_1012;method_35633()Inamed getGreenOffsetLnet/minecraft/client/texture/NativeImage$Format;getGreenOffset()I
-
getBlueOffset
public int getBlueOffset()- Mappings:
Namespace Name Mixin selector official lLenc$a;l()Iintermediary method_35634Lnet/minecraft/class_1011$class_1012;method_35634()Inamed getBlueOffsetLnet/minecraft/client/texture/NativeImage$Format;getBlueOffset()I
-
getLuminanceOffset
public int getLuminanceOffset()- Mappings:
Namespace Name Mixin selector official mLenc$a;m()Iintermediary method_35635Lnet/minecraft/class_1011$class_1012;method_35635()Inamed getLuminanceOffsetLnet/minecraft/client/texture/NativeImage$Format;getLuminanceOffset()I
-
getAlphaOffset
public int getAlphaOffset()- Mappings:
Namespace Name Mixin selector official nLenc$a;n()Iintermediary method_4332Lnet/minecraft/class_1011$class_1012;method_4332()Inamed getAlphaOffsetLnet/minecraft/client/texture/NativeImage$Format;getAlphaOffset()I
-
hasRedChannel
public boolean hasRedChannel()- Mappings:
Namespace Name Mixin selector official oLenc$a;o()Zintermediary method_35636Lnet/minecraft/class_1011$class_1012;method_35636()Znamed hasRedChannelLnet/minecraft/client/texture/NativeImage$Format;hasRedChannel()Z
-
hasGreenChannel
public boolean hasGreenChannel()- Mappings:
Namespace Name Mixin selector official pLenc$a;p()Zintermediary method_35637Lnet/minecraft/class_1011$class_1012;method_35637()Znamed hasGreenChannelLnet/minecraft/client/texture/NativeImage$Format;hasGreenChannel()Z
-
hasBlueChannel
public boolean hasBlueChannel()- Mappings:
Namespace Name Mixin selector official qLenc$a;q()Zintermediary method_35638Lnet/minecraft/class_1011$class_1012;method_35638()Znamed hasBlueChannelLnet/minecraft/client/texture/NativeImage$Format;hasBlueChannel()Z
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector official rLenc$a;r()Zintermediary method_4337Lnet/minecraft/class_1011$class_1012;method_4337()Znamed hasOpacityChannelLnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Z
-
getRedChannelOffset
public int getRedChannelOffset()- Mappings:
Namespace Name Mixin selector official sLenc$a;s()Iintermediary method_35639Lnet/minecraft/class_1011$class_1012;method_35639()Inamed getRedChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getRedChannelOffset()I
-
getGreenChannelOffset
public int getGreenChannelOffset()- Mappings:
Namespace Name Mixin selector official tLenc$a;t()Iintermediary method_35640Lnet/minecraft/class_1011$class_1012;method_35640()Inamed getGreenChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getGreenChannelOffset()I
-
getBlueChannelOffset
public int getBlueChannelOffset()- Mappings:
Namespace Name Mixin selector official uLenc$a;u()Iintermediary method_35641Lnet/minecraft/class_1011$class_1012;method_35641()Inamed getBlueChannelOffsetLnet/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 vLenc$a;v()Iintermediary method_4330Lnet/minecraft/class_1011$class_1012;method_4330()Inamed getOpacityChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector official wLenc$a;w()Zintermediary method_4338Lnet/minecraft/class_1011$class_1012;method_4338()Znamed isWriteableLnet/minecraft/client/texture/NativeImage$Format;isWriteable()Z
-
fromChannelCount
- Mappings:
Namespace Name Mixin selector official aLenc$a;a(I)Lenc$a;intermediary method_4336Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;named fromChannelCountLnet/minecraft/client/texture/NativeImage$Format;fromChannelCount(I)Lnet/minecraft/client/texture/NativeImage$Format;
-