Commit b69587af82e99db9e3fc4798c16a1d2bc54bb77a
1 parent
219c0602
Add copyright headers to all source files
Showing
100 changed files
with
645 additions
and
146 deletions
Too many changes to show.
To preserve performance only 100 of 310 files are displayed.
src/client/java/com/mumfrey/liteloader/ChatFilter.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; | 8 | import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; |
src/client/java/com/mumfrey/liteloader/ChatListener.java
src/client/java/com/mumfrey/liteloader/ChatRenderListener.java
src/client/java/com/mumfrey/liteloader/EntityRenderListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.client.renderer.entity.Render; | 8 | import net.minecraft.client.renderer.entity.Render; |
src/client/java/com/mumfrey/liteloader/FrameBufferListener.java
src/client/java/com/mumfrey/liteloader/GameLoopListener.java
src/client/java/com/mumfrey/liteloader/HUDRenderListener.java
src/client/java/com/mumfrey/liteloader/InitCompleteListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | -import net.minecraft.client.Minecraft; | ||
4 | - | ||
5 | import com.mumfrey.liteloader.core.LiteLoader; | 8 | import com.mumfrey.liteloader.core.LiteLoader; |
6 | 9 | ||
10 | +import net.minecraft.client.Minecraft; | ||
11 | + | ||
7 | /** | 12 | /** |
8 | * Interface for mods which need to initialise stuff once the game | 13 | * Interface for mods which need to initialise stuff once the game |
9 | * initialisation is completed, for example mods which need to register new | 14 | * initialisation is completed, for example mods which need to register new |
src/client/java/com/mumfrey/liteloader/JoinGameListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
8 | +import com.mojang.realmsclient.dto.RealmsServer; | ||
9 | + | ||
3 | import net.minecraft.client.multiplayer.ServerData; | 10 | import net.minecraft.client.multiplayer.ServerData; |
4 | import net.minecraft.network.INetHandler; | 11 | import net.minecraft.network.INetHandler; |
5 | import net.minecraft.network.play.server.SPacketJoinGame; | 12 | import net.minecraft.network.play.server.SPacketJoinGame; |
6 | 13 | ||
7 | -import com.mojang.realmsclient.dto.RealmsServer; | ||
8 | - | ||
9 | 14 | ||
10 | /** | 15 | /** |
11 | * Interface for mods which wish to be notified when the player connects to a | 16 | * Interface for mods which wish to be notified when the player connects to a |
src/client/java/com/mumfrey/liteloader/OutboundChatFilter.java
src/client/java/com/mumfrey/liteloader/OutboundChatListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.network.play.client.CPacketChatMessage; | 8 | import net.minecraft.network.play.client.CPacketChatMessage; |
src/client/java/com/mumfrey/liteloader/PostLoginListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.network.login.INetHandlerLoginClient; | 8 | import net.minecraft.network.login.INetHandlerLoginClient; |
src/client/java/com/mumfrey/liteloader/PostRenderListener.java
src/client/java/com/mumfrey/liteloader/PreRenderListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.client.renderer.RenderGlobal; | 8 | import net.minecraft.client.renderer.RenderGlobal; |
src/client/java/com/mumfrey/liteloader/RenderListener.java
src/client/java/com/mumfrey/liteloader/ScreenshotListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
8 | +import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; | ||
9 | + | ||
3 | import net.minecraft.client.shader.Framebuffer; | 10 | import net.minecraft.client.shader.Framebuffer; |
4 | import net.minecraft.util.text.ITextComponent; | 11 | import net.minecraft.util.text.ITextComponent; |
5 | 12 | ||
6 | -import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; | ||
7 | - | ||
8 | /** | 13 | /** |
9 | * Interface for mods which want to handle or inhibit the saving of screenshots | 14 | * Interface for mods which want to handle or inhibit the saving of screenshots |
10 | * | 15 | * |
src/client/java/com/mumfrey/liteloader/Tickable.java
src/client/java/com/mumfrey/liteloader/ViewportListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.client.gui.ScaledResolution; | 8 | import net.minecraft.client.gui.ScaledResolution; |
src/client/java/com/mumfrey/liteloader/client/ClientPluginChannelsClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.client.ducks.IClientNetLoginHandler; | 8 | import com.mumfrey.liteloader.client.ducks.IClientNetLoginHandler; |
@@ -12,8 +17,8 @@ import net.minecraft.network.login.INetHandlerLoginClient; | @@ -12,8 +17,8 @@ import net.minecraft.network.login.INetHandlerLoginClient; | ||
12 | import net.minecraft.network.login.server.SPacketLoginSuccess; | 17 | import net.minecraft.network.login.server.SPacketLoginSuccess; |
13 | import net.minecraft.network.play.INetHandlerPlayClient; | 18 | import net.minecraft.network.play.INetHandlerPlayClient; |
14 | import net.minecraft.network.play.client.CPacketCustomPayload; | 19 | import net.minecraft.network.play.client.CPacketCustomPayload; |
15 | -import net.minecraft.network.play.server.SPacketJoinGame; | ||
16 | import net.minecraft.network.play.server.SPacketCustomPayload; | 20 | import net.minecraft.network.play.server.SPacketCustomPayload; |
21 | +import net.minecraft.network.play.server.SPacketJoinGame; | ||
17 | 22 | ||
18 | /** | 23 | /** |
19 | * Handler for client plugin channels | 24 | * Handler for client plugin channels |
src/client/java/com/mumfrey/liteloader/client/ClientProxy.java
src/client/java/com/mumfrey/liteloader/client/GameEngineClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
8 | +import java.util.ArrayList; | ||
3 | import java.util.Arrays; | 9 | import java.util.Arrays; |
4 | -import java.util.LinkedList; | ||
5 | import java.util.List; | 10 | import java.util.List; |
6 | 11 | ||
12 | +import com.mumfrey.liteloader.client.overlays.IMinecraft; | ||
13 | +import com.mumfrey.liteloader.common.GameEngine; | ||
14 | +import com.mumfrey.liteloader.common.Resources; | ||
15 | + | ||
7 | import net.minecraft.client.Minecraft; | 16 | import net.minecraft.client.Minecraft; |
8 | import net.minecraft.client.audio.SoundHandler; | 17 | import net.minecraft.client.audio.SoundHandler; |
9 | import net.minecraft.client.gui.GuiNewChat; | 18 | import net.minecraft.client.gui.GuiNewChat; |
@@ -14,10 +23,6 @@ import net.minecraft.client.settings.KeyBinding; | @@ -14,10 +23,6 @@ import net.minecraft.client.settings.KeyBinding; | ||
14 | import net.minecraft.profiler.Profiler; | 23 | import net.minecraft.profiler.Profiler; |
15 | import net.minecraft.server.integrated.IntegratedServer; | 24 | import net.minecraft.server.integrated.IntegratedServer; |
16 | 25 | ||
17 | -import com.mumfrey.liteloader.client.overlays.IMinecraft; | ||
18 | -import com.mumfrey.liteloader.common.GameEngine; | ||
19 | -import com.mumfrey.liteloader.common.Resources; | ||
20 | - | ||
21 | /** | 26 | /** |
22 | * | 27 | * |
23 | * @author Adam Mummery-Smith | 28 | * @author Adam Mummery-Smith |
@@ -142,7 +147,7 @@ public class GameEngineClient implements GameEngine<Minecraft, IntegratedServer> | @@ -142,7 +147,7 @@ public class GameEngineClient implements GameEngine<Minecraft, IntegratedServer> | ||
142 | @Override | 147 | @Override |
143 | public List<KeyBinding> getKeyBindings() | 148 | public List<KeyBinding> getKeyBindings() |
144 | { | 149 | { |
145 | - LinkedList<KeyBinding> keyBindings = new LinkedList<KeyBinding>(); | 150 | + ArrayList<KeyBinding> keyBindings = new ArrayList<KeyBinding>(); |
146 | keyBindings.addAll(Arrays.asList(this.engine.gameSettings.keyBindings)); | 151 | keyBindings.addAll(Arrays.asList(this.engine.gameSettings.keyBindings)); |
147 | return keyBindings; | 152 | return keyBindings; |
148 | } | 153 | } |
src/client/java/com/mumfrey/liteloader/client/LiteLoaderCoreProviderClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | -import net.minecraft.client.audio.SoundHandler; | ||
4 | -import net.minecraft.client.resources.IResourceManager; | ||
5 | -import net.minecraft.client.resources.IResourcePack; | ||
6 | -import net.minecraft.client.resources.SimpleReloadableResourceManager; | ||
7 | -import net.minecraft.network.INetHandler; | ||
8 | -import net.minecraft.network.play.server.SPacketJoinGame; | ||
9 | -import net.minecraft.world.World; | ||
10 | - | ||
11 | import com.mumfrey.liteloader.api.CoreProvider; | 8 | import com.mumfrey.liteloader.api.CoreProvider; |
12 | import com.mumfrey.liteloader.common.GameEngine; | 9 | import com.mumfrey.liteloader.common.GameEngine; |
13 | import com.mumfrey.liteloader.common.Resources; | 10 | import com.mumfrey.liteloader.common.Resources; |
@@ -16,6 +13,14 @@ import com.mumfrey.liteloader.core.LiteLoaderMods; | @@ -16,6 +13,14 @@ import com.mumfrey.liteloader.core.LiteLoaderMods; | ||
16 | import com.mumfrey.liteloader.launch.LoaderProperties; | 13 | import com.mumfrey.liteloader.launch.LoaderProperties; |
17 | import com.mumfrey.liteloader.resources.InternalResourcePack; | 14 | import com.mumfrey.liteloader.resources.InternalResourcePack; |
18 | 15 | ||
16 | +import net.minecraft.client.audio.SoundHandler; | ||
17 | +import net.minecraft.client.resources.IResourceManager; | ||
18 | +import net.minecraft.client.resources.IResourcePack; | ||
19 | +import net.minecraft.client.resources.SimpleReloadableResourceManager; | ||
20 | +import net.minecraft.network.INetHandler; | ||
21 | +import net.minecraft.network.play.server.SPacketJoinGame; | ||
22 | +import net.minecraft.world.World; | ||
23 | + | ||
19 | /** | 24 | /** |
20 | * CoreProvider which fixes SoundManager derping up at startup | 25 | * CoreProvider which fixes SoundManager derping up at startup |
21 | * | 26 | * |
src/client/java/com/mumfrey/liteloader/client/LiteLoaderEventBrokerClient.java
src/client/java/com/mumfrey/liteloader/client/LiteLoaderPanelManager.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | -import net.minecraft.client.Minecraft; | ||
4 | -import net.minecraft.client.gui.GuiIngameMenu; | ||
5 | -import net.minecraft.client.gui.GuiMainMenu; | ||
6 | -import net.minecraft.client.gui.GuiOptions; | ||
7 | -import net.minecraft.client.gui.GuiScreen; | ||
8 | -import net.minecraft.client.resources.I18n; | ||
9 | - | ||
10 | import org.lwjgl.input.Keyboard; | 8 | import org.lwjgl.input.Keyboard; |
11 | 9 | ||
12 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; | 10 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; |
@@ -20,6 +18,13 @@ import com.mumfrey.liteloader.launch.LoaderProperties; | @@ -20,6 +18,13 @@ import com.mumfrey.liteloader.launch.LoaderProperties; | ||
20 | import com.mumfrey.liteloader.modconfig.ConfigManager; | 18 | import com.mumfrey.liteloader.modconfig.ConfigManager; |
21 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; | 19 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; |
22 | 20 | ||
21 | +import net.minecraft.client.Minecraft; | ||
22 | +import net.minecraft.client.gui.GuiIngameMenu; | ||
23 | +import net.minecraft.client.gui.GuiMainMenu; | ||
24 | +import net.minecraft.client.gui.GuiOptions; | ||
25 | +import net.minecraft.client.gui.GuiScreen; | ||
26 | +import net.minecraft.client.resources.I18n; | ||
27 | + | ||
23 | /** | 28 | /** |
24 | * Observer which handles the display of the mod panel | 29 | * Observer which handles the display of the mod panel |
25 | * | 30 | * |
src/client/java/com/mumfrey/liteloader/client/PacketEventsClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | import com.mojang.realmsclient.dto.RealmsServer; | 8 | import com.mojang.realmsclient.dto.RealmsServer; |
4 | -import com.mumfrey.liteloader.*; | 9 | +import com.mumfrey.liteloader.ChatFilter; |
10 | +import com.mumfrey.liteloader.ChatListener; | ||
11 | +import com.mumfrey.liteloader.JoinGameListener; | ||
12 | +import com.mumfrey.liteloader.PostLoginListener; | ||
13 | +import com.mumfrey.liteloader.PreJoinGameListener; | ||
5 | import com.mumfrey.liteloader.common.ducks.IChatPacket; | 14 | import com.mumfrey.liteloader.common.ducks.IChatPacket; |
6 | import com.mumfrey.liteloader.common.transformers.PacketEventInfo; | 15 | import com.mumfrey.liteloader.common.transformers.PacketEventInfo; |
7 | import com.mumfrey.liteloader.core.ClientPluginChannels; | 16 | import com.mumfrey.liteloader.core.ClientPluginChannels; |
@@ -23,11 +32,11 @@ import net.minecraft.network.Packet; | @@ -23,11 +32,11 @@ import net.minecraft.network.Packet; | ||
23 | import net.minecraft.network.login.INetHandlerLoginClient; | 32 | import net.minecraft.network.login.INetHandlerLoginClient; |
24 | import net.minecraft.network.login.server.SPacketLoginSuccess; | 33 | import net.minecraft.network.login.server.SPacketLoginSuccess; |
25 | import net.minecraft.network.play.INetHandlerPlayClient; | 34 | import net.minecraft.network.play.INetHandlerPlayClient; |
26 | -import net.minecraft.network.play.server.SPacketJoinGame; | ||
27 | import net.minecraft.network.play.server.SPacketChat; | 35 | import net.minecraft.network.play.server.SPacketChat; |
28 | -import net.minecraft.util.text.TextComponentString; | ||
29 | -import net.minecraft.util.text.ITextComponent; | 36 | +import net.minecraft.network.play.server.SPacketJoinGame; |
30 | import net.minecraft.util.IThreadListener; | 37 | import net.minecraft.util.IThreadListener; |
38 | +import net.minecraft.util.text.ITextComponent; | ||
39 | +import net.minecraft.util.text.TextComponentString; | ||
31 | 40 | ||
32 | /** | 41 | /** |
33 | * Client-side packet event handlers | 42 | * Client-side packet event handlers |
src/client/java/com/mumfrey/liteloader/client/ResourceObserver.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | import java.io.File; | 8 | import java.io.File; |
4 | import java.util.HashMap; | 9 | import java.util.HashMap; |
5 | import java.util.Map; | 10 | import java.util.Map; |
6 | 11 | ||
7 | -import net.minecraft.client.resources.IResourceManager; | ||
8 | -import net.minecraft.client.resources.IResourcePack; | ||
9 | - | ||
10 | import com.mumfrey.liteloader.LiteMod; | 12 | import com.mumfrey.liteloader.LiteMod; |
11 | import com.mumfrey.liteloader.api.ModLoadObserver; | 13 | import com.mumfrey.liteloader.api.ModLoadObserver; |
12 | import com.mumfrey.liteloader.common.Resources; | 14 | import com.mumfrey.liteloader.common.Resources; |
@@ -17,6 +19,9 @@ import com.mumfrey.liteloader.resources.ModResourcePack; | @@ -17,6 +19,9 @@ import com.mumfrey.liteloader.resources.ModResourcePack; | ||
17 | import com.mumfrey.liteloader.resources.ModResourcePackDir; | 19 | import com.mumfrey.liteloader.resources.ModResourcePackDir; |
18 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; | 20 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; |
19 | 21 | ||
22 | +import net.minecraft.client.resources.IResourceManager; | ||
23 | +import net.minecraft.client.resources.IResourcePack; | ||
24 | + | ||
20 | /** | 25 | /** |
21 | * Observer which handles registering mods on the client as resource packs | 26 | * Observer which handles registering mods on the client as resource packs |
22 | * | 27 | * |
src/client/java/com/mumfrey/liteloader/client/ResourcesClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | import java.util.HashMap; | 8 | import java.util.HashMap; |
4 | import java.util.List; | 9 | import java.util.List; |
5 | import java.util.Map; | 10 | import java.util.Map; |
6 | 11 | ||
7 | -import net.minecraft.client.Minecraft; | ||
8 | -import net.minecraft.client.resources.IResourceManager; | ||
9 | -import net.minecraft.client.resources.IResourcePack; | ||
10 | - | ||
11 | import com.mumfrey.liteloader.client.overlays.IMinecraft; | 12 | import com.mumfrey.liteloader.client.overlays.IMinecraft; |
12 | import com.mumfrey.liteloader.common.LoadingProgress; | 13 | import com.mumfrey.liteloader.common.LoadingProgress; |
13 | import com.mumfrey.liteloader.common.Resources; | 14 | import com.mumfrey.liteloader.common.Resources; |
14 | 15 | ||
16 | +import net.minecraft.client.Minecraft; | ||
17 | +import net.minecraft.client.resources.IResourceManager; | ||
18 | +import net.minecraft.client.resources.IResourcePack; | ||
19 | + | ||
15 | public class ResourcesClient implements Resources<IResourceManager, IResourcePack> | 20 | public class ResourcesClient implements Resources<IResourceManager, IResourcePack> |
16 | { | 21 | { |
17 | private final Minecraft engine = Minecraft.getMinecraft(); | 22 | private final Minecraft engine = Minecraft.getMinecraft(); |
src/client/java/com/mumfrey/liteloader/client/SoundHandlerReloadInhibitor.java
src/client/java/com/mumfrey/liteloader/client/Translator.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client; | 6 | package com.mumfrey.liteloader.client; |
2 | 7 | ||
3 | -import net.minecraft.client.resources.I18n; | ||
4 | - | ||
5 | import com.mumfrey.liteloader.api.TranslationProvider; | 8 | import com.mumfrey.liteloader.api.TranslationProvider; |
6 | 9 | ||
10 | +import net.minecraft.client.resources.I18n; | ||
11 | + | ||
7 | public class Translator implements TranslationProvider | 12 | public class Translator implements TranslationProvider |
8 | { | 13 | { |
9 | /* (non-Javadoc) | 14 | /* (non-Javadoc) |
src/client/java/com/mumfrey/liteloader/client/api/LiteLoaderBrandingProvider.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.api; | 6 | package com.mumfrey.liteloader.client.api; |
2 | 7 | ||
3 | import java.net.URI; | 8 | import java.net.URI; |
4 | 9 | ||
5 | -import net.minecraft.client.resources.I18n; | ||
6 | -import net.minecraft.util.ResourceLocation; | ||
7 | - | ||
8 | import com.mumfrey.liteloader.api.BrandingProvider; | 10 | import com.mumfrey.liteloader.api.BrandingProvider; |
9 | import com.mumfrey.liteloader.client.util.render.IconAbsolute; | 11 | import com.mumfrey.liteloader.client.util.render.IconAbsolute; |
10 | import com.mumfrey.liteloader.core.LiteLoader; | 12 | import com.mumfrey.liteloader.core.LiteLoader; |
11 | import com.mumfrey.liteloader.util.render.Icon; | 13 | import com.mumfrey.liteloader.util.render.Icon; |
12 | 14 | ||
15 | +import net.minecraft.client.resources.I18n; | ||
16 | +import net.minecraft.util.ResourceLocation; | ||
17 | + | ||
13 | /** | 18 | /** |
14 | * LiteLoader's branding provider | 19 | * LiteLoader's branding provider |
15 | * | 20 | * |
src/client/java/com/mumfrey/liteloader/client/api/LiteLoaderCoreAPIClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.api; | 6 | package com.mumfrey.liteloader.client.api; |
2 | 7 | ||
3 | import java.util.List; | 8 | import java.util.List; |
4 | 9 | ||
5 | -import net.minecraft.client.Minecraft; | ||
6 | -import net.minecraft.server.integrated.IntegratedServer; | ||
7 | - | ||
8 | import com.google.common.collect.ImmutableList; | 10 | import com.google.common.collect.ImmutableList; |
9 | import com.google.common.collect.ObjectArrays; | 11 | import com.google.common.collect.ObjectArrays; |
10 | import com.mumfrey.liteloader.api.CoreProvider; | 12 | import com.mumfrey.liteloader.api.CoreProvider; |
@@ -20,6 +22,9 @@ import com.mumfrey.liteloader.interfaces.ObjectFactory; | @@ -20,6 +22,9 @@ import com.mumfrey.liteloader.interfaces.ObjectFactory; | ||
20 | import com.mumfrey.liteloader.messaging.MessageBus; | 22 | import com.mumfrey.liteloader.messaging.MessageBus; |
21 | import com.mumfrey.liteloader.transformers.event.json.ModEvents; | 23 | import com.mumfrey.liteloader.transformers.event.json.ModEvents; |
22 | 24 | ||
25 | +import net.minecraft.client.Minecraft; | ||
26 | +import net.minecraft.server.integrated.IntegratedServer; | ||
27 | + | ||
23 | /** | 28 | /** |
24 | * Client side of the core API | 29 | * Client side of the core API |
25 | * | 30 | * |
src/client/java/com/mumfrey/liteloader/client/api/LiteLoaderModInfoDecorator.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.api; | 6 | package com.mumfrey.liteloader.client.api; |
2 | 7 | ||
3 | import java.util.List; | 8 | import java.util.List; |
4 | 9 | ||
5 | -import net.minecraft.client.resources.I18n; | ||
6 | - | ||
7 | import com.mumfrey.liteloader.api.ModInfoDecorator; | 10 | import com.mumfrey.liteloader.api.ModInfoDecorator; |
8 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; | 11 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; |
9 | import com.mumfrey.liteloader.client.gui.modlist.GuiModListPanel; | 12 | import com.mumfrey.liteloader.client.gui.modlist.GuiModListPanel; |
@@ -12,6 +15,8 @@ import com.mumfrey.liteloader.client.util.render.IconAbsoluteClickable; | @@ -12,6 +15,8 @@ import com.mumfrey.liteloader.client.util.render.IconAbsoluteClickable; | ||
12 | import com.mumfrey.liteloader.core.ModInfo; | 15 | import com.mumfrey.liteloader.core.ModInfo; |
13 | import com.mumfrey.liteloader.util.render.IconTextured; | 16 | import com.mumfrey.liteloader.util.render.IconTextured; |
14 | 17 | ||
18 | +import net.minecraft.client.resources.I18n; | ||
19 | + | ||
15 | /** | 20 | /** |
16 | * ModInfo decorator | 21 | * ModInfo decorator |
17 | * | 22 | * |
src/client/java/com/mumfrey/liteloader/client/api/ObjectFactoryClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.api; | 6 | package com.mumfrey.liteloader.client.api; |
2 | 7 | ||
3 | -import net.minecraft.client.Minecraft; | ||
4 | -import net.minecraft.client.gui.GuiScreen; | ||
5 | -import net.minecraft.launchwrapper.Launch; | ||
6 | -import net.minecraft.server.integrated.IntegratedServer; | ||
7 | - | ||
8 | -import com.mumfrey.liteloader.client.LiteLoaderEventBrokerClient; | ||
9 | import com.mumfrey.liteloader.client.ClientPluginChannelsClient; | 8 | import com.mumfrey.liteloader.client.ClientPluginChannelsClient; |
10 | import com.mumfrey.liteloader.client.GameEngineClient; | 9 | import com.mumfrey.liteloader.client.GameEngineClient; |
10 | +import com.mumfrey.liteloader.client.LiteLoaderEventBrokerClient; | ||
11 | import com.mumfrey.liteloader.client.LiteLoaderPanelManager; | 11 | import com.mumfrey.liteloader.client.LiteLoaderPanelManager; |
12 | import com.mumfrey.liteloader.client.PacketEventsClient; | 12 | import com.mumfrey.liteloader.client.PacketEventsClient; |
13 | import com.mumfrey.liteloader.client.gui.startup.LoadingBar; | 13 | import com.mumfrey.liteloader.client.gui.startup.LoadingBar; |
14 | import com.mumfrey.liteloader.common.GameEngine; | 14 | import com.mumfrey.liteloader.common.GameEngine; |
15 | import com.mumfrey.liteloader.core.ClientPluginChannels; | 15 | import com.mumfrey.liteloader.core.ClientPluginChannels; |
16 | -import com.mumfrey.liteloader.core.LiteLoaderEventBroker; | ||
17 | import com.mumfrey.liteloader.core.LiteLoader; | 16 | import com.mumfrey.liteloader.core.LiteLoader; |
17 | +import com.mumfrey.liteloader.core.LiteLoaderEventBroker; | ||
18 | import com.mumfrey.liteloader.core.PacketEvents; | 18 | import com.mumfrey.liteloader.core.PacketEvents; |
19 | import com.mumfrey.liteloader.core.ServerPluginChannels; | 19 | import com.mumfrey.liteloader.core.ServerPluginChannels; |
20 | -import com.mumfrey.liteloader.interfaces.PanelManager; | ||
21 | import com.mumfrey.liteloader.interfaces.ObjectFactory; | 20 | import com.mumfrey.liteloader.interfaces.ObjectFactory; |
21 | +import com.mumfrey.liteloader.interfaces.PanelManager; | ||
22 | import com.mumfrey.liteloader.launch.LoaderEnvironment; | 22 | import com.mumfrey.liteloader.launch.LoaderEnvironment; |
23 | import com.mumfrey.liteloader.launch.LoaderProperties; | 23 | import com.mumfrey.liteloader.launch.LoaderProperties; |
24 | import com.mumfrey.liteloader.permissions.PermissionsManagerClient; | 24 | import com.mumfrey.liteloader.permissions.PermissionsManagerClient; |
@@ -26,6 +26,11 @@ import com.mumfrey.liteloader.permissions.PermissionsManagerServer; | @@ -26,6 +26,11 @@ import com.mumfrey.liteloader.permissions.PermissionsManagerServer; | ||
26 | import com.mumfrey.liteloader.util.Input; | 26 | import com.mumfrey.liteloader.util.Input; |
27 | import com.mumfrey.liteloader.util.InputManager; | 27 | import com.mumfrey.liteloader.util.InputManager; |
28 | 28 | ||
29 | +import net.minecraft.client.Minecraft; | ||
30 | +import net.minecraft.client.gui.GuiScreen; | ||
31 | +import net.minecraft.launchwrapper.Launch; | ||
32 | +import net.minecraft.server.integrated.IntegratedServer; | ||
33 | + | ||
29 | /** | 34 | /** |
30 | * Factory for lifetime loader objects for the client side | 35 | * Factory for lifetime loader objects for the client side |
31 | * | 36 | * |
src/client/java/com/mumfrey/liteloader/client/ducks/IClientNetLoginHandler.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.ducks; | 6 | package com.mumfrey.liteloader.client.ducks; |
2 | 7 | ||
3 | import net.minecraft.network.NetworkManager; | 8 | import net.minecraft.network.NetworkManager; |
src/client/java/com/mumfrey/liteloader/client/ducks/IFramebuffer.java
src/client/java/com/mumfrey/liteloader/client/ducks/IMutableRegistry.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.ducks; | 6 | package com.mumfrey.liteloader.client.ducks; |
2 | 7 | ||
3 | public interface IMutableRegistry<K, V> | 8 | public interface IMutableRegistry<K, V> |
src/client/java/com/mumfrey/liteloader/client/ducks/IReloadable.java
src/client/java/com/mumfrey/liteloader/client/ducks/IRenderManager.java
src/client/java/com/mumfrey/liteloader/client/ducks/ITileEntityRendererDispatcher.java
src/client/java/com/mumfrey/liteloader/client/gui/GuiCheckbox.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
4 | -import net.minecraft.client.Minecraft; | ||
5 | -import net.minecraft.client.gui.GuiButton; | ||
6 | 9 | ||
7 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; | 10 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; |
8 | 11 | ||
12 | +import net.minecraft.client.Minecraft; | ||
13 | +import net.minecraft.client.gui.GuiButton; | ||
14 | + | ||
9 | /** | 15 | /** |
10 | * Super-simple implementation of a checkbox control | 16 | * Super-simple implementation of a checkbox control |
11 | * | 17 | * |
src/client/java/com/mumfrey/liteloader/client/gui/GuiHoverLabel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; | 8 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; |
src/client/java/com/mumfrey/liteloader/client/gui/GuiLiteLoaderPanel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
@@ -811,4 +816,4 @@ public class GuiLiteLoaderPanel extends GuiScreen | @@ -811,4 +816,4 @@ public class GuiLiteLoaderPanel extends GuiScreen | ||
811 | { | 816 | { |
812 | glDrawTexturedRect(x, y, icon.getIconWidth(), icon.getIconHeight(), icon.getMinU(), icon.getMinV(), icon.getMaxU(), icon.getMaxV(), alpha); | 817 | glDrawTexturedRect(x, y, icon.getIconWidth(), icon.getIconHeight(), icon.getMinU(), icon.getMinV(), icon.getMaxU(), icon.getMaxV(), alpha); |
813 | } | 818 | } |
814 | -} | ||
815 | \ No newline at end of file | 819 | \ No newline at end of file |
820 | +} |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
4 | 9 | ||
5 | -import java.util.LinkedList; | 10 | +import java.util.ArrayList; |
6 | import java.util.List; | 11 | import java.util.List; |
7 | 12 | ||
13 | +import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; | ||
14 | + | ||
8 | import net.minecraft.client.Minecraft; | 15 | import net.minecraft.client.Minecraft; |
9 | import net.minecraft.client.gui.Gui; | 16 | import net.minecraft.client.gui.Gui; |
10 | import net.minecraft.client.gui.GuiButton; | 17 | import net.minecraft.client.gui.GuiButton; |
11 | 18 | ||
12 | -import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; | ||
13 | - | ||
14 | /** | 19 | /** |
15 | * Base class for panels | 20 | * Base class for panels |
16 | * | 21 | * |
@@ -30,7 +35,7 @@ public abstract class GuiPanel extends Gui | @@ -30,7 +35,7 @@ public abstract class GuiPanel extends Gui | ||
30 | /** | 35 | /** |
31 | * Buttons | 36 | * Buttons |
32 | */ | 37 | */ |
33 | - protected List<GuiButton> controls = new LinkedList<GuiButton>(); | 38 | + protected List<GuiButton> controls = new ArrayList<GuiButton>(); |
34 | 39 | ||
35 | /** | 40 | /** |
36 | * Current available width | 41 | * Current available width |
@@ -100,7 +105,9 @@ public abstract class GuiPanel extends Gui | @@ -100,7 +105,9 @@ public abstract class GuiPanel extends Gui | ||
100 | void draw(int mouseX, int mouseY, float partialTicks) | 105 | void draw(int mouseX, int mouseY, float partialTicks) |
101 | { | 106 | { |
102 | for (GuiButton control : this.controls) | 107 | for (GuiButton control : this.controls) |
108 | + { | ||
103 | control.drawButton(this.mc, mouseX, mouseY); | 109 | control.drawButton(this.mc, mouseX, mouseY); |
110 | + } | ||
104 | } | 111 | } |
105 | 112 | ||
106 | /** | 113 | /** |
@@ -206,4 +213,4 @@ public abstract class GuiPanel extends Gui | @@ -206,4 +213,4 @@ public abstract class GuiPanel extends Gui | ||
206 | glAlphaFunc(GL_GREATER, 0.1F); | 213 | glAlphaFunc(GL_GREATER, 0.1F); |
207 | glDisableBlend(); | 214 | glDisableBlend(); |
208 | } | 215 | } |
209 | -} | ||
210 | \ No newline at end of file | 216 | \ No newline at end of file |
217 | +} |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelAbout.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import java.net.URI; | 8 | import java.net.URI; |
@@ -6,12 +11,6 @@ import java.util.List; | @@ -6,12 +11,6 @@ import java.util.List; | ||
6 | import java.util.Set; | 11 | import java.util.Set; |
7 | import java.util.TreeSet; | 12 | import java.util.TreeSet; |
8 | 13 | ||
9 | -import net.minecraft.client.Minecraft; | ||
10 | -import net.minecraft.client.gui.FontRenderer; | ||
11 | -import net.minecraft.client.gui.GuiButton; | ||
12 | -import net.minecraft.client.resources.I18n; | ||
13 | -import net.minecraft.util.ResourceLocation; | ||
14 | - | ||
15 | import org.lwjgl.input.Keyboard; | 14 | import org.lwjgl.input.Keyboard; |
16 | 15 | ||
17 | import com.mumfrey.liteloader.api.BrandingProvider; | 16 | import com.mumfrey.liteloader.api.BrandingProvider; |
@@ -22,6 +21,12 @@ import com.mumfrey.liteloader.core.LiteLoader; | @@ -22,6 +21,12 @@ import com.mumfrey.liteloader.core.LiteLoader; | ||
22 | import com.mumfrey.liteloader.util.SortableValue; | 21 | import com.mumfrey.liteloader.util.SortableValue; |
23 | import com.mumfrey.liteloader.util.render.Icon; | 22 | import com.mumfrey.liteloader.util.render.Icon; |
24 | 23 | ||
24 | +import net.minecraft.client.Minecraft; | ||
25 | +import net.minecraft.client.gui.FontRenderer; | ||
26 | +import net.minecraft.client.gui.GuiButton; | ||
27 | +import net.minecraft.client.resources.I18n; | ||
28 | +import net.minecraft.util.ResourceLocation; | ||
29 | + | ||
25 | /** | 30 | /** |
26 | * "About LiteLoader" panel which docks in the mod info screen and lists | 31 | * "About LiteLoader" panel which docks in the mod info screen and lists |
27 | * information about the installed APIs. | 32 | * information about the installed APIs. |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelConfigContainer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
4 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | 9 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; |
5 | -import net.minecraft.client.Minecraft; | ||
6 | -import net.minecraft.client.gui.GuiButton; | ||
7 | -import net.minecraft.client.resources.I18n; | ||
8 | 10 | ||
9 | import com.mumfrey.liteloader.LiteMod; | 11 | import com.mumfrey.liteloader.LiteMod; |
10 | import com.mumfrey.liteloader.modconfig.ConfigPanel; | 12 | import com.mumfrey.liteloader.modconfig.ConfigPanel; |
11 | import com.mumfrey.liteloader.modconfig.ConfigPanelHost; | 13 | import com.mumfrey.liteloader.modconfig.ConfigPanelHost; |
12 | 14 | ||
15 | +import net.minecraft.client.Minecraft; | ||
16 | +import net.minecraft.client.gui.GuiButton; | ||
17 | +import net.minecraft.client.resources.I18n; | ||
18 | + | ||
13 | /** | 19 | /** |
14 | * Config panel container, this handles drawing the configuration panel chrome | 20 | * Config panel container, this handles drawing the configuration panel chrome |
15 | * and also hosts the configuration panels themselves to support scrolling and | 21 | * and also hosts the configuration panels themselves to support scrolling and |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelError.java
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelLiteLoaderLog.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
@@ -6,18 +11,18 @@ import java.net.URI; | @@ -6,18 +11,18 @@ import java.net.URI; | ||
6 | import java.util.ArrayList; | 11 | import java.util.ArrayList; |
7 | import java.util.List; | 12 | import java.util.List; |
8 | 13 | ||
9 | -import net.minecraft.client.Minecraft; | ||
10 | -import net.minecraft.client.gui.GuiButton; | ||
11 | -import net.minecraft.client.gui.ScaledResolution; | ||
12 | -import net.minecraft.client.resources.I18n; | ||
13 | -import net.minecraft.util.Session; | ||
14 | - | ||
15 | import org.lwjgl.input.Keyboard; | 14 | import org.lwjgl.input.Keyboard; |
16 | 15 | ||
17 | import com.mumfrey.liteloader.core.LiteLoader; | 16 | import com.mumfrey.liteloader.core.LiteLoader; |
18 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; | 17 | import com.mumfrey.liteloader.util.log.LiteLoaderLogger; |
19 | import com.mumfrey.liteloader.util.net.LiteLoaderLogUpload; | 18 | import com.mumfrey.liteloader.util.net.LiteLoaderLogUpload; |
20 | 19 | ||
20 | +import net.minecraft.client.Minecraft; | ||
21 | +import net.minecraft.client.gui.GuiButton; | ||
22 | +import net.minecraft.client.gui.ScaledResolution; | ||
23 | +import net.minecraft.client.resources.I18n; | ||
24 | +import net.minecraft.util.Session; | ||
25 | + | ||
21 | /** | 26 | /** |
22 | * | 27 | * |
23 | * @author Adam Mummery-Smith | 28 | * @author Adam Mummery-Smith |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelMods.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
@@ -5,10 +10,6 @@ import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | @@ -5,10 +10,6 @@ import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | ||
5 | 10 | ||
6 | import java.util.List; | 11 | import java.util.List; |
7 | 12 | ||
8 | -import net.minecraft.client.Minecraft; | ||
9 | -import net.minecraft.client.gui.GuiButton; | ||
10 | -import net.minecraft.client.resources.I18n; | ||
11 | - | ||
12 | import org.lwjgl.input.Keyboard; | 13 | import org.lwjgl.input.Keyboard; |
13 | 14 | ||
14 | import com.mumfrey.liteloader.LiteMod; | 15 | import com.mumfrey.liteloader.LiteMod; |
@@ -20,6 +21,10 @@ import com.mumfrey.liteloader.launch.LoaderEnvironment; | @@ -20,6 +21,10 @@ import com.mumfrey.liteloader.launch.LoaderEnvironment; | ||
20 | import com.mumfrey.liteloader.modconfig.ConfigManager; | 21 | import com.mumfrey.liteloader.modconfig.ConfigManager; |
21 | import com.mumfrey.liteloader.modconfig.ConfigPanel; | 22 | import com.mumfrey.liteloader.modconfig.ConfigPanel; |
22 | 23 | ||
24 | +import net.minecraft.client.Minecraft; | ||
25 | +import net.minecraft.client.gui.GuiButton; | ||
26 | +import net.minecraft.client.resources.I18n; | ||
27 | + | ||
23 | /** | 28 | /** |
24 | * Mods panel | 29 | * Mods panel |
25 | * | 30 | * |
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelSettings.java
src/client/java/com/mumfrey/liteloader/client/gui/GuiPanelUpdateCheck.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import java.net.URI; | 8 | import java.net.URI; |
4 | 9 | ||
5 | -import net.minecraft.client.Minecraft; | ||
6 | -import net.minecraft.client.gui.FontRenderer; | ||
7 | -import net.minecraft.client.gui.GuiButton; | ||
8 | -import net.minecraft.client.gui.ScaledResolution; | ||
9 | -import net.minecraft.client.resources.I18n; | ||
10 | - | ||
11 | import org.lwjgl.input.Keyboard; | 10 | import org.lwjgl.input.Keyboard; |
12 | 11 | ||
13 | import com.mumfrey.liteloader.core.LiteLoaderUpdateSite; | 12 | import com.mumfrey.liteloader.core.LiteLoaderUpdateSite; |
@@ -15,6 +14,12 @@ import com.mumfrey.liteloader.launch.ClassPathUtilities; | @@ -15,6 +14,12 @@ import com.mumfrey.liteloader.launch.ClassPathUtilities; | ||
15 | import com.mumfrey.liteloader.launch.LoaderProperties; | 14 | import com.mumfrey.liteloader.launch.LoaderProperties; |
16 | import com.mumfrey.liteloader.update.UpdateSite; | 15 | import com.mumfrey.liteloader.update.UpdateSite; |
17 | 16 | ||
17 | +import net.minecraft.client.Minecraft; | ||
18 | +import net.minecraft.client.gui.FontRenderer; | ||
19 | +import net.minecraft.client.gui.GuiButton; | ||
20 | +import net.minecraft.client.gui.ScaledResolution; | ||
21 | +import net.minecraft.client.resources.I18n; | ||
22 | + | ||
18 | /** | 23 | /** |
19 | * "Check for updates" panel which docks in the mod info screen | 24 | * "Check for updates" panel which docks in the mod info screen |
20 | * | 25 | * |
src/client/java/com/mumfrey/liteloader/client/gui/GuiScrollPanel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
4 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | 9 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; |
5 | -import net.minecraft.client.Minecraft; | ||
6 | -import net.minecraft.client.gui.GuiButton; | ||
7 | 10 | ||
8 | import org.lwjgl.input.Keyboard; | 11 | import org.lwjgl.input.Keyboard; |
9 | 12 | ||
13 | +import net.minecraft.client.Minecraft; | ||
14 | +import net.minecraft.client.gui.GuiButton; | ||
15 | + | ||
10 | /** | 16 | /** |
11 | * Basic non-interactive scrollable panel using OpenGL clipping planes | 17 | * Basic non-interactive scrollable panel using OpenGL clipping planes |
12 | * | 18 | * |
src/client/java/com/mumfrey/liteloader/client/gui/GuiSimpleScrollBar.java
src/client/java/com/mumfrey/liteloader/client/gui/ScrollPanelContent.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui; | 6 | package com.mumfrey.liteloader.client.gui; |
2 | 7 | ||
3 | import net.minecraft.client.gui.GuiButton; | 8 | import net.minecraft.client.gui.GuiButton; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/GuiModInfoPanel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
4 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | 9 | import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; |
5 | -import net.minecraft.client.Minecraft; | ||
6 | -import net.minecraft.client.gui.FontRenderer; | ||
7 | -import net.minecraft.client.gui.Gui; | ||
8 | -import net.minecraft.client.resources.I18n; | ||
9 | 10 | ||
10 | import com.google.common.base.Strings; | 11 | import com.google.common.base.Strings; |
11 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; | 12 | import com.mumfrey.liteloader.client.api.LiteLoaderBrandingProvider; |
@@ -14,6 +15,11 @@ import com.mumfrey.liteloader.client.util.render.IconAbsolute; | @@ -14,6 +15,11 @@ import com.mumfrey.liteloader.client.util.render.IconAbsolute; | ||
14 | import com.mumfrey.liteloader.core.ModInfo; | 15 | import com.mumfrey.liteloader.core.ModInfo; |
15 | import com.mumfrey.liteloader.util.render.IconTextured; | 16 | import com.mumfrey.liteloader.util.render.IconTextured; |
16 | 17 | ||
18 | +import net.minecraft.client.Minecraft; | ||
19 | +import net.minecraft.client.gui.FontRenderer; | ||
20 | +import net.minecraft.client.gui.Gui; | ||
21 | +import net.minecraft.client.resources.I18n; | ||
22 | + | ||
17 | public class GuiModInfoPanel extends Gui | 23 | public class GuiModInfoPanel extends Gui |
18 | { | 24 | { |
19 | private static final int TITLE_COLOUR = GuiModListPanel.WHITE; | 25 | private static final int TITLE_COLOUR = GuiModListPanel.WHITE; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/GuiModListPanel.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
@@ -6,16 +11,16 @@ import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | @@ -6,16 +11,16 @@ import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; | ||
6 | import java.util.ArrayList; | 11 | import java.util.ArrayList; |
7 | import java.util.List; | 12 | import java.util.List; |
8 | 13 | ||
9 | -import net.minecraft.client.Minecraft; | ||
10 | -import net.minecraft.client.gui.FontRenderer; | ||
11 | -import net.minecraft.client.gui.Gui; | ||
12 | - | ||
13 | import com.mumfrey.liteloader.api.ModInfoDecorator; | 14 | import com.mumfrey.liteloader.api.ModInfoDecorator; |
14 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; | 15 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; |
15 | import com.mumfrey.liteloader.core.ModInfo; | 16 | import com.mumfrey.liteloader.core.ModInfo; |
16 | import com.mumfrey.liteloader.util.render.IconClickable; | 17 | import com.mumfrey.liteloader.util.render.IconClickable; |
17 | import com.mumfrey.liteloader.util.render.IconTextured; | 18 | import com.mumfrey.liteloader.util.render.IconTextured; |
18 | 19 | ||
20 | +import net.minecraft.client.Minecraft; | ||
21 | +import net.minecraft.client.gui.FontRenderer; | ||
22 | +import net.minecraft.client.gui.Gui; | ||
23 | + | ||
19 | public class GuiModListPanel extends Gui | 24 | public class GuiModListPanel extends Gui |
20 | { | 25 | { |
21 | static final int BLACK = 0xFF000000; | 26 | static final int BLACK = 0xFF000000; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/GuiModListPanelInvalid.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import java.util.List; | 8 | import java.util.List; |
4 | 9 | ||
5 | -import net.minecraft.client.gui.FontRenderer; | ||
6 | - | ||
7 | import com.mumfrey.liteloader.api.ModInfoDecorator; | 10 | import com.mumfrey.liteloader.api.ModInfoDecorator; |
8 | import com.mumfrey.liteloader.core.ModInfo; | 11 | import com.mumfrey.liteloader.core.ModInfo; |
9 | 12 | ||
13 | +import net.minecraft.client.gui.FontRenderer; | ||
14 | + | ||
10 | public class GuiModListPanelInvalid extends GuiModListPanel | 15 | public class GuiModListPanelInvalid extends GuiModListPanel |
11 | { | 16 | { |
12 | private static final int BAD_PANEL_HEIGHT = 22; | 17 | private static final int BAD_PANEL_HEIGHT = 22; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/ModList.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import java.util.ArrayList; | 8 | import java.util.ArrayList; |
@@ -5,9 +10,6 @@ import java.util.List; | @@ -5,9 +10,6 @@ import java.util.List; | ||
5 | import java.util.Map; | 10 | import java.util.Map; |
6 | import java.util.TreeMap; | 11 | import java.util.TreeMap; |
7 | 12 | ||
8 | -import net.minecraft.client.Minecraft; | ||
9 | -import net.minecraft.client.resources.I18n; | ||
10 | - | ||
11 | import org.lwjgl.input.Keyboard; | 13 | import org.lwjgl.input.Keyboard; |
12 | 14 | ||
13 | import com.mumfrey.liteloader.LiteMod; | 15 | import com.mumfrey.liteloader.LiteMod; |
@@ -20,6 +22,9 @@ import com.mumfrey.liteloader.interfaces.LoadableMod; | @@ -20,6 +22,9 @@ import com.mumfrey.liteloader.interfaces.LoadableMod; | ||
20 | import com.mumfrey.liteloader.launch.LoaderEnvironment; | 22 | import com.mumfrey.liteloader.launch.LoaderEnvironment; |
21 | import com.mumfrey.liteloader.modconfig.ConfigManager; | 23 | import com.mumfrey.liteloader.modconfig.ConfigManager; |
22 | 24 | ||
25 | +import net.minecraft.client.Minecraft; | ||
26 | +import net.minecraft.client.resources.I18n; | ||
27 | + | ||
23 | public class ModList | 28 | public class ModList |
24 | { | 29 | { |
25 | private final ModListContainer container; | 30 | private final ModListContainer container; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/ModListContainer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; | 8 | import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel; |
src/client/java/com/mumfrey/liteloader/client/gui/modlist/ModListEntry.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.modlist; | 6 | package com.mumfrey.liteloader.client.gui.modlist; |
2 | 7 | ||
3 | import java.util.List; | 8 | import java.util.List; |
4 | import java.util.Set; | 9 | import java.util.Set; |
5 | 10 | ||
6 | -import net.minecraft.client.gui.FontRenderer; | ||
7 | -import net.minecraft.client.resources.I18n; | ||
8 | - | ||
9 | import com.mumfrey.liteloader.LiteMod; | 11 | import com.mumfrey.liteloader.LiteMod; |
10 | import com.mumfrey.liteloader.api.ModInfoDecorator; | 12 | import com.mumfrey.liteloader.api.ModInfoDecorator; |
11 | import com.mumfrey.liteloader.core.LiteLoaderMods; | 13 | import com.mumfrey.liteloader.core.LiteLoaderMods; |
@@ -14,6 +16,9 @@ import com.mumfrey.liteloader.interfaces.Loadable; | @@ -14,6 +16,9 @@ import com.mumfrey.liteloader.interfaces.Loadable; | ||
14 | import com.mumfrey.liteloader.interfaces.LoadableMod; | 16 | import com.mumfrey.liteloader.interfaces.LoadableMod; |
15 | import com.mumfrey.liteloader.launch.LoaderEnvironment; | 17 | import com.mumfrey.liteloader.launch.LoaderEnvironment; |
16 | 18 | ||
19 | +import net.minecraft.client.gui.FontRenderer; | ||
20 | +import net.minecraft.client.resources.I18n; | ||
21 | + | ||
17 | /** | 22 | /** |
18 | * Represents a mod in the mod info screen, keeps track of mod information and | 23 | * Represents a mod in the mod info screen, keeps track of mod information and |
19 | * provides methods for displaying the mod in the mod list and drawing the | 24 | * provides methods for displaying the mod in the mod list and drawing the |
src/client/java/com/mumfrey/liteloader/client/gui/startup/LoadingBar.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.gui.startup; | 6 | package com.mumfrey.liteloader.client.gui.startup; |
2 | 7 | ||
3 | import static com.mumfrey.liteloader.gl.GL.*; | 8 | import static com.mumfrey.liteloader.gl.GL.*; |
@@ -10,6 +15,11 @@ import java.util.List; | @@ -10,6 +15,11 @@ import java.util.List; | ||
10 | 15 | ||
11 | import javax.imageio.ImageIO; | 16 | import javax.imageio.ImageIO; |
12 | 17 | ||
18 | +import org.lwjgl.opengl.Display; | ||
19 | + | ||
20 | +import com.mumfrey.liteloader.common.LoadingProgress; | ||
21 | +import com.mumfrey.liteloader.util.log.LiteLoaderLogger; | ||
22 | + | ||
13 | import net.minecraft.client.Minecraft; | 23 | import net.minecraft.client.Minecraft; |
14 | import net.minecraft.client.gui.FontRenderer; | 24 | import net.minecraft.client.gui.FontRenderer; |
15 | import net.minecraft.client.gui.ScaledResolution; | 25 | import net.minecraft.client.gui.ScaledResolution; |
@@ -23,11 +33,6 @@ import net.minecraft.client.resources.IResourceManager; | @@ -23,11 +33,6 @@ import net.minecraft.client.resources.IResourceManager; | ||
23 | import net.minecraft.client.shader.Framebuffer; | 33 | import net.minecraft.client.shader.Framebuffer; |
24 | import net.minecraft.util.ResourceLocation; | 34 | import net.minecraft.util.ResourceLocation; |
25 | 35 | ||
26 | -import org.lwjgl.opengl.Display; | ||
27 | - | ||
28 | -import com.mumfrey.liteloader.common.LoadingProgress; | ||
29 | -import com.mumfrey.liteloader.util.log.LiteLoaderLogger; | ||
30 | - | ||
31 | /** | 36 | /** |
32 | * Crappy implementation of a "Mojang Screen" loading bar | 37 | * Crappy implementation of a "Mojang Screen" loading bar |
33 | * | 38 | * |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinEntityPlayerSP.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinEntityRenderer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinFramebuffer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinGuiIngame.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Final; | 8 | import org.spongepowered.asm.mixin.Final; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinIntegratedServer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinMinecraft.java
src/client/java/com/mumfrey/liteloader/client/mixin/MixinNetHandlerLoginClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinRealmsMainScreen.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Mixin; | 8 | import org.spongepowered.asm.mixin.Mixin; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinRegistryNamespaced.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import org.spongepowered.asm.mixin.Final; | 8 | import org.spongepowered.asm.mixin.Final; |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinRegistrySimple.java
src/client/java/com/mumfrey/liteloader/client/mixin/MixinRenderManager.java
src/client/java/com/mumfrey/liteloader/client/mixin/MixinScreenShotHelper.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.mixin; | 6 | package com.mumfrey.liteloader.client.mixin; |
2 | 7 | ||
3 | import java.io.File; | 8 | import java.io.File; |
@@ -10,8 +15,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | @@ -10,8 +15,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
10 | import com.mumfrey.liteloader.client.ClientProxy; | 15 | import com.mumfrey.liteloader.client.ClientProxy; |
11 | 16 | ||
12 | import net.minecraft.client.shader.Framebuffer; | 17 | import net.minecraft.client.shader.Framebuffer; |
13 | -import net.minecraft.util.text.ITextComponent; | ||
14 | import net.minecraft.util.ScreenShotHelper; | 18 | import net.minecraft.util.ScreenShotHelper; |
19 | +import net.minecraft.util.text.ITextComponent; | ||
15 | 20 | ||
16 | @Mixin(ScreenShotHelper.class) | 21 | @Mixin(ScreenShotHelper.class) |
17 | public abstract class MixinScreenShotHelper | 22 | public abstract class MixinScreenShotHelper |
src/client/java/com/mumfrey/liteloader/client/mixin/MixinSession.java
src/client/java/com/mumfrey/liteloader/client/mixin/MixinSimpleReloadableResourceManager.java
src/client/java/com/mumfrey/liteloader/client/mixin/MixinTileEntityRendererDispatcher.java
src/client/java/com/mumfrey/liteloader/client/overlays/IEntityRenderer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.overlays; | 6 | package com.mumfrey.liteloader.client.overlays; |
2 | 7 | ||
3 | import net.minecraft.util.ResourceLocation; | 8 | import net.minecraft.util.ResourceLocation; |
src/client/java/com/mumfrey/liteloader/client/overlays/IGuiTextField.java
src/client/java/com/mumfrey/liteloader/client/overlays/IMinecraft.java
src/client/java/com/mumfrey/liteloader/client/overlays/ISoundHandler.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.overlays; | 6 | package com.mumfrey.liteloader.client.overlays; |
2 | 7 | ||
3 | import net.minecraft.client.audio.SoundList; | 8 | import net.minecraft.client.audio.SoundList; |
src/client/java/com/mumfrey/liteloader/client/transformers/CrashReportTransformer.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.transformers; | 6 | package com.mumfrey.liteloader.client.transformers; |
2 | 7 | ||
3 | import java.util.ListIterator; | 8 | import java.util.ListIterator; |
src/client/java/com/mumfrey/liteloader/client/transformers/MinecraftTransformer.java
src/client/java/com/mumfrey/liteloader/client/util/PrivateFieldsClient.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.util; | 6 | package com.mumfrey.liteloader.client.util; |
2 | 7 | ||
3 | import java.util.Map; | 8 | import java.util.Map; |
@@ -19,4 +24,4 @@ public final class PrivateFieldsClient<P, T> extends PrivateFields<P, T> | @@ -19,4 +24,4 @@ public final class PrivateFieldsClient<P, T> extends PrivateFields<P, T> | ||
19 | 24 | ||
20 | public static final PrivateFieldsClient<TileEntity, Map> tileEntityNameToClassMap = new PrivateFieldsClient<TileEntity, Map>(TileEntity.class, Obf.tileEntityNameToClassMap); | 25 | public static final PrivateFieldsClient<TileEntity, Map> tileEntityNameToClassMap = new PrivateFieldsClient<TileEntity, Map>(TileEntity.class, Obf.tileEntityNameToClassMap); |
21 | public static final PrivateFieldsClient<TileEntity, Map> tileEntityClassToNameMap = new PrivateFieldsClient<TileEntity, Map>(TileEntity.class, Obf.tileEntityClassToNameMap); | 26 | public static final PrivateFieldsClient<TileEntity, Map> tileEntityClassToNameMap = new PrivateFieldsClient<TileEntity, Map>(TileEntity.class, Obf.tileEntityClassToNameMap); |
22 | -} | ||
23 | \ No newline at end of file | 27 | \ No newline at end of file |
28 | +} |
src/client/java/com/mumfrey/liteloader/client/util/render/IconAbsolute.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.util.render; | 6 | package com.mumfrey.liteloader.client.util.render; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.util.render.IconTextured; | 8 | import com.mumfrey.liteloader.util.render.IconTextured; |
src/client/java/com/mumfrey/liteloader/client/util/render/IconAbsoluteClickable.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.util.render; | 6 | package com.mumfrey.liteloader.client.util.render; |
2 | 7 | ||
3 | -import net.minecraft.util.ResourceLocation; | ||
4 | - | ||
5 | import com.mumfrey.liteloader.util.render.IconClickable; | 8 | import com.mumfrey.liteloader.util.render.IconClickable; |
6 | 9 | ||
10 | +import net.minecraft.util.ResourceLocation; | ||
11 | + | ||
7 | public abstract class IconAbsoluteClickable extends IconAbsolute implements IconClickable | 12 | public abstract class IconAbsoluteClickable extends IconAbsolute implements IconClickable |
8 | { | 13 | { |
9 | public IconAbsoluteClickable(ResourceLocation textureResource, String displayText, int width, int height, float uCoord, float vCoord, | 14 | public IconAbsoluteClickable(ResourceLocation textureResource, String displayText, int width, int height, float uCoord, float vCoord, |
src/client/java/com/mumfrey/liteloader/client/util/render/IconTiled.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.client.util.render; | 6 | package com.mumfrey.liteloader.client.util.render; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.util.render.Icon; | 8 | import com.mumfrey.liteloader.util.render.Icon; |
src/client/java/com/mumfrey/liteloader/gl/GL.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.gl; | 6 | package com.mumfrey.liteloader.gl; |
2 | 7 | ||
3 | import java.nio.ByteBuffer; | 8 | import java.nio.ByteBuffer; |
@@ -5,6 +10,9 @@ import java.nio.DoubleBuffer; | @@ -5,6 +10,9 @@ import java.nio.DoubleBuffer; | ||
5 | import java.nio.FloatBuffer; | 10 | import java.nio.FloatBuffer; |
6 | import java.nio.IntBuffer; | 11 | import java.nio.IntBuffer; |
7 | 12 | ||
13 | +import org.lwjgl.opengl.GL11; | ||
14 | +import org.lwjgl.util.glu.GLU; | ||
15 | + | ||
8 | import net.minecraft.client.renderer.GlStateManager; | 16 | import net.minecraft.client.renderer.GlStateManager; |
9 | import net.minecraft.client.renderer.GlStateManager.CullFace; | 17 | import net.minecraft.client.renderer.GlStateManager.CullFace; |
10 | import net.minecraft.client.renderer.GlStateManager.FogMode; | 18 | import net.minecraft.client.renderer.GlStateManager.FogMode; |
@@ -12,9 +20,6 @@ import net.minecraft.client.renderer.GlStateManager.TexGen; | @@ -12,9 +20,6 @@ import net.minecraft.client.renderer.GlStateManager.TexGen; | ||
12 | import net.minecraft.client.renderer.vertex.DefaultVertexFormats; | 20 | import net.minecraft.client.renderer.vertex.DefaultVertexFormats; |
13 | import net.minecraft.client.renderer.vertex.VertexFormat; | 21 | import net.minecraft.client.renderer.vertex.VertexFormat; |
14 | 22 | ||
15 | -import org.lwjgl.opengl.GL11; | ||
16 | -import org.lwjgl.util.glu.GLU; | ||
17 | - | ||
18 | /** | 23 | /** |
19 | * Convenience class for working with Mojang's GLStateManager: | 24 | * Convenience class for working with Mojang's GLStateManager: |
20 | * | 25 | * |
src/client/java/com/mumfrey/liteloader/gl/GLClippingPlanes.java
src/client/java/com/mumfrey/liteloader/resources/InternalResourcePack.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.resources; | 6 | package com.mumfrey.liteloader.resources; |
2 | 7 | ||
3 | import java.awt.image.BufferedImage; | 8 | import java.awt.image.BufferedImage; |
@@ -47,7 +52,9 @@ public class InternalResourcePack implements IResourcePack | @@ -47,7 +52,9 @@ public class InternalResourcePack implements IResourcePack | ||
47 | this.resourceClass = resourceClass; | 52 | this.resourceClass = resourceClass; |
48 | 53 | ||
49 | for (String domain : domains) | 54 | for (String domain : domains) |
55 | + { | ||
50 | this.resourceDomains.add(domain); | 56 | this.resourceDomains.add(domain); |
57 | + } | ||
51 | } | 58 | } |
52 | 59 | ||
53 | /* (non-Javadoc) | 60 | /* (non-Javadoc) |
src/client/java/com/mumfrey/liteloader/resources/ModResourcePack.java
src/client/java/com/mumfrey/liteloader/resources/ModResourcePackDir.java
src/client/java/com/mumfrey/liteloader/util/InputManager.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader.util; | 6 | package com.mumfrey.liteloader.util; |
2 | 7 | ||
3 | import java.io.File; | 8 | import java.io.File; |
@@ -12,6 +17,12 @@ import java.util.Map; | @@ -12,6 +17,12 @@ import java.util.Map; | ||
12 | import java.util.Properties; | 17 | import java.util.Properties; |
13 | import java.util.Set; | 18 | import java.util.Set; |
14 | 19 | ||
20 | +import com.mumfrey.liteloader.common.GameEngine; | ||
21 | +import com.mumfrey.liteloader.core.LiteLoader; | ||
22 | +import com.mumfrey.liteloader.launch.LoaderEnvironment; | ||
23 | +import com.mumfrey.liteloader.launch.LoaderProperties; | ||
24 | +import com.mumfrey.liteloader.util.jinput.ComponentRegistry; | ||
25 | + | ||
15 | import net.java.games.input.Component; | 26 | import net.java.games.input.Component; |
16 | import net.java.games.input.Controller; | 27 | import net.java.games.input.Controller; |
17 | import net.java.games.input.Event; | 28 | import net.java.games.input.Event; |
@@ -19,12 +30,6 @@ import net.java.games.input.EventQueue; | @@ -19,12 +30,6 @@ import net.java.games.input.EventQueue; | ||
19 | import net.minecraft.client.settings.KeyBinding; | 30 | import net.minecraft.client.settings.KeyBinding; |
20 | import net.minecraft.profiler.Profiler; | 31 | import net.minecraft.profiler.Profiler; |
21 | 32 | ||
22 | -import com.mumfrey.liteloader.common.GameEngine; | ||
23 | -import com.mumfrey.liteloader.core.LiteLoader; | ||
24 | -import com.mumfrey.liteloader.launch.LoaderEnvironment; | ||
25 | -import com.mumfrey.liteloader.launch.LoaderProperties; | ||
26 | -import com.mumfrey.liteloader.util.jinput.ComponentRegistry; | ||
27 | - | ||
28 | /** | 33 | /** |
29 | * Mod input class, aggregates functionality from LiteLoader's mod key | 34 | * Mod input class, aggregates functionality from LiteLoader's mod key |
30 | * registration functions and JInputLib. | 35 | * registration functions and JInputLib. |
@@ -324,7 +329,9 @@ public final class InputManager extends Input | @@ -324,7 +329,9 @@ public final class InputManager extends Input | ||
324 | { | 329 | { |
325 | Set<Controller> allControllers = new HashSet<Controller>(); | 330 | Set<Controller> allControllers = new HashSet<Controller>(); |
326 | for (Controller controller : this.pollControllers) | 331 | for (Controller controller : this.pollControllers) |
332 | + { | ||
327 | allControllers.add(controller); | 333 | allControllers.add(controller); |
334 | + } | ||
328 | return allControllers; | 335 | return allControllers; |
329 | } | 336 | } |
330 | 337 |
src/client/java/com/mumfrey/liteloader/util/ModUtilities.java
src/debug/java/com/mumfrey/liteloader/debug/Start.java
@@ -123,7 +123,6 @@ public abstract class Start | @@ -123,7 +123,6 @@ public abstract class Start | ||
123 | 123 | ||
124 | File gameDir = new File(System.getProperty("user.dir")); | 124 | File gameDir = new File(System.getProperty("user.dir")); |
125 | File assetsDir = new File(gameDir, "assets"); | 125 | File assetsDir = new File(gameDir, "assets"); |
126 | - File assetIndexDir = new File(assetsDir, "indexes"); | ||
127 | 126 | ||
128 | Start.addArg(qualifiedArgs, "--tweakClass", LiteLoaderTweaker.class.getName()); | 127 | Start.addArg(qualifiedArgs, "--tweakClass", LiteLoaderTweaker.class.getName()); |
129 | Start.addArg(qualifiedArgs, "--username", loginManager.getProfileName()); | 128 | Start.addArg(qualifiedArgs, "--username", loginManager.getProfileName()); |
@@ -131,10 +130,10 @@ public abstract class Start | @@ -131,10 +130,10 @@ public abstract class Start | ||
131 | Start.addArg(qualifiedArgs, "--accessToken", loginManager.getAuthenticatedToken()); | 130 | Start.addArg(qualifiedArgs, "--accessToken", loginManager.getAuthenticatedToken()); |
132 | Start.addArg(qualifiedArgs, "--userType", loginManager.getUserType()); | 131 | Start.addArg(qualifiedArgs, "--userType", loginManager.getUserType()); |
133 | Start.addArg(qualifiedArgs, "--userProperties", loginManager.getUserProperties()); | 132 | Start.addArg(qualifiedArgs, "--userProperties", loginManager.getUserProperties()); |
134 | - Start.addArg(qualifiedArgs, "--version", "mcp", true); | ||
135 | - Start.addArg(qualifiedArgs, "--gameDir", gameDir.getAbsolutePath(), true); | ||
136 | - Start.addArg(qualifiedArgs, "--assetIndex", LiteLoaderTweaker.VERSION, true); | ||
137 | - Start.addArg(qualifiedArgs, "--assetsDir", assetsDir.getAbsolutePath(), !assetIndexDir.exists()); | 133 | + Start.addArg(qualifiedArgs, "--version", "mcp"); |
134 | + Start.addArg(qualifiedArgs, "--gameDir", gameDir.getAbsolutePath()); | ||
135 | + Start.addArg(qualifiedArgs, "--assetIndex", LiteLoaderTweaker.VERSION); | ||
136 | + Start.addArg(qualifiedArgs, "--assetsDir", assetsDir.getAbsolutePath()); | ||
138 | } | 137 | } |
139 | 138 | ||
140 | private static void addRequiredArgsServer(String[] args, List<String> unqualifiedArgs, Map<String, Set<String>> qualifiedArgs) | 139 | private static void addRequiredArgsServer(String[] args, List<String> unqualifiedArgs, Map<String, Set<String>> qualifiedArgs) |
@@ -163,22 +162,13 @@ public abstract class Start | @@ -163,22 +162,13 @@ public abstract class Start | ||
163 | 162 | ||
164 | private static void addArg(Map<String, Set<String>> qualifiedArgs, String qualifier, String arg) | 163 | private static void addArg(Map<String, Set<String>> qualifiedArgs, String qualifier, String arg) |
165 | { | 164 | { |
166 | - Start.addArg(qualifiedArgs, qualifier, arg, false); | ||
167 | - } | ||
168 | - | ||
169 | - private static void addArg(Map<String, Set<String>> qualifiedArgs, String qualifier, String arg, boolean skipExisting) | ||
170 | - { | ||
171 | Set<String> args = qualifiedArgs.get(qualifier); | 165 | Set<String> args = qualifiedArgs.get(qualifier); |
172 | - | 166 | + |
173 | if (args == null) | 167 | if (args == null) |
174 | { | 168 | { |
175 | args = new HashSet<String>(); | 169 | args = new HashSet<String>(); |
176 | qualifiedArgs.put(qualifier, args); | 170 | qualifiedArgs.put(qualifier, args); |
177 | } | 171 | } |
178 | - else if (skipExisting) | ||
179 | - { | ||
180 | - return; | ||
181 | - } | ||
182 | 172 | ||
183 | if (!Start.MULTI_VALUE_ARGS.contains(qualifier)) | 173 | if (!Start.MULTI_VALUE_ARGS.contains(qualifier)) |
184 | { | 174 | { |
src/main/java/com/mumfrey/liteloader/Configurable.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.modconfig.ConfigPanel; | 8 | import com.mumfrey.liteloader.modconfig.ConfigPanel; |
src/main/java/com/mumfrey/liteloader/LiteMod.java
src/main/java/com/mumfrey/liteloader/PacketHandler.java
src/main/java/com/mumfrey/liteloader/Permissible.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import com.mumfrey.liteloader.permissions.PermissionsManager; | 8 | import com.mumfrey.liteloader.permissions.PermissionsManager; |
src/main/java/com/mumfrey/liteloader/PlayerInteractionListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | import net.minecraft.entity.player.EntityPlayerMP; | 8 | import net.minecraft.entity.player.EntityPlayerMP; |
4 | import net.minecraft.item.ItemStack; | 9 | import net.minecraft.item.ItemStack; |
5 | -import net.minecraft.util.math.BlockPos; | ||
6 | import net.minecraft.util.EnumFacing; | 10 | import net.minecraft.util.EnumFacing; |
7 | import net.minecraft.util.EnumHand; | 11 | import net.minecraft.util.EnumHand; |
12 | +import net.minecraft.util.math.BlockPos; | ||
8 | import net.minecraft.util.math.RayTraceResult.Type; | 13 | import net.minecraft.util.math.RayTraceResult.Type; |
9 | 14 | ||
10 | /** | 15 | /** |
src/main/java/com/mumfrey/liteloader/PlayerMoveListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | -import net.minecraft.entity.player.EntityPlayerMP; | ||
4 | - | ||
5 | import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; | 8 | import com.mumfrey.liteloader.core.LiteLoaderEventBroker.ReturnValue; |
6 | import com.mumfrey.liteloader.util.Position; | 9 | import com.mumfrey.liteloader.util.Position; |
7 | 10 | ||
11 | +import net.minecraft.entity.player.EntityPlayerMP; | ||
12 | + | ||
8 | /** | 13 | /** |
9 | * Interface for mods which want to monitor or control player movements | 14 | * Interface for mods which want to monitor or control player movements |
10 | * | 15 | * |
src/main/java/com/mumfrey/liteloader/PluginChannelListener.java
1 | +/* | ||
2 | + * This file is part of LiteLoader. | ||
3 | + * Copyright (C) 2012-16 Adam Mummery-Smith | ||
4 | + * All Rights Reserved. | ||
5 | + */ | ||
1 | package com.mumfrey.liteloader; | 6 | package com.mumfrey.liteloader; |
2 | 7 | ||
3 | -import net.minecraft.network.PacketBuffer; | ||
4 | - | ||
5 | import com.mumfrey.liteloader.core.CommonPluginChannelListener; | 8 | import com.mumfrey.liteloader.core.CommonPluginChannelListener; |
6 | 9 | ||
10 | +import net.minecraft.network.PacketBuffer; | ||
11 | + | ||
7 | /** | 12 | /** |
8 | * Interface for mods which want to use plugin channels | 13 | * Interface for mods which want to use plugin channels |
9 | * | 14 | * |