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

package com.hypixel.hytale.builtin.buildertools.scriptedbrushes.operations.sequential.flowcontrol;

import com.hypixel.hytale.component.ComponentAccessor;
import com.hypixel.hytale.builtin.buildertools.scriptedbrushes.BrushConfigCommandExecutor;
import com.hypixel.hytale.builtin.buildertools.scriptedbrushes.BrushConfig;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Ref;
import com.hypixel.hytale.codec.builder.BuilderCodec;
import com.hypixel.hytale.builtin.buildertools.scriptedbrushes.operations.system.SequenceBrushOperation;

public class ExitOperation extends SequenceBrushOperation
{
    public static final BuilderCodec<ExitOperation> CODEC;
    
    public ExitOperation() {
        super("exit", "Exit the execution of the stack", false);
    }
    
    @Override
    public void modifyBrushConfig(@Nonnull final Ref<EntityStore> ref, @Nonnull final BrushConfig brushConfig, @Nonnull final BrushConfigCommandExecutor brushConfigCommandExecutor, @Nonnull final ComponentAccessor<EntityStore> componentAccessor) {
        brushConfigCommandExecutor.exitExecution(ref, componentAccessor);
    }
    
    static {
        CODEC = BuilderCodec.builder(ExitOperation.class, ExitOperation::new).documentation("Exit the execution of the stack").build();
    }
}
