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

package com.hypixel.hytale.server.core.universe.world.events.ecs;

import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.universe.world.chunk.WorldChunk;
import com.hypixel.hytale.component.system.CancellableEcsEvent;

public class ChunkUnloadEvent extends CancellableEcsEvent
{
    @Nonnull
    private final WorldChunk chunk;
    private boolean resetKeepAlive;
    
    public ChunkUnloadEvent(@Nonnull final WorldChunk chunk) {
        this.resetKeepAlive = true;
        this.chunk = chunk;
    }
    
    @Nonnull
    public WorldChunk getChunk() {
        return this.chunk;
    }
    
    public void setResetKeepAlive(final boolean willResetKeepAlive) {
        this.resetKeepAlive = willResetKeepAlive;
    }
    
    public boolean willResetKeepAlive() {
        return this.resetKeepAlive;
    }
}
