mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Add missing Override annotations
This commit is contained in:
1 parent
c2845967cc
commit
e3777f4559
59 files changed
+263
-42
No files matched your search
@@ -556,6 +556,7 @@ public class GuiModList extends GuiScreen
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void drawHeader(int entryRight, int relativeY, Tessellator tess)
|
||||
{
|
||||
int top = relativeY;
|
||||
|
||||
@@ -215,6 +215,7 @@ public class SplashProgress
|
||||
// getting debug info out of the way, while we still can
|
||||
FMLCommonHandler.instance().registerCrashCallable(new ICrashCallable()
|
||||
{
|
||||
@Override
|
||||
public String call() throws Exception
|
||||
{
|
||||
return "' Vendor: '" + glGetString(GL_VENDOR) +
|
||||
@@ -223,6 +224,7 @@ public class SplashProgress
|
||||
"'";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLabel()
|
||||
{
|
||||
return "GL info";
|
||||
@@ -257,6 +259,7 @@ public class SplashProgress
|
||||
private final int barOffset = 55;
|
||||
private long updateTiming;
|
||||
private long framecount;
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
setGL();
|
||||
@@ -575,6 +578,7 @@ public class SplashProgress
|
||||
});
|
||||
thread.setUncaughtExceptionHandler(new UncaughtExceptionHandler()
|
||||
{
|
||||
@Override
|
||||
public void uncaughtException(Thread t, Throwable e)
|
||||
{
|
||||
FMLLog.log(Level.ERROR, e, "Splash thread Exception");
|
||||
|
||||
@@ -360,6 +360,7 @@ public class GuiConfig extends GuiScreen
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMouseInput() throws IOException
|
||||
{
|
||||
super.handleMouseInput();
|
||||
|
||||
@@ -144,6 +144,7 @@ public class GuiEditArray extends GuiScreen
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMouseInput() throws IOException
|
||||
{
|
||||
super.handleMouseInput();
|
||||
|
||||
@@ -144,6 +144,7 @@ public class GuiSelectString extends GuiScreen
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMouseInput() throws IOException
|
||||
{
|
||||
super.handleMouseInput();
|
||||
|
||||
@@ -77,6 +77,7 @@ public abstract class EnhancedRuntimeException extends RuntimeException
|
||||
});
|
||||
super.printStackTrace(s);
|
||||
}
|
||||
@Override
|
||||
public void printStackTrace(final PrintStream s)
|
||||
{
|
||||
printStackTrace(new WrappedPrintStream()
|
||||
|
||||
@@ -124,6 +124,7 @@ public class FMLCommonHandler
|
||||
{
|
||||
registerCrashCallable(new ICrashCallable()
|
||||
{
|
||||
@Override
|
||||
public String call() throws Exception
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
@@ -135,6 +136,7 @@ public class FMLCommonHandler
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLabel()
|
||||
{
|
||||
return "Loaded coremods (and transformers)";
|
||||
|
||||
@@ -59,6 +59,7 @@ public class ASMTransformerWrapper
|
||||
.weakValues()
|
||||
.build(new CacheLoader<String, byte[]>()
|
||||
{
|
||||
@Override
|
||||
public byte[] load(String file) throws Exception
|
||||
{
|
||||
return makeWrapper(file);
|
||||
@@ -82,6 +83,7 @@ public class ASMTransformerWrapper
|
||||
|
||||
private static class ASMGenHandler extends URLStreamHandler
|
||||
{
|
||||
@Override
|
||||
@Nullable
|
||||
protected URLConnection openConnection(URL url) throws IOException
|
||||
{
|
||||
@@ -90,6 +92,7 @@ public class ASMTransformerWrapper
|
||||
{
|
||||
return new URLConnection(url)
|
||||
{
|
||||
@Override
|
||||
public void connect() throws IOException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
@@ -116,6 +119,7 @@ public class ASMTransformerWrapper
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void connect() throws IOException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
@@ -246,6 +250,7 @@ public class ASMTransformerWrapper
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] transform(String name, String transformedName, byte[] basicClass)
|
||||
{
|
||||
try
|
||||
|
||||
@@ -58,6 +58,7 @@ public class EntitySpawnHandler extends SimpleChannelInboundHandler<FMLMessage.E
|
||||
{
|
||||
thread.addScheduledTask(new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
EntitySpawnHandler.this.process(msg);
|
||||
|
||||
@@ -44,6 +44,7 @@ public class OpenGuiHandler extends SimpleChannelInboundHandler<FMLMessage.OpenG
|
||||
{
|
||||
thread.addScheduledTask(new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
OpenGuiHandler.this.process(msg);
|
||||
|
||||
+1
@@ -840,6 +840,7 @@ public class FMLControlledNamespacedRegistry<I extends IForgeRegistryEntry<I>> e
|
||||
add(-1, key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerAll(I... values)
|
||||
{
|
||||
for (I value: values)
|
||||
|
||||
@@ -90,8 +90,10 @@ public interface IForgeRegistryEntry<V>
|
||||
}
|
||||
|
||||
//Helper functions
|
||||
@Override
|
||||
public final T setRegistryName(ResourceLocation name){ return setRegistryName(name.toString()); }
|
||||
public final T setRegistryName(String modID, String name){ return setRegistryName(modID + ":" + name); }
|
||||
@Override
|
||||
@Nullable
|
||||
public final ResourceLocation getRegistryName()
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@ public class LegacyNamespacedRegistry<V> extends RegistryNamespaced<ResourceLoca
|
||||
{
|
||||
private Map<ResourceLocation, ResourceLocation> legacy_names = Maps.newHashMap();
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public V getObject(@Nullable ResourceLocation name)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user