java.lang.Object
com.hypixel.hytale.builtin.buildertools.objimport.TextureSampler

public final class TextureSampler extends Object
  • Field Details

  • Constructor Details

    • TextureSampler

      private TextureSampler()
  • Method Details

    • loadTexture

      @Nullable public static BufferedImage loadTexture(@Nonnull Path path)
    • sampleAt

      @Nonnull public static int[] sampleAt(@Nonnull BufferedImage texture, float u, float v)
    • sampleAlphaAt

      public static int sampleAlphaAt(@Nonnull BufferedImage texture, float u, float v)
    • clearCache

      public static void clearCache()
    • getAverageColor

      @Nullable public static int[] getAverageColor(@Nonnull Path path)