Update #37 - Touch support without userscript, many other feats

This commit is contained in:
lax1dude
2024-09-21 20:17:42 -07:00
parent 173727c8c4
commit ec1ab8ece3
683 changed files with 62074 additions and 8996 deletions

View File

@ -54,10 +54,10 @@ import net.minecraft.world.gen.ChunkProviderSettings;
*/
public class JSONTypeProvider {
private static final Map<Class<?>,JSONTypeSerializer<?,?>> serializers = new HashMap();
private static final Map<Class<?>,JSONTypeDeserializer<?,?>> deserializers = new HashMap();
private static final Map<Class<?>,JSONTypeSerializer<?,?>> serializers = new HashMap<>();
private static final Map<Class<?>,JSONTypeDeserializer<?,?>> deserializers = new HashMap<>();
private static final List<JSONDataParserImpl> parsers = new ArrayList();
private static final List<JSONDataParserImpl> parsers = new ArrayList<>();
public static <J> J serialize(Object object) throws JSONException {
JSONTypeSerializer<Object,J> ser = (JSONTypeSerializer<Object,J>) serializers.get(object.getClass());

View File

@ -30,7 +30,7 @@ public class SoundMapDeserializer implements JSONTypeDeserializer<JSONObject, So
@Override
public SoundMap deserialize(JSONObject json) throws JSONException {
Map<String, SoundList> soundsMap = new HashMap();
Map<String, SoundList> soundsMap = new HashMap<>();
for(String str : json.keySet()) {
soundsMap.put(str, JSONTypeProvider.deserialize(json.getJSONObject(str), SoundList.class));
}