mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 19:55:10 +01:00
Fix formatting that was changed
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user