// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.modules.entity.damage;

import com.hypixel.hytale.server.core.asset.type.gameplay.respawn.RespawnController;
import com.hypixel.hytale.server.core.universe.world.World;
import com.hypixel.hytale.component.ComponentAccessor;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.component.Ref;
import com.hypixel.hytale.component.CommandBuffer;
import java.util.List;
import com.hypixel.hytale.assetstore.AssetRegistry;
import com.hypixel.hytale.assetstore.map.IndexedLookupTableAssetMap;
import javax.annotation.Nonnull;
import com.hypixel.hytale.component.ComponentType;
import java.util.concurrent.CompletableFuture;
import com.hypixel.hytale.server.core.entity.InteractionChain;
import com.hypixel.hytale.server.core.asset.type.gameplay.DeathConfig;
import com.hypixel.hytale.server.core.inventory.ItemStack;
import javax.annotation.Nullable;
import com.hypixel.hytale.server.core.Message;
import com.hypixel.hytale.codec.builder.BuilderCodec;
import com.hypixel.hytale.logger.HytaleLogger;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Component;

public class DeathComponent implements Component<EntityStore>
{
    public static final HytaleLogger LOGGER;
    public static final BuilderCodec<DeathComponent> CODEC;
    private String deathCause;
    @Nullable
    private Message deathMessage;
    private boolean showDeathMenu;
    private ItemStack[] itemsLostOnDeath;
    private double itemsAmountLossPercentage;
    private double itemsDurabilityLossPercentage;
    private boolean displayDataOnDeathScreen;
    @Nullable
    private transient Damage deathInfo;
    private transient DeathConfig.ItemsLossMode itemsLossMode;
    @Nullable
    private transient InteractionChain interactionChain;
    private transient CompletableFuture<Void> respawnFuture;
    
    public static ComponentType<EntityStore, DeathComponent> getComponentType() {
        return DamageModule.get().getDeathComponentType();
    }
    
    protected DeathComponent(@Nonnull final Damage deathInfo) {
        this.showDeathMenu = true;
        this.itemsLossMode = DeathConfig.ItemsLossMode.ALL;
        this.respawnFuture = null;
        this.deathInfo = deathInfo;
        this.deathCause = deathInfo.getCause().getId();
    }
    
    protected DeathComponent() {
        this.showDeathMenu = true;
        this.itemsLossMode = DeathConfig.ItemsLossMode.ALL;
        this.respawnFuture = null;
    }
    
    @Nullable
    public DamageCause getDeathCause() {
        return AssetRegistry.getAssetStore(DamageCause.class).getAssetMap().getAsset(this.deathCause);
    }
    
    @Nullable
    public Message getDeathMessage() {
        return this.deathMessage;
    }
    
    public void setDeathMessage(@Nullable final Message deathMessage) {
        this.deathMessage = deathMessage;
    }
    
    public boolean isShowDeathMenu() {
        return this.showDeathMenu;
    }
    
    public void setShowDeathMenu(final boolean showDeathMenu) {
        this.showDeathMenu = showDeathMenu;
    }
    
    public ItemStack[] getItemsLostOnDeath() {
        return this.itemsLostOnDeath;
    }
    
    public void setItemsLostOnDeath(final List<ItemStack> itemsLostOnDeath) {
        this.itemsLostOnDeath = itemsLostOnDeath.toArray(ItemStack[]::new);
    }
    
    public double getItemsAmountLossPercentage() {
        return this.itemsAmountLossPercentage;
    }
    
    public void setItemsAmountLossPercentage(final double itemsAmountLossPercentage) {
        this.itemsAmountLossPercentage = itemsAmountLossPercentage;
    }
    
    public double getItemsDurabilityLossPercentage() {
        return this.itemsDurabilityLossPercentage;
    }
    
    public void setItemsDurabilityLossPercentage(final double itemsDurabilityLossPercentage) {
        this.itemsDurabilityLossPercentage = itemsDurabilityLossPercentage;
    }
    
    public boolean displayDataOnDeathScreen() {
        return this.displayDataOnDeathScreen;
    }
    
    public void setDisplayDataOnDeathScreen(final boolean displayDataOnDeathScreen) {
        this.displayDataOnDeathScreen = displayDataOnDeathScreen;
    }
    
    @Nullable
    public Damage getDeathInfo() {
        return this.deathInfo;
    }
    
    public DeathConfig.ItemsLossMode getItemsLossMode() {
        return this.itemsLossMode;
    }
    
    public void setItemsLossMode(final DeathConfig.ItemsLossMode itemsLossMode) {
        this.itemsLossMode = itemsLossMode;
    }
    
    public DeathItemLoss getDeathItemLoss() {
        return new DeathItemLoss(this.itemsLossMode, this.itemsLostOnDeath, this.itemsAmountLossPercentage, this.itemsDurabilityLossPercentage);
    }
    
    @Nullable
    public InteractionChain getInteractionChain() {
        return this.interactionChain;
    }
    
    public void setInteractionChain(@Nullable final InteractionChain interactionChain) {
        this.interactionChain = interactionChain;
    }
    
    @Nonnull
    @Override
    public Component<EntityStore> clone() {
        final DeathComponent death = new DeathComponent();
        death.deathCause = this.deathCause;
        death.deathMessage = this.deathMessage;
        death.showDeathMenu = this.showDeathMenu;
        death.itemsLostOnDeath = this.itemsLostOnDeath;
        death.itemsAmountLossPercentage = this.itemsAmountLossPercentage;
        death.itemsDurabilityLossPercentage = this.itemsDurabilityLossPercentage;
        death.displayDataOnDeathScreen = this.displayDataOnDeathScreen;
        death.deathInfo = this.deathInfo;
        death.itemsLossMode = this.itemsLossMode;
        return death;
    }
    
    public static void tryAddComponent(@Nonnull final CommandBuffer<EntityStore> commandBuffer, @Nonnull final Ref<EntityStore> ref, @Nonnull final Damage damage) {
        if (commandBuffer.getArchetype(ref).contains(getComponentType())) {
            return;
        }
        commandBuffer.run(store -> tryAddComponent(store, ref, damage));
    }
    
    public static void tryAddComponent(@Nonnull final Store<EntityStore> store, @Nonnull final Ref<EntityStore> ref, @Nonnull final Damage damage) {
        if (store.getArchetype(ref).contains(getComponentType())) {
            return;
        }
        store.addComponent(ref, getComponentType(), new DeathComponent(damage));
    }
    
    public static CompletableFuture<Void> respawn(@Nonnull final ComponentAccessor<EntityStore> componentAccessor, @Nonnull final Ref<EntityStore> ref) {
        final DeathComponent deathComponent = componentAccessor.getComponent(ref, getComponentType());
        if (deathComponent == null) {
            return CompletableFuture.completedFuture((Void)null);
        }
        if (deathComponent.respawnFuture != null) {
            return deathComponent.respawnFuture;
        }
        final World world = componentAccessor.getExternalData().getWorld();
        final RespawnController respawnController = world.getDeathConfig().getRespawnController();
        return deathComponent.respawnFuture = respawnController.respawnPlayer(world, ref, componentAccessor).whenComplete((ignore, ex) -> {
            if (ex != null) {
                DeathComponent.LOGGER.atSevere().withCause(ex).log("Failed to respawn entity");
            }
            final Store<EntityStore> store = world.getEntityStore().getStore();
            if (!(!ref.isValid())) {
                store.tryRemoveComponent(ref, getComponentType());
            }
        });
    }
    
    static {
        // 
        // This method could not be decompiled.
        // 
        // Original Bytecode:
        // 
        //     3: putstatic       com/hypixel/hytale/server/core/modules/entity/damage/DeathComponent.LOGGER:Lcom/hypixel/hytale/logger/HytaleLogger;
        //     6: ldc             Lcom/hypixel/hytale/server/core/modules/entity/damage/DeathComponent;.class
        //     8: invokedynamic   BootstrapMethod #3, get:()Ljava/util/function/Supplier;
        //    13: invokestatic    com/hypixel/hytale/codec/builder/BuilderCodec.builder:(Ljava/lang/Class;Ljava/util/function/Supplier;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    16: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    19: dup            
        //    20: ldc_w           "DeathCause"
        //    23: getstatic       com/hypixel/hytale/codec/Codec.STRING:Lcom/hypixel/hytale/codec/codecs/simple/StringCodec;
        //    26: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    29: invokedynamic   BootstrapMethod #4, accept:()Ljava/util/function/BiConsumer;
        //    34: invokedynamic   BootstrapMethod #5, apply:()Ljava/util/function/Function;
        //    39: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //    42: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    45: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    48: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    51: dup            
        //    52: ldc_w           "DeathMessage"
        //    55: getstatic       com/hypixel/hytale/server/core/Message.CODEC:Lcom/hypixel/hytale/codec/function/FunctionCodec;
        //    58: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    61: invokedynamic   BootstrapMethod #6, accept:()Ljava/util/function/BiConsumer;
        //    66: invokedynamic   BootstrapMethod #7, apply:()Ljava/util/function/Function;
        //    71: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //    74: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    77: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    80: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    83: dup            
        //    84: ldc_w           "ShowDeathMenu"
        //    87: getstatic       com/hypixel/hytale/codec/builder/BuilderCodec.BOOLEAN:Lcom/hypixel/hytale/codec/codecs/simple/BooleanCodec;
        //    90: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //    93: invokedynamic   BootstrapMethod #8, accept:()Ljava/util/function/BiConsumer;
        //    98: invokedynamic   BootstrapMethod #9, apply:()Ljava/util/function/Function;
        //   103: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //   106: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   109: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   112: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   115: dup            
        //   116: ldc_w           "ItemsLostOnDeath"
        //   119: new             Lcom/hypixel/hytale/codec/codecs/array/ArrayCodec;
        //   122: dup            
        //   123: getstatic       com/hypixel/hytale/server/core/inventory/ItemStack.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   126: invokedynamic   BootstrapMethod #10, apply:()Ljava/util/function/IntFunction;
        //   131: invokespecial   com/hypixel/hytale/codec/codecs/array/ArrayCodec.<init>:(Lcom/hypixel/hytale/codec/Codec;Ljava/util/function/IntFunction;)V
        //   134: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   137: invokedynamic   BootstrapMethod #11, accept:()Ljava/util/function/BiConsumer;
        //   142: invokedynamic   BootstrapMethod #12, apply:()Ljava/util/function/Function;
        //   147: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //   150: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   153: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   156: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   159: dup            
        //   160: ldc_w           "ItemsAmountLossPercentage"
        //   163: getstatic       com/hypixel/hytale/codec/Codec.DOUBLE:Lcom/hypixel/hytale/codec/codecs/simple/DoubleCodec;
        //   166: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   169: invokedynamic   BootstrapMethod #13, accept:()Ljava/util/function/BiConsumer;
        //   174: invokedynamic   BootstrapMethod #14, apply:()Ljava/util/function/Function;
        //   179: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //   182: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   185: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   188: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   191: dup            
        //   192: ldc_w           "ItemsDurabilityLossPercentage"
        //   195: getstatic       com/hypixel/hytale/codec/Codec.DOUBLE:Lcom/hypixel/hytale/codec/codecs/simple/DoubleCodec;
        //   198: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   201: invokedynamic   BootstrapMethod #15, accept:()Ljava/util/function/BiConsumer;
        //   206: invokedynamic   BootstrapMethod #16, apply:()Ljava/util/function/Function;
        //   211: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //   214: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   217: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   220: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //   223: dup            
        //   224: ldc_w           "DisplayDataOnDeathScreen"
        //   227: getstatic       com/hypixel/hytale/codec/Codec.BOOLEAN:Lcom/hypixel/hytale/codec/codecs/simple/BooleanCodec;
        //   230: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;)V
        //   233: invokedynamic   BootstrapMethod #17, accept:()Ljava/util/function/BiConsumer;
        //   238: invokedynamic   BootstrapMethod #18, apply:()Ljava/util/function/Function;
        //   243: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.append:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderField$FieldBuilder;
        //   246: invokevirtual   com/hypixel/hytale/codec/builder/BuilderField$FieldBuilder.add:()Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   249: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   252: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.build:()Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   255: putstatic       com/hypixel/hytale/server/core/modules/entity/damage/DeathComponent.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   258: return         
        // 
        // The error that occurred was:
        // 
        // java.lang.UnsupportedOperationException: The requested operation is not supported.
        //     at com.strobel.util.ContractUtils.unsupported(ContractUtils.java:27)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:284)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:279)
        //     at com.strobel.assembler.metadata.TypeReference.makeGenericType(TypeReference.java:154)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitClassType(TypeSubstitutionVisitor.java:267)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitClassType(TypeSubstitutionVisitor.java:25)
        //     at com.strobel.assembler.metadata.TypeDefinition.accept(TypeDefinition.java:189)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visit(TypeSubstitutionVisitor.java:40)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitMethod(TypeSubstitutionVisitor.java:324)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2586)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2483)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2483)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1083)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:684)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:667)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:373)
        //     at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:95)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:344)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:206)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:93)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:868)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:761)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:638)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:605)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:195)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:162)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:137)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:333)
        //     at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:254)
        //     at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:129)
        // 
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }
}
