Search in sources :

Example 1 with DefaultResourcePack

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());
}
Also used : GuiOpenEvent(cc.hyperium.event.gui.GuiOpenEvent) PreInitializationEvent(cc.hyperium.event.client.PreInitializationEvent) Date(java.util.Date) FPSLimiter(cc.hyperium.utils.mods.FPSLimiter) Keyboard(org.lwjgl.input.Keyboard) LWJGLException(org.lwjgl.LWJGLException) ByteBuffer(java.nio.ByteBuffer) CallbackInfoReturnable(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable) CallbackInfo(org.spongepowered.asm.mixin.injection.callback.CallbackInfo) GuiIngame(net.minecraft.client.gui.GuiIngame) Hyperium(cc.hyperium.Hyperium) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) AddonMinecraftBootstrap(cc.hyperium.internal.addons.AddonMinecraftBootstrap) CTJS(com.chattriggers.ctjs.CTJS) Display(org.lwjgl.opengl.Display) FileResourcePack(net.minecraft.client.resources.FileResourcePack) DefaultResourcePack(net.minecraft.client.resources.DefaultResourcePack) ScaledResolution(net.minecraft.client.gui.ScaledResolution) HyperiumHandlers(cc.hyperium.handlers.HyperiumHandlers) Mouse(org.lwjgl.input.Mouse) WorldChangeEvent(cc.hyperium.event.world.WorldChangeEvent) SplashProgress(cc.hyperium.SplashProgress) List(java.util.List) GuiHyperiumScreenMainMenu(cc.hyperium.gui.GuiHyperiumScreenMainMenu) RenderPlayerEvent(cc.hyperium.event.render.RenderPlayerEvent) Bootstrap(net.minecraft.init.Bootstrap) SingleplayerJoinEvent(cc.hyperium.event.network.server.SingleplayerJoinEvent) Util(net.minecraft.util.Util) SimpleDateFormat(java.text.SimpleDateFormat) WorldClient(net.minecraft.client.multiplayer.WorldClient) Metadata(cc.hyperium.Metadata) Profiler(net.minecraft.profiler.Profiler) IAddon(cc.hyperium.internal.addons.IAddon) AddonBootstrap(cc.hyperium.internal.addons.AddonBootstrap) Minecraft(net.minecraft.client.Minecraft) IResourcePack(net.minecraft.client.resources.IResourcePack) GameSettings(net.minecraft.client.settings.GameSettings) Settings(cc.hyperium.config.Settings) cc.hyperium.event.interact(cc.hyperium.event.interact) RenderManager(net.minecraft.client.renderer.entity.RenderManager) WorldUnloadEvent(cc.hyperium.event.world.WorldUnloadEvent) TickEvent(cc.hyperium.event.client.TickEvent) Timer(net.minecraft.util.Timer) GuiGameOver(net.minecraft.client.gui.GuiGameOver) AddonWorkspaceResourcePack(cc.hyperium.utils.AddonWorkspaceResourcePack) File(java.io.File) InitializationEvent(cc.hyperium.event.client.InitializationEvent) CrashReport(net.minecraft.crash.CrashReport) cc.hyperium.event(cc.hyperium.event) GuiScreen(net.minecraft.client.gui.GuiScreen) DisplayMode(org.lwjgl.opengl.DisplayMode) Utils(cc.hyperium.utils.Utils) InputStream(java.io.InputStream) AddonWorkspaceResourcePack(cc.hyperium.utils.AddonWorkspaceResourcePack) PreInitializationEvent(cc.hyperium.event.client.PreInitializationEvent) FileResourcePack(net.minecraft.client.resources.FileResourcePack)

Aggregations

Hyperium (cc.hyperium.Hyperium)1 Metadata (cc.hyperium.Metadata)1 SplashProgress (cc.hyperium.SplashProgress)1 Settings (cc.hyperium.config.Settings)1 cc.hyperium.event (cc.hyperium.event)1 InitializationEvent (cc.hyperium.event.client.InitializationEvent)1 PreInitializationEvent (cc.hyperium.event.client.PreInitializationEvent)1 TickEvent (cc.hyperium.event.client.TickEvent)1 GuiOpenEvent (cc.hyperium.event.gui.GuiOpenEvent)1 cc.hyperium.event.interact (cc.hyperium.event.interact)1 SingleplayerJoinEvent (cc.hyperium.event.network.server.SingleplayerJoinEvent)1 RenderPlayerEvent (cc.hyperium.event.render.RenderPlayerEvent)1 WorldChangeEvent (cc.hyperium.event.world.WorldChangeEvent)1 WorldUnloadEvent (cc.hyperium.event.world.WorldUnloadEvent)1 GuiHyperiumScreenMainMenu (cc.hyperium.gui.GuiHyperiumScreenMainMenu)1 HyperiumHandlers (cc.hyperium.handlers.HyperiumHandlers)1 AddonBootstrap (cc.hyperium.internal.addons.AddonBootstrap)1 AddonMinecraftBootstrap (cc.hyperium.internal.addons.AddonMinecraftBootstrap)1 IAddon (cc.hyperium.internal.addons.IAddon)1 AddonWorkspaceResourcePack (cc.hyperium.utils.AddonWorkspaceResourcePack)1