Package net.minecraft.client.texture
Enum NativeImage.Format
- All Implemented Interfaces:
Serializable,Comparable<NativeImage.Format>,java.lang.constant.Constable
- Enclosing class:
- NativeImage
@Environment(CLIENT) public static enum NativeImage.Format extends Enum<NativeImage.Format>
- Mappings:
Namespace Name official dmq$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 Constants Enum Constant Description ABGRBGRLUMINANCELUMINANCE_ALPHA -
Field Summary
Fields Modifier and Type Field Description private intalphaChannelOffsetprivate intblueOffsetprivate intchannelCountprivate intgreenOffsetprivate booleanhasAlphaprivate booleanhasBlueprivate booleanhasGreenprivate booleanhasLuminanceprivate booleanhasRedprivate intluminanceChannelOffsetprivate intpixelDataFormatprivate intredOffsetprivate booleanwriteable -
Constructor Summary
Constructors Modifier Constructor Description privateFormat(int channels, 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 Type Method Description intgetAlphaChannelOffset()intgetChannelCount()private static NativeImage.FormatgetFormat(int glFormat)intgetOpacityOffset()intgetPixelDataFormat()booleanhasAlphaChannel()booleanhasOpacityChannel()booleanisWriteable()voidsetPackAlignment()voidsetUnpackAlignment()static NativeImage.FormatvalueOf(String name)Returns the enum constant of this type with the specified name.static NativeImage.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABGR
- Mappings:
Namespace Name Mixin selector official aLdmq$a;a:Ldmq$a;intermediary field_4997Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;named ABGRLnet/minecraft/client/texture/NativeImage$Format;ABGR:Lnet/minecraft/client/texture/NativeImage$Format;
-
BGR
- Mappings:
Namespace Name Mixin selector official bLdmq$a;b:Ldmq$a;intermediary field_5001Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;named BGRLnet/minecraft/client/texture/NativeImage$Format;BGR:Lnet/minecraft/client/texture/NativeImage$Format;
-
LUMINANCE_ALPHA
- Mappings:
Namespace Name Mixin selector official cLdmq$a;c:Ldmq$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 dLdmq$a;d:Ldmq$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
private final int channelCount- Mappings:
Namespace Name Mixin selector official eLdmq$a;e:Iintermediary field_4994Lnet/minecraft/class_1011$class_1012;field_4994:Inamed channelCountLnet/minecraft/client/texture/NativeImage$Format;channelCount:I
-
pixelDataFormat
private final int pixelDataFormat- Mappings:
Namespace Name Mixin selector official fLdmq$a;f:Iintermediary field_4993Lnet/minecraft/class_1011$class_1012;field_4993:Inamed pixelDataFormatLnet/minecraft/client/texture/NativeImage$Format;pixelDataFormat:I
-
hasRed
private final boolean hasRed- Mappings:
Namespace Name Mixin selector official gLdmq$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 hLdmq$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 iLdmq$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 jLdmq$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 kLdmq$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 lLdmq$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 mLdmq$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 nLdmq$a;n:Iintermediary field_5008Lnet/minecraft/class_1011$class_1012;field_5008:Inamed blueOffsetLnet/minecraft/client/texture/NativeImage$Format;blueOffset:I
-
luminanceChannelOffset
private final int luminanceChannelOffset- Mappings:
Namespace Name Mixin selector official oLdmq$a;o:Iintermediary field_5007Lnet/minecraft/class_1011$class_1012;field_5007:Inamed luminanceChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;luminanceChannelOffset:I
-
alphaChannelOffset
private final int alphaChannelOffset- Mappings:
Namespace Name Mixin selector official pLdmq$a;p:Iintermediary field_5006Lnet/minecraft/class_1011$class_1012;field_5006:Inamed alphaChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;alphaChannelOffset:I
-
writeable
private final boolean writeable- Mappings:
Namespace Name Mixin selector official qLdmq$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 channels, 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>Ldmq$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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getChannelCount
public int getChannelCount()- Mappings:
Namespace Name Mixin selector official aLdmq$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 bLdmq$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 cLdmq$a;c()Vintermediary method_4340Lnet/minecraft/class_1011$class_1012;method_4340()Vnamed setUnpackAlignmentLnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()V
-
getPixelDataFormat
public int getPixelDataFormat()- Mappings:
Namespace Name Mixin selector official dLdmq$a;d()Iintermediary method_4333Lnet/minecraft/class_1011$class_1012;method_4333()Inamed getPixelDataFormatLnet/minecraft/client/texture/NativeImage$Format;getPixelDataFormat()I
-
hasAlphaChannel
public boolean hasAlphaChannel()- Mappings:
Namespace Name Mixin selector official eLdmq$a;e()Zintermediary method_4329Lnet/minecraft/class_1011$class_1012;method_4329()Znamed hasAlphaChannelLnet/minecraft/client/texture/NativeImage$Format;hasAlphaChannel()Z
-
getAlphaChannelOffset
public int getAlphaChannelOffset()- Mappings:
Namespace Name Mixin selector official fLdmq$a;f()Iintermediary method_4332Lnet/minecraft/class_1011$class_1012;method_4332()Inamed getAlphaChannelOffsetLnet/minecraft/client/texture/NativeImage$Format;getAlphaChannelOffset()I
-
hasOpacityChannel
public boolean hasOpacityChannel()- Mappings:
Namespace Name Mixin selector official gLdmq$a;g()Zintermediary method_4337Lnet/minecraft/class_1011$class_1012;method_4337()Znamed hasOpacityChannelLnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Z
-
getOpacityOffset
public int getOpacityOffset()- Mappings:
Namespace Name Mixin selector official hLdmq$a;h()Iintermediary method_4330Lnet/minecraft/class_1011$class_1012;method_4330()Inamed getOpacityOffsetLnet/minecraft/client/texture/NativeImage$Format;getOpacityOffset()I
-
isWriteable
public boolean isWriteable()- Mappings:
Namespace Name Mixin selector official iLdmq$a;i()Zintermediary method_4338Lnet/minecraft/class_1011$class_1012;method_4338()Znamed isWriteableLnet/minecraft/client/texture/NativeImage$Format;isWriteable()Z
-
getFormat
- Mappings:
Namespace Name Mixin selector official bLdmq$a;b(I)Ldmq$a;intermediary method_4336Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;named getFormatLnet/minecraft/client/texture/NativeImage$Format;getFormat(I)Lnet/minecraft/client/texture/NativeImage$Format;
-