/FileExtraction/Java_unseen/ionar2_summit/src/main/java/com/salhack/summit/events/MinecraftEvent.java
package com.salhack.summit.events;

import com.salhack.summit.events.bus.Cancellable;
import com.salhack.summit.main.Wrapper;

public class MinecraftEvent extends Cancellable
{
    private Stage _stage = Stage.Pre;
    private final float partialTicks;

    public MinecraftEvent()
    {
        partialTicks = Wrapper.GetMC().getRenderPartialTicks();
    }
    
    public MinecraftEvent(Stage stage)
    {
        this();
        _stage = stage;
    }

    public Stage getStage()
    {
        return _stage;
    }

    public void setEra(Stage stage)
    {
        this.setCancelled(false);
        _stage = stage;
    }

    public float getPartialTicks()
    {
        return partialTicks;
    }
    
    public enum Stage
    {
        Pre,
        Post,
    }
}
