package com.mojang.authlib.properties; import com.google.common.collect.ForwardingMultimap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; import com.google.common.collect.ImmutableMultimap.Builder; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import java.lang.reflect.Type; import java.util.Map.Entry; public class PropertyMap extends ForwardingMultimap { public static final PropertyMap EMPTY = new PropertyMap(ImmutableMultimap.of()); private final Multimap properties; public PropertyMap(Multimap multimap) { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 0: aload 0 // 1: invokespecial com/google/common/collect/ForwardingMultimap. ()V // 4: aload 0 // 5: aload 1 // 6: invokestatic com/google/common/collect/ImmutableMultimap.copyOf (Lcom/google/common/collect/Multimap;)Lcom/google/common/collect/ImmutableMultimap; // 9: putfield com/mojang/authlib/properties/PropertyMap.properties Lcom/google/common/collect/Multimap; // c: return } protected Multimap delegate() { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 0: aload 0 // 1: getfield com/mojang/authlib/properties/PropertyMap.properties Lcom/google/common/collect/Multimap; // 4: areturn } public static class Serializer implements JsonSerializer, JsonDeserializer { public Serializer() { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 0: aload 0 // 1: invokespecial java/lang/Object. ()V // 4: return } public PropertyMap deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 000: invokestatic com/google/common/collect/ImmutableMultimap.builder ()Lcom/google/common/collect/ImmutableMultimap$Builder; // 003: astore 4 // 005: aload 1 // 006: instanceof com/google/gson/JsonObject // 009: ifeq 095 // 00c: aload 1 // 00d: checkcast com/google/gson/JsonObject // 010: astore 5 // 012: aload 5 // 014: invokevirtual com/google/gson/JsonObject.entrySet ()Ljava/util/Set; // 017: invokeinterface java/util/Set.iterator ()Ljava/util/Iterator; 1 // 01c: astore 7 // 01e: aload 7 // 020: invokeinterface java/util/Iterator.hasNext ()Z 1 // 025: ifeq 092 // 028: aload 7 // 02a: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1 // 02f: checkcast java/util/Map$Entry // 032: astore 8 // 034: aload 8 // 036: invokeinterface java/util/Map$Entry.getValue ()Ljava/lang/Object; 1 // 03b: instanceof com/google/gson/JsonArray // 03e: ifeq 08f // 041: aload 8 // 043: invokeinterface java/util/Map$Entry.getValue ()Ljava/lang/Object; 1 // 048: checkcast com/google/gson/JsonArray // 04b: invokevirtual com/google/gson/JsonArray.iterator ()Ljava/util/Iterator; // 04e: astore 9 // 050: aload 9 // 052: invokeinterface java/util/Iterator.hasNext ()Z 1 // 057: ifeq 08f // 05a: aload 9 // 05c: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1 // 061: checkcast com/google/gson/JsonElement // 064: astore 10 // 066: aload 4 // 068: aload 8 // 06a: invokeinterface java/util/Map$Entry.getKey ()Ljava/lang/Object; 1 // 06f: checkcast java/lang/String // 072: new com/mojang/authlib/properties/Property // 075: dup // 076: aload 8 // 078: invokeinterface java/util/Map$Entry.getKey ()Ljava/lang/Object; 1 // 07d: checkcast java/lang/String // 080: aload 10 // 082: invokevirtual com/google/gson/JsonElement.getAsString ()Ljava/lang/String; // 085: invokespecial com/mojang/authlib/properties/Property. (Ljava/lang/String;Ljava/lang/String;)V // 088: invokevirtual com/google/common/collect/ImmutableMultimap$Builder.put (Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMultimap$Builder; // 08b: pop // 08c: goto 050 // 08f: goto 01e // 092: goto 126 // 095: aload 1 // 096: instanceof com/google/gson/JsonArray // 099: ifeq 126 // 09c: aload 1 // 09d: checkcast com/google/gson/JsonArray // 0a0: astore 6 // 0a2: aload 6 // 0a4: invokevirtual com/google/gson/JsonArray.iterator ()Ljava/util/Iterator; // 0a7: astore 7 // 0a9: aload 7 // 0ab: invokeinterface java/util/Iterator.hasNext ()Z 1 // 0b0: ifeq 126 // 0b3: aload 7 // 0b5: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1 // 0ba: checkcast com/google/gson/JsonElement // 0bd: astore 8 // 0bf: aload 8 // 0c1: instanceof com/google/gson/JsonObject // 0c4: ifeq 123 // 0c7: aload 8 // 0c9: checkcast com/google/gson/JsonObject // 0cc: astore 9 // 0ce: aload 9 // 0d0: ldc "name" // 0d2: invokevirtual com/google/gson/JsonObject.getAsJsonPrimitive (Ljava/lang/String;)Lcom/google/gson/JsonPrimitive; // 0d5: invokevirtual com/google/gson/JsonPrimitive.getAsString ()Ljava/lang/String; // 0d8: astore 10 // 0da: aload 9 // 0dc: ldc "value" // 0de: invokevirtual com/google/gson/JsonObject.getAsJsonPrimitive (Ljava/lang/String;)Lcom/google/gson/JsonPrimitive; // 0e1: invokevirtual com/google/gson/JsonPrimitive.getAsString ()Ljava/lang/String; // 0e4: astore 11 // 0e6: aload 9 // 0e8: ldc "signature" // 0ea: invokevirtual com/google/gson/JsonObject.has (Ljava/lang/String;)Z // 0ed: ifeq 110 // 0f0: aload 4 // 0f2: aload 10 // 0f4: new com/mojang/authlib/properties/Property // 0f7: dup // 0f8: aload 10 // 0fa: aload 11 // 0fc: aload 9 // 0fe: ldc "signature" // 100: invokevirtual com/google/gson/JsonObject.getAsJsonPrimitive (Ljava/lang/String;)Lcom/google/gson/JsonPrimitive; // 103: invokevirtual com/google/gson/JsonPrimitive.getAsString ()Ljava/lang/String; // 106: invokespecial com/mojang/authlib/properties/Property. (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V // 109: invokevirtual com/google/common/collect/ImmutableMultimap$Builder.put (Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMultimap$Builder; // 10c: pop // 10d: goto 123 // 110: aload 4 // 112: aload 10 // 114: new com/mojang/authlib/properties/Property // 117: dup // 118: aload 10 // 11a: aload 11 // 11c: invokespecial com/mojang/authlib/properties/Property. (Ljava/lang/String;Ljava/lang/String;)V // 11f: invokevirtual com/google/common/collect/ImmutableMultimap$Builder.put (Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMultimap$Builder; // 122: pop // 123: goto 0a9 // 126: new com/mojang/authlib/properties/PropertyMap // 129: dup // 12a: aload 4 // 12c: invokevirtual com/google/common/collect/ImmutableMultimap$Builder.build ()Lcom/google/common/collect/ImmutableMultimap; // 12f: invokespecial com/mojang/authlib/properties/PropertyMap. (Lcom/google/common/collect/Multimap;)V // 132: areturn } public JsonElement serialize(PropertyMap propertyMap, Type type, JsonSerializationContext jsonSerializationContext) { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 00: new com/google/gson/JsonArray // 03: dup // 04: invokespecial com/google/gson/JsonArray. ()V // 07: astore 4 // 09: aload 1 // 0a: invokevirtual com/mojang/authlib/properties/PropertyMap.values ()Ljava/util/Collection; // 0d: invokeinterface java/util/Collection.iterator ()Ljava/util/Iterator; 1 // 12: astore 5 // 14: aload 5 // 16: invokeinterface java/util/Iterator.hasNext ()Z 1 // 1b: ifeq 6a // 1e: aload 5 // 20: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1 // 25: checkcast com/mojang/authlib/properties/Property // 28: astore 6 // 2a: new com/google/gson/JsonObject // 2d: dup // 2e: invokespecial com/google/gson/JsonObject. ()V // 31: astore 7 // 33: aload 7 // 35: ldc "name" // 37: aload 6 // 39: invokevirtual com/mojang/authlib/properties/Property.name ()Ljava/lang/String; // 3c: invokevirtual com/google/gson/JsonObject.addProperty (Ljava/lang/String;Ljava/lang/String;)V // 3f: aload 7 // 41: ldc "value" // 43: aload 6 // 45: invokevirtual com/mojang/authlib/properties/Property.value ()Ljava/lang/String; // 48: invokevirtual com/google/gson/JsonObject.addProperty (Ljava/lang/String;Ljava/lang/String;)V // 4b: aload 6 // 4d: invokevirtual com/mojang/authlib/properties/Property.signature ()Ljava/lang/String; // 50: astore 8 // 52: aload 8 // 54: ifnull 60 // 57: aload 7 // 59: ldc "signature" // 5b: aload 8 // 5d: invokevirtual com/google/gson/JsonObject.addProperty (Ljava/lang/String;Ljava/lang/String;)V // 60: aload 4 // 62: aload 7 // 64: invokevirtual com/google/gson/JsonArray.add (Lcom/google/gson/JsonElement;)V // 67: goto 14 // 6a: aload 4 // 6c: areturn } } }