Package kr.toxicity.library.dynamicuv
Class UVUtil
java.lang.Object
kr.toxicity.library.dynamicuv.UVUtil
Utility class for UV operations.
-
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 textureelements- the elements of the model- Returns:
- the packed model as a JSON object
-