package org.allaymc.api.eventbus.event.container;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.allaymc.api.annotation.CallerThread;
import org.allaymc.api.annotation.ThreadType;
import org.allaymc.api.container.Container;
import org.allaymc.api.container.ContainerViewer;

/**
 * Called when a viewer closes a container.
 *
 * @author daoge_cmd
 */
@AllArgsConstructor
@Getter
@CallerThread(ThreadType.WORLD)
public class ContainerCloseEvent extends ContainerEvent {
    /**
     * The viewer closing the container.
     */
    protected ContainerViewer viewer;
    /**
     * The container being closed.
     */
    protected Container container;
}
