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 fsz$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 aLfsz$a;a:Lfsz$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 bLfsz$a;b:Lfsz$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 cLfsz$a;c:Lfsz$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 dLfsz$a;d:Lfsz$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 eLfsz$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 fLfsz$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 gLfsz$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 hLfsz$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 iLfsz$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 jLfsz$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 kLfsz$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 lLfsz$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 mLfsz$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 nLfsz$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 oLfsz$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 pLfsz$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>Lfsz$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 aLfsz$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 bLfsz$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 cLfsz$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 dLfsz$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 eLfsz$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 fLfsz$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 gLfsz$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 hLfsz$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 iLfsz$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 jLfsz$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 kLfsz$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 lLfsz$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 mLfsz$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 nLfsz$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 oLfsz$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 pLfsz$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 qLfsz$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 rLfsz$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 sLfsz$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 tLfsz$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 aLfsz$a;a(I)Lfsz$a;
-