Fix formatting that was changed

This commit is contained in:
Prospector
2019-07-27 11:40:39 -07:00
parent fd386e7585
commit c4e1d33ade
4 changed files with 12 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ public class Blur implements ClientModInitializer {
public static final String VERSION = "@VERSION@"; public static final String VERSION = "@VERSION@";
static class ConfigJson { static class ConfigJson {
String[] blurExclusions = new String[]{ChatScreen.class.getName()}; String[] blurExclusions = new String[]{ ChatScreen.class.getName() };
int fadeTimeMillis = 200; int fadeTimeMillis = 200;
int radius = 8; int radius = 8;
String gradientStartColor = "75000000"; String gradientStartColor = "75000000";

View File

@@ -3,8 +3,8 @@ package com.tterrag.blur.mixin;
import org.objectweb.asm.Opcodes; import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.At.Shift;
import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.At.Shift;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import com.tterrag.blur.Blur; import com.tterrag.blur.Blur;

View File

@@ -6,7 +6,7 @@ import java.util.Arrays;
public class ReflectionHelper { public class ReflectionHelper {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static <T> T getValue(Class<?> cls, Object instance, String... names) { public static <T> T getValue(Class<?> cls, Object instance, String...names) {
try { try {
return (T) getField(cls, names).get(instance); return (T) getField(cls, names).get(instance);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {

View File

@@ -68,7 +68,7 @@ public class ShaderResourcePack implements ResourcePack, ResourceReloadListener
return ImmutableSet.of("minecraft"); return ImmutableSet.of("minecraft");
} }
@SuppressWarnings({"unchecked", "null"}) @SuppressWarnings({ "unchecked", "null" })
@Override @Override
public <T> T parseMetadata(ResourceMetadataReader<T> var1) throws IOException { public <T> T parseMetadata(ResourceMetadataReader<T> var1) throws IOException {
if ("pack".equals(var1.getKey())) { if ("pack".equals(var1.getKey())) {
@@ -88,8 +88,7 @@ public class ShaderResourcePack implements ResourcePack, ResourceReloadListener
} }
@Override @Override
public void close() { public void close() throws IOException {}
}
@Override @Override
public InputStream openRoot(String var1) throws IOException { public InputStream openRoot(String var1) throws IOException {