Enum Class NativeImage.Format

java.lang.Object
java.lang.Enum<NativeImage.Format>
net.minecraft.client.texture.NativeImage.Format
All Implemented Interfaces:
Serializable, Comparable<NativeImage.Format>, Constable
Enclosing class:
NativeImage

@Environment(CLIENT) public static enum NativeImage.Format extends Enum<NativeImage.Format>
Mappings:
Namespace Name
named net/minecraft/client/texture/NativeImage$Format
intermediary net/minecraft/class_1011$class_1012
official ezp$a
  • Enum Constant Details

    • RGBA

      public static final NativeImage.Format 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 RGBA Lnet/minecraft/client/texture/NativeImage$Format;RGBA:Lnet/minecraft/client/texture/NativeImage$Format;
      intermediary field_4997 Lnet/minecraft/class_1011$class_1012;field_4997:Lnet/minecraft/class_1011$class_1012;
      official a Lezp$a;a:Lezp$a;
    • RGB

      public static final 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
      named RGB Lnet/minecraft/client/texture/NativeImage$Format;RGB:Lnet/minecraft/client/texture/NativeImage$Format;
      intermediary field_5001 Lnet/minecraft/class_1011$class_1012;field_5001:Lnet/minecraft/class_1011$class_1012;
      official b Lezp$a;b:Lezp$a;
    • LUMINANCE_ALPHA

      public static final 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
      named LUMINANCE_ALPHA Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE_ALPHA:Lnet/minecraft/client/texture/NativeImage$Format;
      intermediary field_5002 Lnet/minecraft/class_1011$class_1012;field_5002:Lnet/minecraft/class_1011$class_1012;
      official c Lezp$a;c:Lezp$a;
    • LUMINANCE

      public static final NativeImage.Format LUMINANCE
      Mappings:
      Namespace Name Mixin selector
      named LUMINANCE Lnet/minecraft/client/texture/NativeImage$Format;LUMINANCE:Lnet/minecraft/client/texture/NativeImage$Format;
      intermediary field_4998 Lnet/minecraft/class_1011$class_1012;field_4998:Lnet/minecraft/class_1011$class_1012;
      official d Lezp$a;d:Lezp$a;
  • Field Details

    • channelCount

      final int channelCount
      Mappings:
      Namespace Name Mixin selector
      named channelCount Lnet/minecraft/client/texture/NativeImage$Format;channelCount:I
      intermediary field_4994 Lnet/minecraft/class_1011$class_1012;field_4994:I
      official e Lezp$a;e:I
    • glFormat

      private final int glFormat
      Mappings:
      Namespace Name Mixin selector
      named glFormat Lnet/minecraft/client/texture/NativeImage$Format;glFormat:I
      intermediary field_4993 Lnet/minecraft/class_1011$class_1012;field_4993:I
      official f Lezp$a;f:I
    • hasRed

      private final boolean hasRed
      Mappings:
      Namespace Name Mixin selector
      named hasRed Lnet/minecraft/client/texture/NativeImage$Format;hasRed:Z
      intermediary field_5005 Lnet/minecraft/class_1011$class_1012;field_5005:Z
      official g Lezp$a;g:Z
    • hasGreen

      private final boolean hasGreen
      Mappings:
      Namespace Name Mixin selector
      named hasGreen Lnet/minecraft/client/texture/NativeImage$Format;hasGreen:Z
      intermediary field_5004 Lnet/minecraft/class_1011$class_1012;field_5004:Z
      official h Lezp$a;h:Z
    • hasBlue

      private final boolean hasBlue
      Mappings:
      Namespace Name Mixin selector
      named hasBlue Lnet/minecraft/client/texture/NativeImage$Format;hasBlue:Z
      intermediary field_5003 Lnet/minecraft/class_1011$class_1012;field_5003:Z
      official i Lezp$a;i:Z
    • hasLuminance

      private final boolean hasLuminance
      Mappings:
      Namespace Name Mixin selector
      named hasLuminance Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance:Z
      intermediary field_5000 Lnet/minecraft/class_1011$class_1012;field_5000:Z
      official j Lezp$a;j:Z
    • hasAlpha

      private final boolean hasAlpha
      Mappings:
      Namespace Name Mixin selector
      named hasAlpha Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha:Z
      intermediary field_4999 Lnet/minecraft/class_1011$class_1012;field_4999:Z
      official k Lezp$a;k:Z
    • redOffset

      private final int redOffset
      Mappings:
      Namespace Name Mixin selector
      named redOffset Lnet/minecraft/client/texture/NativeImage$Format;redOffset:I
      intermediary field_5010 Lnet/minecraft/class_1011$class_1012;field_5010:I
      official l Lezp$a;l:I
    • greenOffset

      private final int greenOffset
      Mappings:
      Namespace Name Mixin selector
      named greenOffset Lnet/minecraft/client/texture/NativeImage$Format;greenOffset:I
      intermediary field_5009 Lnet/minecraft/class_1011$class_1012;field_5009:I
      official m Lezp$a;m:I
    • blueOffset

      private final int blueOffset
      Mappings:
      Namespace Name Mixin selector
      named blueOffset Lnet/minecraft/client/texture/NativeImage$Format;blueOffset:I
      intermediary field_5008 Lnet/minecraft/class_1011$class_1012;field_5008:I
      official n Lezp$a;n:I
    • luminanceOffset

      private final int luminanceOffset
      Mappings:
      Namespace Name Mixin selector
      named luminanceOffset Lnet/minecraft/client/texture/NativeImage$Format;luminanceOffset:I
      intermediary field_5007 Lnet/minecraft/class_1011$class_1012;field_5007:I
      official o Lezp$a;o:I
    • alphaOffset

      private final int alphaOffset
      Mappings:
      Namespace Name Mixin selector
      named alphaOffset Lnet/minecraft/client/texture/NativeImage$Format;alphaOffset:I
      intermediary field_5006 Lnet/minecraft/class_1011$class_1012;field_5006:I
      official p Lezp$a;p:I
    • writeable

      private final boolean writeable
      Mappings:
      Namespace Name Mixin selector
      named writeable Lnet/minecraft/client/texture/NativeImage$Format;writeable:Z
      intermediary field_4996 Lnet/minecraft/class_1011$class_1012;field_4996:Z
      official q Lezp$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)V
      intermediary <init> Lnet/minecraft/class_1011$class_1012;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
      official <init> Lezp$a;<init>(Ljava/lang/String;IIIZZZZZIIIIIZ)V
  • Method Details

    • values

      public static NativeImage.Format[] 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

      public static NativeImage.Format valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getChannelCount

      public int getChannelCount()
      Mappings:
      Namespace Name Mixin selector
      named getChannelCount Lnet/minecraft/client/texture/NativeImage$Format;getChannelCount()I
      intermediary method_4335 Lnet/minecraft/class_1011$class_1012;method_4335()I
      official a Lezp$a;a()I
    • setPackAlignment

      public void setPackAlignment()
      Mappings:
      Namespace Name Mixin selector
      named setPackAlignment Lnet/minecraft/client/texture/NativeImage$Format;setPackAlignment()V
      intermediary method_4339 Lnet/minecraft/class_1011$class_1012;method_4339()V
      official b Lezp$a;b()V
    • setUnpackAlignment

      public void setUnpackAlignment()
      Mappings:
      Namespace Name Mixin selector
      named setUnpackAlignment Lnet/minecraft/client/texture/NativeImage$Format;setUnpackAlignment()V
      intermediary method_4340 Lnet/minecraft/class_1011$class_1012;method_4340()V
      official c Lezp$a;c()V
    • toGl

      public int toGl()
      Mappings:
      Namespace Name Mixin selector
      named toGl Lnet/minecraft/client/texture/NativeImage$Format;toGl()I
      intermediary method_4333 Lnet/minecraft/class_1011$class_1012;method_4333()I
      official d Lezp$a;d()I
    • hasRed

      public boolean hasRed()
      Mappings:
      Namespace Name Mixin selector
      named hasRed Lnet/minecraft/client/texture/NativeImage$Format;hasRed()Z
      intermediary method_35628 Lnet/minecraft/class_1011$class_1012;method_35628()Z
      official e Lezp$a;e()Z
    • hasGreen

      public boolean hasGreen()
      Mappings:
      Namespace Name Mixin selector
      named hasGreen Lnet/minecraft/client/texture/NativeImage$Format;hasGreen()Z
      intermediary method_35629 Lnet/minecraft/class_1011$class_1012;method_35629()Z
      official f Lezp$a;f()Z
    • hasBlue

      public boolean hasBlue()
      Mappings:
      Namespace Name Mixin selector
      named hasBlue Lnet/minecraft/client/texture/NativeImage$Format;hasBlue()Z
      intermediary method_35630 Lnet/minecraft/class_1011$class_1012;method_35630()Z
      official g Lezp$a;g()Z
    • hasLuminance

      public boolean hasLuminance()
      Mappings:
      Namespace Name Mixin selector
      named hasLuminance Lnet/minecraft/client/texture/NativeImage$Format;hasLuminance()Z
      intermediary method_35631 Lnet/minecraft/class_1011$class_1012;method_35631()Z
      official h Lezp$a;h()Z
    • hasAlpha

      public boolean hasAlpha()
      Mappings:
      Namespace Name Mixin selector
      named hasAlpha Lnet/minecraft/client/texture/NativeImage$Format;hasAlpha()Z
      intermediary method_4329 Lnet/minecraft/class_1011$class_1012;method_4329()Z
      official i Lezp$a;i()Z
    • getRedOffset

      public int getRedOffset()
      Mappings:
      Namespace Name Mixin selector
      named getRedOffset Lnet/minecraft/client/texture/NativeImage$Format;getRedOffset()I
      intermediary method_35632 Lnet/minecraft/class_1011$class_1012;method_35632()I
      official j Lezp$a;j()I
    • getGreenOffset

      public int getGreenOffset()
      Mappings:
      Namespace Name Mixin selector
      named getGreenOffset Lnet/minecraft/client/texture/NativeImage$Format;getGreenOffset()I
      intermediary method_35633 Lnet/minecraft/class_1011$class_1012;method_35633()I
      official k Lezp$a;k()I
    • getBlueOffset

      public int getBlueOffset()
      Mappings:
      Namespace Name Mixin selector
      named getBlueOffset Lnet/minecraft/client/texture/NativeImage$Format;getBlueOffset()I
      intermediary method_35634 Lnet/minecraft/class_1011$class_1012;method_35634()I
      official l Lezp$a;l()I
    • getLuminanceOffset

      public int getLuminanceOffset()
      Mappings:
      Namespace Name Mixin selector
      named getLuminanceOffset Lnet/minecraft/client/texture/NativeImage$Format;getLuminanceOffset()I
      intermediary method_35635 Lnet/minecraft/class_1011$class_1012;method_35635()I
      official m Lezp$a;m()I
    • getAlphaOffset

      public int getAlphaOffset()
      Mappings:
      Namespace Name Mixin selector
      named getAlphaOffset Lnet/minecraft/client/texture/NativeImage$Format;getAlphaOffset()I
      intermediary method_4332 Lnet/minecraft/class_1011$class_1012;method_4332()I
      official n Lezp$a;n()I
    • hasRedChannel

      public boolean hasRedChannel()
      Mappings:
      Namespace Name Mixin selector
      named hasRedChannel Lnet/minecraft/client/texture/NativeImage$Format;hasRedChannel()Z
      intermediary method_35636 Lnet/minecraft/class_1011$class_1012;method_35636()Z
      official o Lezp$a;o()Z
    • hasGreenChannel

      public boolean hasGreenChannel()
      Mappings:
      Namespace Name Mixin selector
      named hasGreenChannel Lnet/minecraft/client/texture/NativeImage$Format;hasGreenChannel()Z
      intermediary method_35637 Lnet/minecraft/class_1011$class_1012;method_35637()Z
      official p Lezp$a;p()Z
    • hasBlueChannel

      public boolean hasBlueChannel()
      Mappings:
      Namespace Name Mixin selector
      named hasBlueChannel Lnet/minecraft/client/texture/NativeImage$Format;hasBlueChannel()Z
      intermediary method_35638 Lnet/minecraft/class_1011$class_1012;method_35638()Z
      official q Lezp$a;q()Z
    • hasOpacityChannel

      public boolean hasOpacityChannel()
      Mappings:
      Namespace Name Mixin selector
      named hasOpacityChannel Lnet/minecraft/client/texture/NativeImage$Format;hasOpacityChannel()Z
      intermediary method_4337 Lnet/minecraft/class_1011$class_1012;method_4337()Z
      official r Lezp$a;r()Z
    • getRedChannelOffset

      public int getRedChannelOffset()
      Mappings:
      Namespace Name Mixin selector
      named getRedChannelOffset Lnet/minecraft/client/texture/NativeImage$Format;getRedChannelOffset()I
      intermediary method_35639 Lnet/minecraft/class_1011$class_1012;method_35639()I
      official s Lezp$a;s()I
    • getGreenChannelOffset

      public int getGreenChannelOffset()
      Mappings:
      Namespace Name Mixin selector
      named getGreenChannelOffset Lnet/minecraft/client/texture/NativeImage$Format;getGreenChannelOffset()I
      intermediary method_35640 Lnet/minecraft/class_1011$class_1012;method_35640()I
      official t Lezp$a;t()I
    • getBlueChannelOffset

      public int getBlueChannelOffset()
      Mappings:
      Namespace Name Mixin selector
      named getBlueChannelOffset Lnet/minecraft/client/texture/NativeImage$Format;getBlueChannelOffset()I
      intermediary method_35641 Lnet/minecraft/class_1011$class_1012;method_35641()I
      official u Lezp$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 getOpacityChannelOffset Lnet/minecraft/client/texture/NativeImage$Format;getOpacityChannelOffset()I
      intermediary method_4330 Lnet/minecraft/class_1011$class_1012;method_4330()I
      official v Lezp$a;v()I
    • isWriteable

      public boolean isWriteable()
      Mappings:
      Namespace Name Mixin selector
      named isWriteable Lnet/minecraft/client/texture/NativeImage$Format;isWriteable()Z
      intermediary method_4338 Lnet/minecraft/class_1011$class_1012;method_4338()Z
      official w Lezp$a;w()Z
    • fromChannelCount

      static NativeImage.Format fromChannelCount(int glFormat)
      Mappings:
      Namespace Name Mixin selector
      named fromChannelCount Lnet/minecraft/client/texture/NativeImage$Format;fromChannelCount(I)Lnet/minecraft/client/texture/NativeImage$Format;
      intermediary method_4336 Lnet/minecraft/class_1011$class_1012;method_4336(I)Lnet/minecraft/class_1011$class_1012;
      official a Lezp$a;a(I)Lezp$a;