use of net.minecraft.client.resources.DefaultResourcePack in project Hyperium by HyperiumClient.
the class HyperiumMinecraft method preinit.
public void preinit(List<IResourcePack> defaultResourcePacks, DefaultResourcePack mcDefaultResourcePack) {
Hyperium.INSTANCE.setLaunchTime(System.currentTimeMillis());
EventBus.INSTANCE.register(Hyperium.INSTANCE);
defaultResourcePacks.add(mcDefaultResourcePack);
AddonBootstrap.getAddonResourcePacks().stream().map(file -> file == null ? new AddonWorkspaceResourcePack() : new FileResourcePack(file)).forEach(defaultResourcePacks::add);
AddonMinecraftBootstrap.init();
CTJS.loadIntoJVM();
EventBus.INSTANCE.post(new PreInitializationEvent());
}
Aggregations