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

package com.hypixel.hytale.builtin.adventure.objectives.events;

import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Ref;
import javax.annotation.Nonnull;
import java.util.UUID;
import com.hypixel.hytale.event.IEvent;

public class TreasureChestOpeningEvent implements IEvent<String>
{
    @Nonnull
    private final UUID objectiveUUID;
    @Nonnull
    private final UUID chestUUID;
    @Nonnull
    private final Ref<EntityStore> playerRef;
    @Nonnull
    private final Store<EntityStore> store;
    
    public TreasureChestOpeningEvent(@Nonnull final UUID objectiveUUID, @Nonnull final UUID chestUUID, @Nonnull final Ref<EntityStore> playerRef, @Nonnull final Store<EntityStore> store) {
        this.objectiveUUID = objectiveUUID;
        this.chestUUID = chestUUID;
        this.playerRef = playerRef;
        this.store = store;
    }
    
    @Nonnull
    public UUID getObjectiveUUID() {
        return this.objectiveUUID;
    }
    
    @Nonnull
    public UUID getChestUUID() {
        return this.chestUUID;
    }
    
    @Nonnull
    public Ref<EntityStore> getPlayerRef() {
        return this.playerRef;
    }
    
    @Nonnull
    public Store<EntityStore> getStore() {
        return this.store;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "TreasureChestOpeningEvent{objectiveUUID=" + String.valueOf(this.objectiveUUID) + ", chestUUID=" + String.valueOf(this.chestUUID) + ", player=" + String.valueOf(this.playerRef);
    }
}
