Class UVUtil

java.lang.Object
kr.toxicity.library.dynamicuv.UVUtil

public final class UVUtil extends Object
Utility class for UV operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    alpha(int value)
    Extracts the alpha value from an integer.
    static @NotNull com.google.gson.JsonObject
    packModel(@NotNull String textureName, @NotNull com.google.gson.JsonArray elements)
    Packs a model into a JSON object.
    static int
    rgb(int value)
    Extracts the RGB value from an integer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • rgb

      public static int rgb(int value)
      Extracts the RGB value from an integer.
      Parameters:
      value - the integer value
      Returns:
      the RGB value
    • alpha

      public static int alpha(int value)
      Extracts the alpha value from an integer.
      Parameters:
      value - the integer value
      Returns:
      the alpha value
    • packModel

      @NotNull public static @NotNull com.google.gson.JsonObject packModel(@NotNull @NotNull String textureName, @NotNull @NotNull com.google.gson.JsonArray elements)
      Packs a model into a JSON object.
      Parameters:
      textureName - the name of the texture
      elements - the elements of the model
      Returns:
      the packed model as a JSON object