summaryrefslogtreecommitdiff
path: root/dicore3/command/src/main/java/io/dico/dicore/command/chat/help/IPageLayout.java
blob: 3223e32a2264ebecc2207eed213d3d3e6df193fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package io.dico.dicore.command.chat.help;

import io.dico.dicore.command.ExecutionContext;
import io.dico.dicore.command.ICommandAddress;
import org.bukkit.permissions.Permissible;

public interface IPageLayout {

    /**
     * Get the page borders for a help page
     *
     * @param target  the address that help is displayed for
     * @param viewer  the viewer of the help page, or null if irrelevant
     * @param context the context of the execution
     * @param pageNum the page number as displayed in the help page (so it's 1-bound and not 0-bound)
     * @return the page borders.
     */
    PageBorders getPageBorders(ICommandAddress target, Permissible viewer, ExecutionContext context, int pageNum);

}