Continue mapping migration
This commit is contained in:
parent
99ade39404
commit
f03fd03bd0
499 changed files with 12567 additions and 12723 deletions
|
@ -4,15 +4,13 @@ import java.lang.reflect.Type;
|
|||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import net.minecraft.util.GsonHelper;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.reflect.TypeToken;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
import net.minecraft.util.JsonHelper;
|
||||
import ru.betterend.util.JsonFactory;
|
||||
|
||||
public final class ConfigKeeper {
|
||||
|
@ -109,7 +107,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public Boolean fromJson() {
|
||||
return JsonHelper.getBoolean(location, key, defaultValue);
|
||||
return GsonHelper.getAsBoolean(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -126,7 +124,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public Float fromJson() {
|
||||
return JsonHelper.getFloat(location, key, defaultValue);
|
||||
return GsonHelper.getAsFloat(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -143,7 +141,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public Float fromJson() {
|
||||
return JsonHelper.getFloat(location, key, defaultValue);
|
||||
return GsonHelper.getAsFloat(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -165,7 +163,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public Integer fromJson() {
|
||||
return JsonHelper.getInt(location, key, defaultValue);
|
||||
return GsonHelper.getAsInt(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -182,7 +180,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public Integer fromJson() {
|
||||
return JsonHelper.getInt(location, key, defaultValue);
|
||||
return GsonHelper.getAsInt(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -199,7 +197,7 @@ public final class ConfigKeeper {
|
|||
|
||||
@Override
|
||||
public String fromJson() {
|
||||
return JsonHelper.getString(location, key, defaultValue);
|
||||
return GsonHelper.getAsString(location, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue