类 QuadTransformers

java.lang.Object
net.minecraftforge.client.model.QuadTransformers

public final class QuadTransformers extends Object
A collection of IQuadTransformer implementations.
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • QuadTransformers

      private QuadTransformers()
  • 方法详细资料

    • empty

      public static IQuadTransformer empty()
      返回 a BakedQuad transformer that does nothing。
      返回:
      a BakedQuad transformer that does nothing
    • applying

      public static IQuadTransformer applying(Transformation transform)
      返回 a new BakedQuad transformer that applies the specified Transformation
      返回:
      a new BakedQuad transformer that applies the specified Transformation
    • applyingLightmap

      public static IQuadTransformer applyingLightmap(int packedLight)
      返回:
      A new BakedQuad transformer that applies the specified packed light value.
    • applyingLightmap

      public static IQuadTransformer applyingLightmap(int blockLight, int skyLight)
      返回:
      A new BakedQuad transformer that applies the specified block and sky light values.
    • settingEmissivity

      public static IQuadTransformer settingEmissivity(int emissivity)
      返回:
      A BakedQuad transformer that sets the lightmap to the given emissivity (0-15)
    • settingMaxEmissivity

      public static IQuadTransformer settingMaxEmissivity()
      返回:
      A BakedQuad transformer that sets the lightmap to its max value
    • applyingColor

      public static IQuadTransformer applyingColor(int color)
      参数:
      color - The color in ARGB format.
      返回:
      A BakedQuad transformer that sets the color to the specified value.
    • applyingColor

      public static IQuadTransformer applyingColor(int red, int green, int blue)
      This method supplies a default alpha value of 255 (no transparency)
      参数:
      red - The red value (0-255)
      green - The green value (0-255)
      blue - The blue value (0-255)
      返回:
      A BakedQuad transformer that sets the color to the specified value.
    • applyingColor

      public static IQuadTransformer applyingColor(int alpha, int red, int green, int blue)
      参数:
      alpha - The alpha value (0-255)
      red - The red value (0-255)
      green - The green value (0-255)
      blue - The blue value (0-255)
      返回:
      A BakedQuad transformer that sets the color to the specified value.
    • toABGR

      public static int toABGR(int argb)
      Converts an ARGB color to an ABGR color, as the commonly used color format is not the format colors end up packed into. This function doubles as its own inverse.
      参数:
      argb - ARGB color
      返回:
      ABGR color