Mix

public class Mix

Bukkit-side orchestrator around the platform-neutral MixEngine.

Responsibilities kept on this side because they touch Bukkit-only state: scheduling the work off the main thread, locating the plugin's data folder, sorting the discovered ThirdPartyResourcePacks by configured priority, resource-pack rerouting (driven by DefaultConfig), and the Bedrock conversion step. The actual unzip / copy-with-collision-resolution / zip / SHA-1 pipeline lives in resourcepackmanager-mixer.

Properties

Link copied to clipboard
public static File finalResourcePack
Link copied to clipboard
public static String finalSHA1
Link copied to clipboard
public static Array<byte> finalSHA1Bytes

Functions

Link copied to clipboard
public static void cancelStartupReuse()
Cancels only the startup cache verification owned by the current enable cycle.
Link copied to clipboard
public static File getFinalResourcePack()
Link copied to clipboard
public static String getFinalSHA1()
Link copied to clipboard
public static Array<byte> getFinalSHA1Bytes()
Link copied to clipboard
public static boolean mixResourcePacks(BooleanSupplier runCancellation)
Mixes resource packs for one concrete scheduler run.
Link copied to clipboard
public static void publishVerifiedExistingMixAsync()
Verifies and publishes the saved Java mix without waiting for monitored plugins to finish their own initialization.
Link copied to clipboard
public static void recursivelyCopyDirectory(File source, File target)
Recursively copy a directory tree with the same collision-resolution rules the engine uses (pack.mcmeta merge, JSON deep-merge for mergeable files, higher-priority wins for everything else).
Link copied to clipboard
public static void recursivelyDeleteDirectory(File directory)
Recursively delete a directory tree.